Process and Job Control
- Most Important Commands:
ps -e - Display all Processes
ps -ef - Display all Processes , full
ps -u
top - Interactive Process viewer (as Task Manager in Windows)
htop - Interactive Process viewer (as Task Manager in Windows)
- Background and Foreground Processes:
command & - Start command in the background
Ctrl - c - kill the foreground Process
Ctrl - d - Exit the foreground Process
Ctrl - z - Suspend the foreground Process
bg <%num> - Background Suspended Process
fg <%num> - Foreground Suspended Process
Kill <PID / Name> - Kill Process by PID or Name
Kill -l - Display a list of signals
jobs <%num> - List Jobs
- Scheduling Repeated Jobs with Cron
crontab
crontab -l - List your cron jobs
crontab -e - Edit your cron jobs
crontab -r - Remove all your cron jobs