FG, BG, jobs, , CTRL + Z are all related to system tasks. Although these commands are rarely used, they are also very practical.
1. most frequently used
This command is used at the end of a command and can be executed in the background.
Ii. CTRL + z
You can put a command that is being executed on the foreground in the background and pause it.
Iii. Jobs
View the number of commands currently running in the background
Iv.
work of the environment called foreground (foreground) with the placing of commands;Background: You can run your own work, you cannot use [ctrl]+c to terminate him, you can use BG/FG to call the job;The "Running" program in the background cannot wait for Terminal/shell inputThrow commands directly into the background of "Run"
Tar-zpcf/tmp/etc.tar.gz/etc [1] 8400 # The number in the brackets is thework number, which is related to bas
; Myout.file 2>1 In the example above, the output is redirected to the Myout.file file. Use jobs to view tasks. Use FG%n to close. There are also two commonly used FTP tools Ncftpget and Ncftpput, can be implemented in the background FTP upload and download, so you can use these commands in the background to upload and download files.nohup command and Nohup Command The difference between this is the command line with , even if the terminal (termin
Forcibly recommend Firefox adware. win32.admoke. FG, rootkit. win32.mnless. ft, etc.
EndurerOriginal1st-
A few days ago, a netizen said that Kingsoft drug overlord in his computer recently reported a virus every day, And ie appeared
Encountered sqmapi32.dll, kvmxfma. dll, rarjdpi. dll, Google. dll, a0b1. dll, etc.Http://blog.csdn.net/Purpleendurer/archive/2007/11/07/1871409.aspxHttp://endurer.bokee.com/6522203.htmlHttp://blog.nnsky.com/blog_view_22283
Tags: concept running common flow track about terminating process prompt sendFG, BG, Jobs, , CTRL + Z are all related to system tasks, although these commands are largely not needed now, but they are also usefulA . is most often usedThis is used at the end of a command, you can put this command in the background to executeTwo. Ctrl + ZYou can put a command that is executing in the foreground in the background and pauseThree. JobsSee how many commands are currently running in the backgroundFour.
We all know the bg and fg commands in Linux. on Windows, we either have a program running in the background as a service or stop the service. The program cannot be switched between the foreground and background. Linux provides fg and bg commands, allowing us to easily schedule running...
We all know the bg and fg commands in Linux. on Windows, we either have a p
As we all know, on Windows, we either have a program running in the background as a service, or stop the service. Instead of allowing the program to switch between foreground and background. Linux provides FG and BG commands, allowing us to easily schedule running tasks.Suppose you find that a program running in the foreground takes a long time, but you need to do something else, you can hang up the program with Ctrl-z, and then you can see the system
Job: a process or a group of processes associated with pipelines/redirection.
Foreground: The environment in which the client session interacts with you.
Background: The environment that does not interact with you, but is related to the current terminal session. For example, if you cannot enter a background job or control a background job (for example, you cannot use Ctrl + C to disable it), the background job is also disabled when the current terminal session is closed.
Background: that is,
FG, BG, Jobs, , Nohup, CTRL + Z, CTRL + C commandFirst, At the end of a command, you can put this command in the background to execute, asWatch -n-sh test.sh #每10s在后台执行一次test. Sh scriptTwo, CTRL + ZYou can place a command that is being executed in the foreground in the background and be in a paused state.Third, JobsSee how many commands are currently running in the backgroundThe JOBS-L option shows the Pid,jobs status of all tasks can be running,
Tags: [1] Port Lin Sleep logs convert time process view# Import Time for in range (0, +): print i time.sleep (3)NOHUP directive >log.log 2>1 :Linux under Execution nohup python-u test.py >log.log 2>1 Jobs-l view the commands executed in the background:[1]-18071 running nohup python-u test.py >log.log 2>1 Output the Log.log file in real time: Tail-f Log.logConvert background commands to foreground: FG%n Here n is the number that jobs looked
First, IntroductionLinux/unix the biggest advantage of the Microsoft platform is the real multi-user, multi-tasking. Therefore, in the task management also has the characteristic management thought.We know that on Windows, we either have a program running in the background as a service or stop the service. Instead of allowing the program to switch between foreground and background. Linux provides FG and BG commands that allow you to easily schedule ta
As we all know, on Windows, we either have a program running in the background as a service, or stop the service. Instead of allowing the program to switch between foreground and background. Linux provides FG and BG commands, allowing us to easily schedule running tasks.Suppose you find that a program running in the foreground takes a long time, but you need to do something else, you can hang up the program with Ctrl-z, and then you can see the system
We all know the bg and fg commands in Linux. On Windows, we either have a program running in the background as a service or stop the service. The program cannot be switched between the foreground and background. Linux provides fg and bg commands, allowing us to easily schedule running tasks. Www.2cto.com suppose you find it takes a long time to run a program on the foreground, but you need to do other thing
FG, BG, Jobs, , CTRL + Z are all related to system tasks, although these commands are largely not needed now, but they are also usefulA . is most often usedThis is used at the end of a command, you can put this command in the background to executeTwo. Ctrl + ZYou can put a command that is executing in the foreground in the background and pauseThree. JobsSee how many commands are currently running in the backgroundFour. FGMove commands in the backgroun
FG, BG, Jobs, , Nohup, CTRL + Z command one, Add to the end of a command, you can put this command in the background execution, such as Gftp Two, CTRL + ZYou can put a command that is being executed in the foreground in the background and is paused, not executableThird, JobsSee how many commands are currently running in the background
The JOBS-L option shows that the pid,jobs status of all tasks can be running, stopped, Terminated, but if the
Transferred from: http://blog.chinaunix.net/space.php?uid=20697318do=blogid=1891382FG, BG, Jobs, , CTRL + Z are all related to system tasks, although these commands are largely not needed now, but they are also usefulOne. is most often usedThis is used at the end of a command, you can put this command in the background to executeTwo. CTRL + ZYou can put a command that is executing in the foreground in the background and pauseThree. JobsSee how many commands are currently running in the backgrou
If we only want to pause the process rather than terminate the process. Then we usually need to move the processes executed at the front end to the backend for execution.
Process interruption
Ctrl-C
========================================================== ======
Make the process run in the background
Programs
========================================================== ======
Send the process back to the foreground for execution
To make the process return to the foreground for execution, you ca
I want to switch to the background to run some services:Two methods:1. You can add a character to the last face of the start Service command at runtime, for example./servicestart 2. After the service starts, press CTRL + Z to switch the service to the background and pause, then use the command: BG number starts the service in the background and can use jobs to view the tasks in the background after startup.Note: number is the job ID, after pressing CTRL + Z, the terminal will display the servic
subroutines (just manage your own bash);Foreground: You are able to control this environment called foreground work (foreground) with the command being issued.Background: Work that can be performed on its own. You cannot use [ctrl]+c to terminate him, you can use BG/FG to call the job.The "Execute" program in the background cannot wait for Terminal/shell inputDrop commands directly into the background "execute"
Tar-zpcf/tmp/etc.tar.gz
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.