Linux rookie--common commands to view and create directory files and other commands

Source: Internet
Author: User
Tags clear screen create directory system log

命令行提示符[[email protected] ~]## 超级用户$ 普通用户当前所在目录 ~用户的家目录管理员超级用户 /root普通用户     /home/用户名/所在目录

linux 命令格式命令 空格 [选项] 空格 [参数]选项,使用或调整命令的功能参数:参数四命令操作的对象,如果可以省略,说明有默认参数显示注意:在linux下是严格区分大小写,所有内容!命令全部小写

Linux view and create directory files and other commands
     1 ls//list Displays the contents of the directory 1.1 Ls-l//Long format display (the thumbnail option with a minus sign, the complete option is two minus)-RW-------.1 root root1434 Mar709:Anaconda-ks.cfg first column permissions: Owner permissions, owning group permissions, other people permissions second column reference count third column owner fourth column belongs to group fifth column size the default unit byte sixth column file last modified and accessed MarchNumber 7th,9 pips42 minutes Seventh Column file name1.2 ls-hl-h humanized Display-RW-------.1 root root1.5k Mar709:Anaconda-ks.cfg multiple options can be used together, mostly without order such as LS-LH1.3 ls-a shows all file filenames preceded by a. is a hidden file2CD//switch in your directoryCD//Back to the home directory of the logged-in userCd/home//Enter the next level directoryCD///Enter the root directoryCD-//into the last action directoryCd.. Go to the top level of the TAB key to our directory and files to complete the relative path reference to the current directory, query, if you use relative path, please check your directory absolute path from the root directory to start a first-level lookup, directly find the location3pwd Displays the directory where you are currently4 Common Linux directories (the following directories must all be recorded)/root directory/root Super Admin home directory/root/home General user's home directory/bin command Save directory (normal user)/sbin command save directory (super Admin)/boot directory startup related file content/dev Device file save directory/etc Configuration file Save directory/lib function library save directory/MNT System mount directory (recommended)/media mount directory/tmp temp directory/proc Write directly to memory/USR system software catalog/var system related document content/var/log system log 5 mkdir//Create a directoryBlue folder (directory)mkdir file name (in English)Mkdir-p file name (recursive creation)6rm-rf file [table of contents]Remove-R Delete directory-F coercion7 file Operation command Additions and deletions change1. Create File New fileTouch file name2. View Filescat file name view files cat-n Install.log-n display line numbers Span class= "hljs-title" >more file name split screen display space page down b page Up Q exit split screen operation head-the number of numbers to view file name head-19 Hys.sql//display 19 rows of content 3 Delete RM delete rm-rf File/directory 4 copy copies CP source file target location cp-r./ys/./hys/-r Copy directory 3 MV Cut or renamed //Cut mv source file Destination location//renamed MV source filename new name
   shortcut   Force terminate  Ctrl + C clear screen  Ctrl + L  span>                 
      
 

Linux rookie--common commands to view and create directory files and other commands

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.