Dziewiate_21

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

Vous devez vous connecter pour poster un commentaire.