Detailed explanation of CentOS commands (ps commands)
The ps command is used to display information about the current process.1. Command FormatPs [parameters]2. Command Parameters
-A: displays all processes.
-N: displays all processes that do not match the specified parameter.
-A: displays all processes except the control process and the five-stop process.
-D: display all processes except the con
Details of Common commands on Linux servers and Common commands on linuxI. User
1. useradd is used to create an account.
Useradd newname // create newnamepasswd newname // set change the password. After entering this command, you will be prompted to enter the password
2. delete a user
userdel newname
3. Switch users
su - youruser
4. ssh remote login
ssh -l root 192.168.0.11ssh root@192.168.0.11
Specified P
Summary of common linux commands and parameters (basic) and common linux commands
1. user's home directory (~) In linux, users all have their own home directories. you can place your own configuration files and other things. pwd: list the current directory. optional parameter-P: when the current directory is a link directory, the real path is displayed. ls: List Files And Directories: optional parameter:-a:
Mysql modifies columns, adds columns, deletes common column commands, and mysql commands
Alter table: add, modify, and delete TABLE columns, constraints, and other TABLE definitions.
View column: desc table name;
Alter table t_book rename to bbb;
Add column: alter table name add column name varchar (30 );
Delete column: alter table Name drop column name;
Alter column name MySQL: alter table bbb change nnnnn
Summary of Common commands in linux and summary of Common commands in linuxClear terminal screen
Clear terminal screen usageClearCommand orCtrl + LCombination of shortcut keys. However, this operation does not actually clear the screen. If you scroll up, you can still see the previous output.
So you can also useResetCommand to truly clear the terminal screen.Definition of the command line Environment
[Ro
Linux-Common commands for daily system management and Common commands for linux1: W view the overall load of the system. You cannot view the specific load, such as memory or disk.23:25:20 up 13 min, 2 users, load average: 0.00, 0.01, 0.01User tty from login @ IDLE JCPU PCPU WHATFlex tty1-0.01 s 0.01 s-bashFlex pts/0 192.168.75.1 0.00 s 0.02 s 0.00 s tmuxThe first line shows the time, system running time, nu
How to fix rpm commands (accidentally delete rpm commands)
When executing the rpm-e -- nodeps command, I did not note that I wrote the rpm-e -- nodepsrpm command. As a result, the rpm was uninstalled. I can do this! You can also stop yourself. But if it commits suicide, it should be able to be revived. Think about the solution. If you use the reinstall method to solve this problem, it will not be resolved.
Xin Xing sorts out common query commands in Linux, and Xin Xing sorts out linux commands.
View version, operating system, or cpu Information
File:/etc/issue view OS version/proc/cpuinfo view cpu Information
Command: hostname to view the computer name uname to view the operating system information lspci to list all pci devices
Lsusb list all usb devices lsmod list to load modules
View system resource usage
Arp for linux commands and arp for linux commandsArp commands are used to display and modify IP addresses used by the Address Resolution Protocol (ARP) to the Ethernet MAC (Ethernet physical address) conversion table.Arp syntax format:
arp [-evn] [-H type] [-i if] -a [hostname]arp [-v] [-i if] -d [hostname] [pub]arp [-v] [-H type] [-i if] -s hostname hw_addr [temp]arp [-v] [-H type] [-i if] -s hostname hw_a
Common Linux commands-file search command find, common linux commands
Command name: findCommand path:/bin/findSyntax: find [search range] [matching condition]Function Description: file search
ExampleFind/etc-name initFind the file init In the/etc directory-Iname is case insensitive.* Represents a wildcard? Represents a character
Find/-size + 204800Search for files larger than MB in the root directory+ N
Detailed description of vi commands and vi commands
Esc switch mode
Esc + I insert before the cursor
Esc + a Insert after cursor
Esc + o line feed
Esc + u undo
Esc + dl delete a character
Esc + dd delete a row
Esc + x delete a character
Esc + yy copy a row at the cursor + p paste it to the next row of the cursor
Esc + q do not save and exit
Esc + wq! Force exit after saving
Pwd current path
S
Common Linux commands and common linux commandsCommand [Option] [parameter]------------------------ Positioning ------------------------Cd webapps/-- locate webappsCd .. -- return to the parent directoryCd--- return to the last directoryCd -- return to the home directory-- Display the complete path of the current filePwd-- Clear screenCtrl + L------------------------ Demonstration ------------------------Ls -- display the file list--- Display detailsL
Detailed explanation of jstat commands and display results, and detailed explanation of jstat commands
Reference Original:Http://blog.163.com/yangshuo_qq/blog/static/2554680201272871350110/Http://zizihaier.iteye.com/blog/1157245
Jstat1. jstat-gc pidThe gc information is displayed, and the gc count and time are displayed.The last five items are the young gc count, young gc time, full gc count, full gc time,
Record some recently used commands, record usage commands
(Command to paint in green)
View the device USB command:Ls/dev/ttyUSB *
The serial number of the device first inserted into the PC is small, for example, the OpenJTAG device and USB to serial port device are successively inserted.
They are ttyUSB0 and ttyUSB1 respectively.
Logon telnet command:Telnet local host 4444
Ln command: This command
Common Git commands and common Git commands
Mkdir:XX (create an empty directory XX refers to the directory name)
Pwd:Shows the path of the current directory.
Git initChange the current directory to a manageable git repository and generate a hidden. git file.
Git add XXAdd xx files to the temporary storage area.
Git commit-m "XX"Comments are followed by the submitted file-m.
Git statusView repository status
Summary of Common commands for android development and common commands for android Development
1. compile the project
Enter the project directory, for short,
2. Installation Project
Ant debug install, which version should be determined during installation. Note: Go to the project directory and execute this statement.
3. Start the android Simulator
Emulator-avd av, av is the name of the simulator
4. list
Common linux commands and linux commands
1. Network Parameter Setting command
1. ifconfig: Query and SET network card and IP network segment parameters
1.1 man manual Definition
DESCRIPTION Ifconfig is used to configure the kernel-resident network interfaces. It is used at boot time to set up interfaces as necessary. After that, it is usually only needed when debugging or when system tuning
[Django] user permission operation commands (1), django operation commands
To create a py file for testing, add the following code to the file.
# Coding: UTF-8 import OS. environ. setdefault ("DJANGO_SETTINGS_MODULE", "www. settings ") ''' when the Django version is greater than or equal to 1.7, add the following two statements: import djangodjango. setup () otherwise, the error django will be thrown. core.
Summary of Common commands for GDB debugging in Linux, and Common commands for gdb
Prepared by: longshike
Email: longshike2010@163.com
2016-01-05
Gdb is the default debugging tool in Linux. When compiling a program file, such as debug. c. To use gdb for debugging, you must add cc-g or gcc-g before the terminal command to compile debug. c can be obtained using the following command:
gcc -g -o debug debug.c
E
Common nmap commands and nmap commands
1) obtain the system type and open port of the remote host
nmap -sS -P0 -sV -O
-SS tcp syn scan (also known as semi-open or stealth scan)-P0 allows you to Disable ICMP pings.-SV: Enable System Version Detection-O attempts to identify remote operating systems
Other options:
-A: Enable the operating system fingerprint and version detection at the same time.-V: Output 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.