tab matches the command complete, auto completion path/Command Yes: Clear All content before the cursor to the beginning of the line "can be used to delete entire lines of the entered command": Clears the contents of the cursor to the end of the lineThe up and down keys to view previously executed commands orthere will be a hint to search for the key words you entered Bash's history when you find a command that is not the one you want, you can continue to press CTRL + R to find the next matching
# #进程在shell后台运行ctrl +z # #把占用shell的进程打入后台运行暂停工作jobs # #查看被打入后台的进程信息fg Job number # #把指定进程调回前台bg job number # #运行起来后台停止的进程ctrl +c # #关闭占用shell进程4. How to control processes with commands1) SignalSignal 1 # #reload进程 (not in process case reread profile) Signal 2 # #ctrl +C Delete process in memory information Signal 3 # #内存中的鼠标信息清除 (ctrl+\) Signal 9 # #强行关 Closed process (closed single process) signal # #正常关闭进程 (sub process closed after main process) s
FG, BG, Jobs, , Nohup, Ctrl+z, CTRL + C command
First,
Added at the end of a command, you can put this command in the background to perform, such as
Watch-n sh test.sh #每10s在后台执行一次test. Sh script
Two, CTRL + Z
A command that is executing in the foreground can be placed in the background and paused.
Third, Jobs
See how many commands are currently running in the background
The JOBS-L option shows that the pid,jobs status of all tasks can be ru
[, Fillchar]) >>> a = ' Wang ' >>> a.rjust (' 28, split, slices the string by specifying a delimiter, and if the parameter num has a specified value, separates only the NUM substring, syntax:str. Split(str="", num=string. Count(str)). >>> a = ' Wang Wang Wang Wang ' >>> a.split (' A ', 3) [' W ', ' ng w ', ' ng w ', ' ng Wang ']29, Rsplit>>> A ' Wang Wang Wang ' >>> a.rsplit (' A ', 3) [' Wang W ', ' ng w ', ' ng w ', ' ng ']30, Splitlines, separated by line (' \ r ', ' \ r
the rows as elements, if the argument keepends is False, does not contain a newline character, and if true, the newline character is preserved. split (Sep[,maxsplit]): Slices a string by specifying a delimiter and, if the parameter maxsplit has a specified value, separates only Maxsplit substrings, returning the segmented list of strings. Rsplit (Sep[,maxsplit]): Same as split (), but starting from the right. Look at the following examplestr1 = ' ab c\n\nde
tkinter# contains a button, Buttontop = Tkinter. Tk () quit = Tkinter. button (top, text= "Hello world!", command=top.quit) # Here is to create a function button (quit) instead of a label quit.pack () # Display Control Tkinter.mainloop () # run this GUI programOutput effectLabel and Button controlsCombines the above two cases with both a label label and buttonImport tkinter# includes a label and a button, label, Buttontop = Tkinter. Tk () Hello = Tkinter. Label (top, text= "Hello world!"). P
a value of-1, others are represented by a positive integer//The following conversion allows the edge pixels to become -1*255+255=0, that is, black, the rest of the overflow, the assignment is 255, that is, white. Markers.convertto (tmp,cv_8u,255,255); returntmp; }};#endif //WatershedsegmenterMain.cpp#include #include#include#include#include"Watershedsegmenter.h"using namespacestd;using namespaceCV;intMain () {//Read input Image artworkMat image= Imread ("/home/osksh/skin_c/dulani_anuradha4.jpg"
.
I can press two times alt+b so the cursor will be in the following position (where the cursor is referred to).
sudo apt-get^intall programname
Now you can press the arrow keys and insert "s" into the install.
If you want to copy the text from the browser to the terminal, you can use the shortcut key "SHIFT + Insert".
2. SUDO!!
If you do not know this command, I think you should thank me, because if you do not know, then every time you enter a long list of commands after the "permission d
form of an assignment, ECHO is required, like ret=$ (getId "http://www.baidu.com.1234.html"), and only the value of ECHO is passed to the RET variable.
Miscellaneous Knowledge points
Array of strings
[Yanruitao@boss_runtime sh]$ str= "Yan Lulu yrt Yanruitao"
[yanruitao@boss_runtime sh]$ arr= ($str) # This step converts the string to an array
[Yanruitao@boss_runtime sh]$ echo ${arr[*]}
Yan Lulu yrt Yanruitao
[yanruitao@boss_runtime sh]$ echo ${#arr [@]}
4
Common judgment Mark[-Z
with crontab, edit or delete the corresponding job.
The Guardian means not to be controlled by the terminal. Most of Linux's servers are implemented with daemon processes. For example, Internet server Inetd,web server httpd and so on. At the same time, the daemon completes many system tasks. For example, the job planning process Crond, the print process LPD, and so on.
The foreground process is the process that the user uses to have the control terminal
shell, process foreground and background
fiber for optical devices
With the construction and expansion of a large number of optical communication networks, the consumption of active and passive devices is increasing. The most widely used fiber-optic devices, mainly optical fiber amplifier, fiber coupler, optical divide wave, fiber Bragg grating (FG), AWG and so on. These optical devices must be low loss, high reliability, easy to use and communication optical fiber for low loss coupling an
the entire waveform. The algorithm must use two one-dimensional arrays, setptab[] and index_adjust[], appended to the following code.
--------------------------------------------------------------------------------
IMA-ADPCM Compression Process
First of all we think that the sound signal is zero-based, so we need to initialize two variables
int index = 0,prev_sample = 0;
In actual use, however, the value of Prev_sample is the first sampled value in each block. (This is explained in detail in
Tags: vim images numeric meaning meaning Modify permission settings background exe1.PID trigger any event, the system will define him as a program, and give the program an ID, called PID, and according to inspire the user of this program and related attributes, give this PID a group a valid permission setting. The PID used by different users of the same program is different: 2. Switch Login window can use ALT+F1~F7 to switch3. Throw the instruction into the background of "execute" 4. Drop the "
报告硬限制
-S:改变和报告软限制
Browse the Ulimit man page for more options.9. WW provides information about the currently logged on user and the process that is being executed. The information header contains information such as the current time, the system runtime, the total number of logged on users, the last 1, 5, and 15 minutes of load balancing.Based on these user information, users should be careful when terminating processes that do not belong to them. who is a similar command that provides a
have been looking for Ubuntu under the X-Wall tool, see most of the SSH and Tor, but Tor download, find a lot of methods, no way, only FG. But FG is a program that runs under Windows systems.Had to be installed again wine, with terminal installation: sudo apt-get install wineThis default seems to be Winetricks also installed, in the software source installed without winetricks as if.Winetricks is a simple w
Linux background Process Management of some commands: FG, BG, Jobs, , CTRL + Z command, and so on, the following for everyone, specifically can also refer to the Linux video tutorial .First, 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 currentl
background of a terminal.
CTRL + Z-Pause Application
FG-Re-call the program to the front desk
How do you use this technique?
Imagine you are editing a file with the nano:
sudo nano abc.txt file edit to half you realize that you need to enter some commands at the end of the terminal, but the Nano is running in the foreground so you can't type.
You might think the only way to do that is to save the file, exit the Nano, and then reopen the nano af
Understanding:
1.watershed () function accepts two parameters, void watershed (Inputarray image, Inputoutputarraymarkers)
The input image is 8-bit 3-channel, markers with a tagged image (or map), and the result is saved in markers.
2.markers sets the pixel to 1,2,3 according to the Mark ....
The 3.findContours contours parameter is a detected contour array, count records the Contour group number, and the markers result is 1,2,.... count, so the color is also randomly set to count.
4. According
In the process of managing a server, often when editing this file, suddenly to see other information, this is the time, the usual way is to exit the edit, and then to view the information.
But if we combine FG with BG command, we can make our work more efficient.
The commands involved in inter-process switching are as follows:
CTRL + CTerminate and exit the execution of the foreground command and return to the shellCtrl+zPause the execution of the
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.