Domanda | Risposta | |||
---|---|---|---|---|
How to renice program, execute command and take every running httpd process
|
renice -n 10 $(pgrep httpd)
|
|||
How to tar a file with priority -20 and display time needed to process?
|
time nice -n -20 tar -cvf test. tar test. file
|
|||
Where can you find information about number of CPUs?
|
cat /proc/cpuinfo
|
|||
What does top -d 2 do?
|
Set top updates to 2 seconds
|
|||
What does k do in top command?
|
kill process
|
|||
What does r do in top command?
|
renice process
|
|||
What does P do in top command?
|
sort by CPU usage
|
|||
What does M do in top command?
|
sort by memory usage
|
|||
What does t do in top command?
|
disable line with tasks
|
|||
What does m do in top command?
|
disable line with memory usage
|
|||
What does l do in top command?
|
disable line with cpu usage
|
|||
Where all non persistent logs for journalctl are written to?
|
cd /run/log/journal
|
|||
How to make journalctl logs persistent?
|
go to /etc/systemd/journalctl. conf, uncomment storage
|
|||
Where all persistent logs for journalctl are written to?
|
/var/log/journal
|
|||
Where would you configure logrotation for journalctl?
|
/etc/logrorate.conf
|
|||
How to display last 10 lines of logs?
|
journalctl -n
|
|||
How to display logs with priority info?
|
journalctl -p info
|
|||
How to display logs since yesterday?
|
journalctl --since=yesterday
|
|||
How to display logs since one hour ago?
|
journalctl --since "one hour ago"
|
|||
How to display info about boot process?
|
systemd-analyze
|
|||
How to dusplay info about the process lanunched very long?
|
systemd-analyze blame
|