1. First, find the partition number corresponding to the file group
[SQL]View plaincopy
Use [dB]
Go
-- File group to be split
Select FG. Name
, Sp. destination_id
From SYS. destination_data_spaces sp
Inner join SYS. partition_schemes SCM on sp. partition_scheme_id = SCM. data_space_id
Inner join SYS. filegroups FG on FG. data_space_id = sp. data_space
ProcessWhat is it?JobWhat is it? InLinuxEverything running on the system can be called a process. For example, a simple helloworld program, input the ls command on the terminal, and so on.
A normal running process is called a job. A job can start multiple processes. For example, the job ls-lrt | grep *. txt starts two processes.
Commands related to processes and jobs include kill, disown, wait, fg, bg, and jobs.
F
splits. If sep is not specified or is none, use a space to separate str.
>>> s = '12345' * 8>>> s.rsplit('45')['123', '123', '123', '123', '123', '123', '123', '123', '']>>> s.rsplit('45',6)['1234512345123', '123', '123', '123', '123', '123', '']
Str. rstrip ([chars])
Returns a copy of str. The character at the end is removed. spaces are removed by default. chars indicates the removed character set.
>>> ' spacious '.rstrip()' spacious'>>> 'mississippi'.rstrip('ipz')'mississ'
Str. split
)If sln>; 15: return NoneFg = (nin For I in range (0, sln-3 ):Ns = ord (s [sln-i-4])-ord ('0 ')St = IIf (ns = 0) and (fg or (I = 8) or (I = 4) or (I = 0 )),'', cs [ns])+ IIf (ns = 0) and (I And (I = 0), '', cs [I + 13])+ StFg = (ns = 0)Fg = FalseFor I in [1, 2]:Ns = ord (s [sln-I])-ord ('0 ')St1 = IIf (ns = 0) and (I = 1) or (I = 2) and (fg or (nin + IIf (ns>; 0)
([keepends])
The string is split into a list using the line delimiter. When keepends is set to True, the line Delimiter is retained after the string is split. For the line delimiters that can be recognized, see the official documentation.
'AB c \ n \ nde fg \ rkl \ r \ n'. splitlines ()# ['AB C', '', 'de fg', 'kl']'AB c \ n \ nde fg \ rkl \ r \ n'. splitlines (k
to execute a program for a long time. If the program is executed in the foreground, other operations may not be performed, it is best to put it in the background for execution. 18. fg: The fg command is executed on the foreground. If a program runs in the background, you can use the fg command to move the program from the background to the foreground for executi
process ID whose user is 'mint' and whose name is 'sh.
11. fg, bg
Sometimes, the command takes a long time to complete. In this case, we can run the 'bg 'command in the background, while 'fg' can be used in the foreground.
We can start a program in the background through:
find .-name *iso >/tmp/res.txt
A running program can also be run in the background by combining the "CTRL + Z" and "bg" commands.
1. function prototype: The function prototype describes the function-to-compiler interface, that is, it informs the compiler of the type of the function return value and the number of parameter types.
2. pointer and const:
There are two kinds of const usage: one is to point the pointer to a constant object (the pointer refers to const), and the other is to declare the pointer itself as a constant (the pointer is const ).
Int age = 39;
Const int * PT = age;
Int const * PT and const int
position (here with the position of the finger cursor)Now you can double-click 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 "SHIFT + Insert".2. Pausing and running commands in the background
CTRL + z – Pause application
fg– the program to the front desk again.
How do you use this technique?Imagine you are editing a file with nano:
sudo
to open an explanation of backslash escaping in this command. Appending the appropriate escape sequence to the following options can change the display color of the echo command output. echo Displays color-related references in the text with three style,frontground and background. Each of the parameters has 7 values in a detailed format such as the following:Style Foreground background1st Digit 2nd Digit 3rd digit0-reset 30-black 40-black1-
last command becomes this:
sudo apt-getinstall ranger
If you don't know what sudo is, poke it here.3. Pausing and running commands in the backgroundI have written a guide to how to run commands in the terminal background.
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 nano:
sudo nano abc.txt
File editing in half you rea
Summary of commands common to LinuxAccording to the bird Brother Linux private dishes defined: must first learn the instructions:ls, more, cd, pwd, rpm, ifconfig, FindLogin and Logout (aircraft and aircraft):telnet,Login,Exit,Shoudown,rebootLinux Multi-person multi-work and background function: [Ctrl]+[z],FG,PS,KillArchives and Records management:CD,pwd,ls,Cat, More,mkdir,RM,rmdir,MV,CP,LN,Find,Whereis,chmod,Chown,chgrp,DF,du disk and hard management
Shell support function control, with the following command to achieve the front and rear switch: 1. command let the process run in the background 2. Jobs view Process 3 running in the background. FG%n Let the background run the process N to the foreground to 4. BG%n Let the process n Go backstage5. Kill%n kills Job PS: "N" is the job number that the jobs command sees, not the process number. FG, BG, Jobs, ,
from the network. Sends the hang-off signal to the control process.Tcgetpgrp, TCSETPGRP, and TCGETSID functions#include pid_t tcgetpgrp (int fd);int tcsetpgrp (int fd, pid_t pgrp);The TCGETPGRP function returns the process group ID that invokes the foreground process, which is associated with the terminal opened on FD.Assuming that the process has a control terminal, the process can call TCSETPGRP to set the foreground process group ID to PGRP. FD must refer to the control terminal of the sessi
A label component has been used in the previous article.The steps for using the components are as follows:1. Create this control2. Specify the master of this space, that is, which one of the controls belongs to3. Tell GM (geometry manager) that a control has generated aHow to use 1.text propertiesImport Tkinter top=tkinter. Tk () label=tkinter. Label (top,text= "Hello World") Label.pack () How
related commands for front and rear switch:1, After the command to add this match, let the process run in the backgroundFor example:#ping 127.0.0.1 //This time the ping 127.0.0.1 process is running in the background2. Ctrl + Z Use this key combination You can put a command that is executing in the foreground in the background and pauseFor example:#ping 127.0.0.1Hold Ctrl + Z //At this point the ping 127.0.0.1 process is suspended to the background and suspended from running3. Jobs See how man
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
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service