&at the end of a line runs a command in the background: the prompt comes back at once, and[1] 1028is the job number and the PID.jobsshows this shell's jobs, andpsthe processes of the whole machine.- Ctrl+Z pauses a command,
bgcontinues it in the background,fgbrings it back to the terminal, and Ctrl+C interrupts it. %1is a job number, whilekilltakes a number without%for a PID.wait $!waits for a background command, and$?holds its exit status.- At the start of the lesson the prompt came back at once while
sleep 600kept running:&had sent it to the background.
Step 7 of 7 · summary · 2 min
Summary
Found an inaccuracy? Report an error in the lesson