1.4 Configure and use the appropriate processes and services Flashcards
Systemctl command
Enables control of the systemd init daemon
enable {enable a service on boot}
disable {disable a service on boot}
mask { prevent provided unit file from being enabled or activated}
cron daemon
Used to manage scheduled tasks called cronjobs
crontab command
can create, view , and delete crontab files
-e{edit}
-l{view crontab for current user}
-r{delete crontab file}
-u{create crontab file for specific user}
at command
Schedules a command to run once at a particular time
-m{send mail}
-M{prevent mail from sending}
-f{read a job from a file}
-t{run job at specific time}
kill command
sends any specific signal to all processes matching the name specified.
-SIGKILL{kill the process immediately}
-SIGTERM {terminate a process}
-SIGHUP{send to a process when its controlling terminal is closed}
top command
Acts as a process management tool that allows for interactive process prioritization, sorting, or termination.
Shift+N{sort by decreasing order of PID}
-M{sort by memory usage}
-P{sort by CPU usage}
-u{display processes belonging to users}
-k{terminate the process specified}
ps command
Displays process table. (similar to tasklist).
a{list all user-triggered processes}
-e{list all processes}
-l{long-listing of processes}
-u{list processes along with username and start time}
lsof command
Prints a list of all the files currently opened to all active processes.
htop command
A newer version of an interactive monitor, process viewer, and process manager.
nice command
Runs a command with a different nice value than the default.
-n{increments nice value by an integer}
renice command
Alters the scheduling priority of an already running process.
-n{specifies the new nice value for a running process}
-g{alters the nice value of processes in a process group}
-u{alters the nice value of all the processes owned by the user}
Zombie process
A process was terminated but not yet released by its parent process so it cannot accept a kill signal.
Sleeping process
A process is waiting either to be reactivated by the scheduler or until the resource is available.
Stopped process
Process was stopped by a debugger or a kill signal.
bg command
bg%{job ID} - pushes a job to the background.