1. Check the process PS command to find the process-related PID number: PS A shows all the programs under the current terminal, including other user programs. PS-A Displays all programs. PS C when listing the program, displays the actual instruction name of each program, and does not include the path, parameter or indication of the resident service. Ps-e the effect of this parameter is the same as the specified "A" parameter. PS e Displays the environment variables used by each program when the program is listed. PS F Displays the tree structure in ASCII characters, expressing the interrelationships between programs. PS-H displays a tree structure that represents the interrelationships between programs. PS-N displays all programs except those under the PS instruction terminal. PS s uses program signal format to display program status. PS S lists the program, including the interrupted subroutine data. The ps-t< terminal number > Specifies the terminal number, and lists the status of the program belonging to the terminal. PS U displays program status in a user-oriented format. PS x shows all programs and is not differentiated by terminals. The most commonly used method is PS aux, which then filters through the grep command to find a specific process and then operates on a particular process. PS aux | The grep program_filter_word,ps-ef |grep Tomcat ps-ef|grep java|grep-v grep shows all of the Java processes and places the current grep process away. 2. Kill process use KILL command to end a process: kill xxx commonly used: Kill-9 324 Linux also provides a killall command that can directly use the process name instead of the process identification number, for example: # killall-9 name 3. Go to the path where the execution file of the process is located, and execute the file./filename Attached: This is the time I spent two days sorting out, some of the most commonly used Earth people know that the orders are omitted. Finally, PDF brochure is available for download 1. Change file owner command: chown [-CFHVR] [--help] [--version] user[:group] File ... Function: Change the owner parameter format of a file or folder: User: New file owner user idgroup: New file owner user Group-C: If the owner of the file has actually changed, display its change action-F: If the file The owner cannot be changed and should not display an error message-H: Change only for link (link), not the file that link actually points to: Displays details of the owner's changes-R: The same owner changes to all files in the current directory and subdirectories (that is, the recursive change) for example: Chown-r oracle:oinstall/oracle/u01/app/oracle Change the directory owner to O Racle 2. Modify Permission command: chmod (change mode) function: Changes file read and write and execute permissions. Signed method and octal digital method. Options: (1) Symbolic Method: Command format: chmod {u|g|o|a}{+|-|=}{r|w|x} filename u (user) represents the users themselves. G (group) represents the same group of users. O (Oher) represents other users. A (all) represents all users. + is used to give permission to the specified user. -Use to cancel permissions for the specified user. = Assign permission to file. R (Read), which indicates that the contents of the file or directory can be copied. W Write permission that indicates that the contents of the file or directory can be modified. X (execute) allows you to execute the file or enter the directory.
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.