Common commands for create table and Common commands for table
Create table students (stuID integer not null, stuname char (30) not null, sex int not null); create table students (stuID integer not null, stuname char (30) not null, sex int not null, primary key (stuID); create table students (stuID integer not null primary key, stuname char (30) not null, sex int not null ); create table score (scoreID int
Common git commands and git commandsCommon Git commands
View, add, submit, delete, retrieve, and reset the modified File
Git help
Git show # display the submitted content git show $ id
Git co --
Git co. # discard workspace Modification
Git add
Git add. # submit all modified work files to the temporary storage Zone
Git rm
Git rm
Git reset
Git reset --. # recovering from the temporary storage area to wo
Common Linux commands and common linux commands
# Uname-a # view kernel/operating system/CPU Information# Head-n 1/etc/issue # view the operating system version# Cat/proc/cpuinfo # view CPU Information# Hostname # view the computer name# Lspci-TV # list all PCI devices# Lsusb-TV # list all USB devices# Lsmod # list loaded Kernel Modules# Env # view environment variable resources# Free-m # view memory usage
LVM logical volume management commands and lvm logical commands
# Lvmdiskscan // check all storage devices such as SCSI and IDE# Lvmchange-R |-reset // reset logical volume manager# Lvmsadc [full log file path name] // read/write statistics of the receiver logical volume manager, saved to the log file.# Full path name of the lvmsar Log File // read and report the logical volume from the log file generated b
Detailed explanation of linux sed commands and sed commands
Sed is a good file processing tool. It is a pipeline command mainly used for processing by behavior units. It can replace, delete, add, and select data rows, next, let's take a look at the usage of sed.Sed command line format:Sed [-nefri] 'command' input text
Common options:-N: Use silent mode. In general sed usage, all information from STDIN is us
ED/EP Series 5-consumption commands and edep series commands1. Consumption transactions
A consumption transaction allows the cardholder to use the balance of the electronic passbook or wallet for shopping or obtaining services.Features:1) -- it can be performed offline on the POS terminal.2) -- the personal identification code (PIN) must be submitted for consumption transactions using the electronic passbook.Steps:1) -- see consumer transactions for c
User and group management commands and user group management commands
Command parameter description--------------------------------------------------------------------------------Useradd is used to create a new user.-D specifies the user's home directory (default:/home/username)-D Display Default Value-Enew account expiration date, in the format of "YYYY-MM-DD"-G: Specifies an initial user group (it must a
Execute shell commands and shell commands
First, name the shell command as a. sh file.
Save the above Code as test. sh and cd it to the corresponding directory:
Chmod + x./test. sh # grant the script execution permission./test. sh # execute the scriptIf the error/bin/bash ^ M: bad interpreter: No such file or directory is reported
One of the reasons for the above error is that the script file is in
Common commands in ubuntu (1) and Common commands in ubuntu (
1. view the directory Ctrl + L
2. Under the terminal:Copy the command: Ctrl + Shift + C.Paste command: Ctrl + Shift + V combination key.
3. Decompress tar xzf flie.tar.gz
4. mkdir folder --/create a folderRmdir empty folder name --/delete an empty folderRm file name --/delete one or more filesRm-rf non-empty folder name --/delete everything in a
Five steps to master the basic development and usage commands of Git, and five steps to master git commandsStep 1: set global variables:
git config --global user.name "gang.li"git config --global user.email "ligang@ptthink.com"Step 2: Initialize the repository and push it to the remote repository (if this step is performed for the first push, otherwise skip this step ):
/* Create a project folder and initialize the repository */mkdir testcd testgit in
Common Linux commands (14) and common linux commands
The tail command writes the file to the standard output from the specified point. you can use the-f option of the tail command to conveniently check the changing log file. The tail content of the filename is displayed on the screen and refreshed continuously, so that you can see the latest file content.
1.Command Format;
Tail [required parameters] [selec
Common Linux commands (9) and common linux commands
The cat command is used to connect files or standard input and print. This command is often used to display the file content, connect several files, or read and display the content from the standard input. It is often used with the redirection symbol.
1. Command Format:
Cat [Option] File
2. command functions:
Cat has three main functions:
A. the entire fi
Common Linux commands (6) and common linux commands
The mv command is short for moving files. It can be used to move files or rename files. It is a common command in Linux and is often used to back up files or directories.
1.Command Format:
Mv [Option] source file or directory target file or directory
2.Command function:
Depending on the type of the second parameter in the mv command (whether it is the ta
Common Linux commands (4) and common linux commands
The linux mkdir command is used to create a directory with the specified name. The user who creates the directory must have the write permission in the current directory, and the specified directory name cannot be an existing directory in the current directory.
1. Command Format:
Mkdir [Option] Directory
2. command functions:
The mkdir command can be used
Common Linux commands (22) and common linux commands
The chmod command is used to change the access permissions of linux system files or directories. Use it to control access to files or directories. This command can be used in two ways. One is the text setting method that contains letters and operator expressions, and the other is the number setting method that contains numbers.
In Linux, each file and di
Common O m cmd commands and O M cmd commands
@ Echo offset PortNum = 3306for/f "tokens = 15" % a in ('ipconfig ^ | findstr/I/c: "IP Address "') do (set IP = % a) for/f "tokens = 5" % a in ('netstat-ano ^ | findstr "% IP %: % PortNum % "') do (set PID = % a) echo Port Number % PortNum % the corresponding PID is: % PID % pause
1. Find the process with a known port number
You can also use the follow
Linux-related decompression commands and linux decompression commands
ZIP
We can use the following command to compress a directory:
# Zip-r archive_name.zip directory_to_compress
Below is a zip file:
# Unzip archive_name.zip
TAR
Tar is a widely used document packaging format in Linux. Its advantage is that it only consumes a very small amount of CPU and time to package files. It is only a packaging tool and
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
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.