Systemctl, process management/shaare/VSEluw
Basic System Info Commands
uptime→ time, uptime, users, load averagehostname→ current hostnameip hostname→ show IP & hostnameuname -a→ current OS and kernel infowhich command→ path to a command-
cal→ calendar for current month/yearcal 2025→ full year
bc→ basic calculator
System Monitoring
systemctl→ interact with systemd system managerps→ view current processestop→ dynamic view of process usage
Systemctl Usage
systemctl start|stop|status servicename.service→ manage service statesystemctl enable servicename.service→ start service at bootsystemctl restart|reload servicename→ restart or reload servicesystemctl list-units --all→ list all units-
To add a service:
- Create a unit file in
/etc/systemd/system/servicename.service
- Create a unit file in
Process Management
-
Start a process in the background:
Ctrl + Zthenjobs→ suspend and backgroundbg→ continue in backgroundfg→ bring back to foreground
-
Run process detached from terminal:
nohup process &→ keep running after logoutnohup process > /dev/null 2>&1 &→ suppress all logs/output
Killing and Prioritizing
pkill name→ kill process by name-
nice→ start process with a priority (range -20 to 19)- lower = higher priority
nice -20 top
Jobs Monitoring
jobs→ list background/foreground job states
(19)