0% found this document useful (0 votes)
6 views

Day 6 SQL

Uploaded by

anumeha.raj
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

Day 6 SQL

Uploaded by

anumeha.raj
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

1 How to copy a file from one location to another location

2 How to copy contents of a folder

Cp –r file1.txt backup.txt

Kill -9 to kill

How to start a job In the background

Bg %1

-rw-r-r

4-4 w 2 e 1

What is a process?

Explain 'foreground' and 'background' processes.


Foreground and background processes are terms used in operating systems to describe how
processes are executed.

Foreground Processes:

 Run directly in the terminal or console where they were started.


 Require user interaction to continue.
 Block other processes from running until they are finished.

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.

Starting background processes:


To start a process in the background, you can typically use the & symbol at the end of the
command. For example:

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.

You might also like