Linux task control (bg job fg nohup ) I. Introduction The biggest advantage of Linux/Unix which is different from Microsoft platform is real multi-user and multi-task. Therefore, there are also special management ideas in task management. We know that in Windows, we either have a program running on the background as a service or stop the service. The program cannot be switched between the foreground and background. Linux provides
How to use FG to quickly return to vim?When you use VIM to modify a parameter in a file, you cannot remember the parameters for a long time. It often appears that when we just opened this file with Vim, we forgot the parameters just now. At this point we need to temporarily exit this file to find parameters in a directory. Or, you have multiple open actions to close the same file.So how do you make this kind of operation easier and quicker?Now if you
Example: VI test.cCTRL + Z stops the test.c of VI open and goes to the backgroundand open a VI buf.c.CTRL + Z stops the BUF.C of VI open and goes to the backgroundThe task list is now visible through jobsSwitch tasks with FG + numberSuch as:root:~/data/worksspace$ Jobs[1]-has stopped VI test.c[2]+ has stopped VI BUF.C[Email protected]:~/data/testspace$ FG 1VI test.cAt this point the VI open test.c to the fo
Linux/Unix is different from Microsoft's platform. The biggest advantage is the real multi-user, multi-task. Therefore, there are also special management ideas in task management. We know that in windows, we either makeProgramThe service is always running in the background, or the service is stopped. The program cannot be switched between the foreground and background.
Linux provides FG and BG commands, allowing you to easily schedule running tasks
BG and FG commands for LinuxAs 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,
/-name Password (background perform task)Note: In effect, the use of the BG command is the same as adding the symbol "" after the instruction. For example, use to place the Find/-name password in the background executionFG: Used to put background jobs (jobs that are running in the background or suspended in the background) to the foreground terminal to run.Example:FG 1 (convert task to foreground execution)Find/-name password (foreground execution command)Nice: Used to start other programs wit
[[email protected]~]#kill-94959[[emailprotected]~]#Note that 4959 is the background process ID, not the process ID of the shell scriptReference:650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/4C/7D/wKioL1Q-ZqSzKhKTAAGZZbiGodI350.jpg "title=" Spec.png "alt=" Wkiol1q-zqszkhktaagzzbigodi350.jpg "/>-------Wait commandwait[process or job]: sets the waiting process or job identity-----$ wait%1 #等待作业号为3的作业完成Cat Test1 | Uniq > Newtest1 Cat Test2 | Uniq > Newtest2 WaitDiff Newtest1 Newtest2In
A lot of domestic internet war, there are famous "3Q war", "3B war" and so on, most of the 360-related. In fact, foreign internet giants also have a lot of war, but may be more respect than the domestic war users, will not let the interests of users become victims. In search, for example, Google and Bing have many years of resentment, but even if each other will use the production of a project to attack each other, but will not make the so-called hijacked the user's "difficult decision."
In the
BG and FG commands for LinuxAs 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. Www.2cto.comSuppose you find that a program running in the foreground takes a long time, but you need to do so
Tags: stop. sh col Family view command number art jobthe FG and BG commands provided by Linux allow us to easily schedule tasks that are runningIf you find a program that runs the day before it takes a long time, but you need to do the day before, you can hang up the program with Ctrl-z, and then you can see the system prompt:[1]+ stopped/root/bin/rsync.shAt this point the process is in a stopped state, and we can let it continue executing in the back
First, This is used at the end of a command to put this command in the background.Second, "Ctrl" + "Z"You can place a command that is executing in the foreground in the background and pause.Third, JobsSee how many commands are currently running in the background.Iv. FGThe commands in the background are moved to the foreground to continue running.If there is more than one command in the background, you can use FG%jobnumber to bring up the selected comm
One, the suspension of the reception of long-running proceduresUsing CTRL + Z, you can then see the system prompt:[1]+ Stopped /home/test/demo. SHView CodeSecond, BG commandPut the program into the background processingBG%jobnumberIII. FG CommandPut the program in the foreground processingFG%jobnumberNote: jobnumber is a command number that is being executed in the background through the jobs commandIv. jobs CommandView the job progr
There are two ways to put a process into the background under Linux:The first way: means that the command executes the program in the background, which is equivalent to minimizing the program in Windows.The second way: Execute a command, for example: top, and then press CTRL + Z shortcut key, put it into the background to execute.The difference between the two ways is: the first way: into the background of the process is still executing, the second way: Ctrl + Z into the background of the execut
First, 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 pauseThird, JobsSee how many commands are currently running in the backgroundIv. FGMove commands in the background to the foreground to continue runningIf there are multiple commands in the background, you can use FG%jobnumber to bring up the se
to set a nice value to execute the command process, which is formatted as nice–n num command command_option, If NUM is not specified here, the default is 10. Nice-n 3 Useadd DonggenThe Renice command is to set a nice value for a process that is already running, assuming that the nice value for a running process is 3, then the nice value for the running process is 3.Note: If a user sets a nice value that exceeds the nice's boundary value (Linux is 20 to +19), the system takes nice's boundary val
Experimental environment:
Firewall fg200b, System for v4.0,build0313,110301 (MR2 Patch 4)
Active Directory DC, System for Windows Server 2008 R2
1, expand set user → remote →ldap and create new
2, name random, here is test
3, IP address of
#include #include Char input[200];//Store Input stringChar token[5];//holds the string that makes up the word symbolChar ch; Holds the current read-in characterint p; Input[] Subscriptint FG; Switch tagint num; Store shaping valuesTwo-dimensional character array, storing the keywordChar index[6][6]={' begin ', ' if ', ' then ', ' while ', ' Do ', ' end '};Main (){P=0;printf ("Intput string (End with ' # '): \ n");Do{Ch=getchar ();Input[p++]=ch;}while
How to Use Python to write a calculator software with python
This calculator is developed using the Python tkinter module.
Results:
1 import tkinter # import tkinter module 2 3 root = tkinter. tk () 4 root. minsize (280,500) 5 root. title ('Lee Long's calculator') 6 7 8 #1. page Layout 9 # display panel 10 result = tkinter. stringVar () 11 result. set (0) # display panel result 1, used to display the default number 0 12 result2 = tkinter. stringVar () # display panel result 2, used to display
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.