Lunux command notes

Source: Internet
Author: User
File view command ls-lhlslist path-l detailed-lh detailed humanized display-ld display Directory-I display I node mkdirt
File view command ls/-lhlslist/path-l detailed-lh detailed user-friendly display-ld display Directory-I display I node mkdir/tmp/mulu/mulu2/tmp/ma/mb -p recursively create directory processing command cd/tmp enter directory cd .. return to the upper-level directory pwd to display the current directory cp-r [original file or directory] [target file or directory] cp copy-r copy Directory-p save the original file attribute mv [original file or directory] [target file or directory] mv move or cut file processing command rmdir delete empty directory rm-f do not ask force delete-rf delete directory touch [file name] create file cat display file the content tac is displayed backwards. more can only be turned down. more can be searched./search content. n. search for head. display the first few rows of the file. execute rows. specify rows. tail. display the last few rows.-f. dynamic monitoring file. change ln-s [original file] [target file]-s soft link the content of the hard link file is updated synchronously by default, the source file can still be saved even if the hard link is lost. Save permission management command chmod [permission] [file or directory] set permission r = 4 w = 2 x = 1 +-=-R recursively modify chown [owner] [file or directory] modify the owner chgrp [user group] [file or directory] modify the group groupadd [group name] add group umask [[set permissions 777-rwx]-S] display or set the default permissions of files- S intuitively shows u =? G =? O =? File search command find [search range] [match condition] Search file-name file name contains *? Wildcard-iname not case sensitive-amin access time-cmin file attributes-mmin file content-size file size-a represents and-o represents or smaller than-greater than +-type File type f file d directory l soft link file-exec to execute the result-OK to ask whether to operate ls {}. \-inum quickly searches for files based on I node-exec rm {} \ locate, is the updatadb update database found in the database-I case-insensitive which [command] search command directory and alias information whereis [command] search command directory and help document path grep [search [file] find the line containing the string in the file and display it-I case insensitive-v exclude the specified character ^ # The first line is # exclude the HELP command man Query help information 1 Command help 5 configuration file description whatis query brief help apropos query configuration file brief help touch -- helphelp query shell command help cd what user management command use Radd [user name] add new user passwd [user name] set user password who display logon user tty local terminal pts remote terminal logon time IP address w display detailed login user information compressed decompress command gzip unzip file ..gz only the compressed file gunzip can be decompressed. tar [option] [compressed file name] [Directory]-c package-x unpack-v show details-f specify the file name-z package and compress or decompress it. gz-j package and compress or decompress it. bz2tar-czf file name .tar.gz \ etctar-xzf decompress tar-cjf file name .tar.bz2 \ etctar-xjf to zip [option-r] [compressed file name] [file or directory]-r the compressed directory unzip [file or directory] bzip2 [option-k] [file]-k is used to generate the compressed file and keep the original file bunzip2 [file] decompress the network command write [user name] and send it to the user information ctrl + d save end wall [send information] Send messages to all users. ping [IP address]-c how many times ifconig [Nic name] [IP address] view and set Nic information mail [user name] view sent email last listed current and past login information lastlog last login time can specify an id to query traceroute display data packets to the path between hosts netstat display network information-ttcp protocol-uudp protocol-l listener-r route-n display IP address and port number-tlun view the port listening on the local machine-an View all network connections on the local machine-rn view the local route table setup set the network centOS proprietary mount [-t file system] [Device file name] [mount point] Mount command umount unmount command shutdown restart command shutdown [option] time-c cancel previous shutdown command-h shutdown-r restart reboot restart init 6 restart system running level 0 shutdown 1 two or more users per user, excluding NFS service 3 full multi-user 4 Unallocated 5 graphic interface 6 restart runlevel query system run Level-1 logout rpm command management rmp-vih [package name] install rmp-e [package name] uninstall rmp-q [package name] query-a All installation information-qi related information- full name of the p package-f query system file belongs to the software package-qRp query package dependent on yum online management yum-y update package name. if it is entered incorrectly, it will be miserable !! Will also upgrade the Linux kernel. The yum-y remove package name will also detach the dependent package. The shell basic alias = 'original command'

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.