OverviewLinux commands have a lot of Part I:Linux Directory Management class commands Directory Management class Commands:mkdir, RmDir, tree, DirName, basename(1) mkdir command:
Role: Used to create a directory in Linux.Format: mkdir [options]
Project
Command
Command explanation
Example description
Text View commands
Cat
View the file as text, from the first line to the last line
Command format: Cat [OPTION] ... [FILE] ...-N option with line
The Linux directory is divided into relative path and absolute path by callRelative path: Finding a target from the current path can also be used./Call the current directory file or: /Call a file in the previous level directory to view the current
Exercise 1: Create a new x_m, X_n, Y_m, y_n directory under/tmpMkdir-pv/tmp/{x_,y_}{m,n} Description:-P Creates a parent directory if there is no parent directory.-V Displays the creation process.Exercise 2:1) Display the/etc/directory, beginning
1. History: You can view the command Chronicle, and each command will have a serial number marked in front of it.Grammar:history[Options]The meanings of the command options are as follows:
Options
Option meaning
-C
One. View system load commandsTo view the current system load: W or uptime650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/71/99/wKiom1XUMb6wFbCkAAE3Nsqshjs654.jpg "title=" 1.jpg " alt= "Wkiom1xumb6wfbckaae3nsqshjs654.jpg"/>Here we can see
Build the kernel(1): First: Verify that the Linux source program has established two symbolic connections in the/usr/include directory:# Cd/usr/include# ls-l ASM Linuxlrwxrwxrwx 1 root root 4 17:27 asm-/usr/src/linux/include/asmlrwxrwxrwx 1 root
1. View Log common commands tail:- n is the display line number, equivalent to the NL command;tail-100f Test.log Real-time monitoring of 100 rows of logsTail-n test.log query log at the end of the last 10 lines;Tail-n +10 test.log Query all logs
Save to keep your goals and learning tasks clear.Photo Excerpt: http://baidu.blog.51cto.com/71938/1683613650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/71/84/wKioL1XS_CqC_igcAAEMPU9dZ40041.jpg "title=" Primary Linux operations "style="
/proc/sys/vm/swappiness #结果显示该值默认为60.whichSwappiness=0, it means maximizing the use of physical memory before using swap space,SWAPPINESS=100, the active use of the swap partition, and the memory of the data in a timely manner into the swap
Last week, a classmate asked me how Linux upgrade kernel, and then after working with Debian, the kernel is basically the latest 3.x.x upgrade kernel is very simple, directly from the source to update. I'll do it for the rest of the week while I'm
Preparation environment:Installed VMware, download a good CentOS image file.To start the installation:
Go to the virtual machine and click on "File"--"new virtual machine"
Pop Up the dialog box, select "Typical", then click Next. Such as650)
Unbantu, first copy the DVD's vmwarew.gz, file to the TMP file, and thenTar zxf VMware Tools-0 ....Ls./intall.plThere is a file that is copied to the Root/temp directory first. Then unzip the installation on the line. The detailed installation steps
VI cusor:0:to the beginning of the$: To the end of the current lineG:to the last of the fileGg:to the beginning of the fileDelete:Dd:delete the current lineDg:from the current line to the end of the fileD20g:from the current line tot the 20th line
Telnet 192.168.1.245 3306Use the script above to test whether the port is open, and note that the service that is enabled for the terminal must be turned on.If it is not open,Vi/etc/sysconfig/iptables-A rh-firewall-1-input-m state--state new-m tcp-p
wildcard characters are typically used for the user's command-line Bash environment, while Linux regular expressions are used in Grep/sed/awk scenarios. * --wildcard characters (0 to more )? --wildcard character, representing any 1 characters;
Run levelinit 6 = = REBOOT = = Shutdwon-r now restartinit 0 = = Shutdown-h now offSingle-User modePress any key---> Press E to edit the 2nd item in three seconds after startup and press E---press 1--> at the end and press B to start-up in a few
What are special permissions :In Linux, the commonly used permissions are: Read, write, execute, these 3 permissions can in most cases ensure data security and to meet our use, but in some special cases, we must use some special permissions to do
1. Backup overviewLinux systems need to back up data and/root,/home,/var/spool/mail,/etc and other directories such as logs.The data for the installation service needs to be backed up, such as the data that Apache needs to back up, the configuration
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