Hour 7

1: How do you run a command in the background?
A1: By putting an ampersand (&) at the end of the command line.
2: How do you determine which processes you are running?
A2: With the ps command.
3: How do you change a foreground process into a background process?
A3: Use the suspend key (usually Ctrl+Z) to stop the foreground process, and then use the bg command to resume it in the background.

Get Sams Teach Yourself Shell Programming in 24 Hours, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.