init or systemd) with process ID of 1fork - fork() creates a copy of the parent process. - In the copy (child), fork() returns 0. - In the original (parent), fork() returns the new PID of the child process.ps: Snapshot of current processes
1
ps aux
USER, PID, %CPU, %MEM VSZ: Virtual size of the processRSS: Resident set size (number of pages)TTY: control terminal IDSTAT: current process status (Process State Codes from manual)TIME: CPU time process consumedCOMMAND: command and arguments.tophtopstrace: check what a process is doing top in the first screenstrace on this process ID:
1
sudo strace -p <top_process_ID>
ps and top (htop) to identify those that soak up CPU and memorydf -h du -h cron daemon allows the execution of commands on a predetermined schedule.
1
crontab -e
* * * * * echo $(/bin/date) >> /users/<your_username>/cron.log into the file