Files
obsidian-vault-/Interview Question/2. System Skill (Linux).md
T
2025-12-16 21:35:23 +03:00

29 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
### Работа с Linux
1. Как посмотреть логи системы
1. `dmesg` kernel messages
2. Команды. Что выполняет данные команды:
1. `cat /etc/dev/trace | grep 13:00 ` -
2. `tail -f /etc/dev/trace`
3. `chmod` - изменение прав
4. `grep` - глобальный поиск регулярных выражений и вывод
5. `ls -l` - посмотреть текущие права
6. `ip br -a`
3. Чем отличаются команды
1. `cat /etc/dev/trace > /home/user.txt`
2. `echo "/etc/dev/trace" > /home/user.txt`
4. Файлы. Работа с правами
1. `chmod` - изменить права
2. `ls -l` - посмотреть текущие права
3. Знание rwx-битов
5. Devices. Как посмотреть устройства в Linux
1. Linux и I2C. Как можно проверить устройства
1. `/dev/i2c-* ` устройства
2. `i2cdetect` `i2cget` `i2cset`
2. Монтирование виртуальных файлов `/sys` / `/proc`
3.
6. Daemons. Службы и демоны.
1. `systemctl status <service>` - статус
2. `systemctl start/stop/restart <service>` - управление