[[Email protected]~]# root: Currently logged in user localhost: hostname ~: Current user's initial directory location #: Represents Super User $: The home directory of the normal user administrator is/roo T ordinary user/home/username Command Format command [options] [parameters] [] can be added without the-a display all files, including hidden files-L display detailed file-D View Directory Properties ls-ld/etc/ -H User-friendly display file size-I display inode multiple options can be put a piece write-a-l =-al-l Details permission 10 bit-rw-r--r--first bit represents file type "-" normal File "D" directory "L" soft Connect
back 9 bits, each three for a group of U owners G-owned group O other people
R Read W write x executeLs-lh-rw-r--r--. 1 root root 1.2k January 18:18 install.log "." The number that represents the ACL permission point indicates the reference count (the file was called several times) the first root indicates that the owner of the second root indicates that the owning group 1.2k size is the last modification time. Files that begin with are hidden files recursively creating directories mkdir-p Dir1/dir2 Ctr L+l Clear CD ~ Enter home directory CD into home directory CD-go to the last directory CD. Enter the parent directory PWD displays the current directory location RM-RF [file name or directory] Date display time copy command: CPCP [options] [source file or directory] [destination directory] Option:-r copy Directory-p file attributes Copy-D If the source file is a link, copy the Link property-a equivalent to-PDR MV [source file or directory] [target directory] if the source and destination files are renamed in the same directory, not in the same directory is cut
Linux Learning Notes