1.4 Given a scenario, configure and use the appropriate processes and services Flashcards
Command to start daemon/service
systemctl start [service]
Command to stop daemon/service
systemctl stop [service]
Command to restart daemon/service
systemctl restart [service]
Command to get status of daemon/service
systemctl status [service]
Command to automatically start service on system boot
systemctl enable [service]
Command to remove service from automatically starting on system boot
systemctl disable [service]
Command to stop a service from being started at all, either manually or automatically
systemctl mask [service]
What does the top command do?
Shows an abbreviated, dynamic list of processes and their mem & cpu usage
What does the ps command do? What is the default if no options are added to it?
- Shows a static list of processes
- Default behavior only shows active “user” processes for the current shell
What does ps command option “A” or “e” do?
Shows all processes
What 2 ps command options show more detailed info about processes?
-l and -f
What ps command option shows the state (i.e. running, sleeping, zombie, etc) of processes?
-l
What ps command option shows processes for a specific user?
-u
What ps command option shows processes that are started during system boot?
-x
What are the 4 state letter codes for processes?
- “R” running
- “S” sleeping
- “T” traced
- “Z” zombie
What does the pgrep command do?
Combines functionality of ps & grep command into an easier to use command