Home Process and Job Control
Post
Cancel

Process and Job Control

Process and Job Control

  1. Most Important Commands:

ps -e - Display all Processes

ps -ef - Display all Processes , full

ps -u - Display user's processes

top - Interactive Process viewer (as Task Manager in Windows)

htop - Interactive Process viewer (as Task Manager in Windows)

  1. 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

  1. Scheduling Repeated Jobs with Cron

crontab - Install a new crontab from a file

crontab -l - List your cron jobs

crontab -e - Edit your cron jobs

crontab -r - Remove all your cron jobs

This post is licensed under CC BY 4.0 by the author.