Day 6 SQL
Day 6 SQL
Cp –r file1.txt backup.txt
Kill -9 to kill
Bg %1
-rw-r-r
4-4 w 2 e 1
What is a process?
Foreground Processes:
Background Processes:
Run in the background, detached from the terminal or console where they were
started.
Do not require user interaction to continue.
Allow other processes to run simultaneously.
Examples:
Foreground process: Opening a text editor and typing a document. The text editor
process runs in the foreground, requiring your input to continue.
Background process: Running a long-running task like a backup or compression
operation in the background. The process will continue to run even if you close the
terminal or switch to another application.
Bash
long_running_command &
Use code with caution.
This will start the command in the background, allowing you to continue using the terminal for
other tasks.