is better than direct sudo, it is still unclear.
sudo su -
Show current directory, view current user
pwd who am I
Do not ask man in Linux (Linux to quit an operation CTRL + C)
man xx
View all PY processes under Linux
Aux and-ef effect is similar, can enter PS--help See more,
PS grep PS -ef |gerp py
Grep's explanation is: Search for PATTERN in each FILE or standard input. my understanding is to search by keyword.
Kill the corresponding PID process
Kill -9 PID
Lists all the process numbers for a keyword. -V is to remove yourself and kill the process in order not to kill yourself. Awk is the first column in the list, followed by the only way to remove the 2nd column meaning, and the second column is the process number PID.
PS grep grep grep awk ' {print $} '
Show PID for all processes under a keyword
Kill -9 'PSgrep grep grep,awk' {print $} "'
View log files, view files in Linux can be used cat can also use vim
But for the log file words first particularly big, and then will continue to write things, you need to see the latest write things can use the following command,-F is to view the latest, use when you want to open an output box like
tail -F Log/xxx.log
A program, such as a Java program, is executed in the background. Usually encounter, in the execution of a program is, the program does not quit, but want to do the other is, and can not turn it off, this time the command to execute the program in the background
Nohup xx. SH &
Linux installs the Python module.
If you install module on Windows, download it directly and copy it to lib/site-packages in the Python directory, but Linux requires a command line.
1. General module This all can be used in all things are installed, the user root directory is ~
2. Get through the download URL, the URL is the URL that downloads the file in the browser, just click on the download box that link
3. Unzip the tar.gz file with a command
4. Many of the module is written in C/C + + package into so library, here may need to compile, of course, there is no need, you can try
5. Make a check after compiling
6.setup.py Build It first and install it again.
CD ~wget urltar -zxvf xx. Tar . GZCD xx. /configmakeinstall
View disk conditions
Linux Command Collection