1 start character [email protected]:~$
The first TD indicates the current login administrator name, middle @ no practical meaning, td-lenovo-ideapad-y410p represents the host name, ~ indicates the current directory (home directory), $ normal user prompt, #表示超级用户提示符.
2 command format
command [options] [parameters]
It is important to note that individual commands do not conform to this format, and when there are multiple options, they can be written together, and the simplification option is identical to the full option-a--all
Query directory Options ls command: LS [options] [file or directory]
Options:
-a displays all files, including hidden files
-L Show more information
-D View Directory properties
-H human words show file size
-I display Inode
If you execute the command ls-l:
[Email protected]:~$ ls-l Total dosage 76-rwxrwxr-x 1 TD TD 8608 December 9 18:52 a.out-rw-r--r--1 TD TD 13 December 4 11:43 dat a.txt-rw-r--r--1 TD TD 8980 November 17:18 examples.desktop-rw-rw-r--1 TD TD 72 December 9 18:52 hello.cpp-rw-rw-r--1 TD TD 31 December 4 11:56 h.py-rw-rw-r--1 TD TD 80 November 17:47 ps.pydrwxrwxr-x 3 TD TD 4096 November 20:42 Workspac EDRWXR-XR-X 2 TD TD 4096 November 23 01:24 Public Drwxr-xr-x 2 TD TD 4096 November 23 01:24 template Drwxr-xr-x 2 TD TD 4096 November 23 01:24 Video DRW XR-XR-X 2 TD TD 4096 November 23 01:24 picture Drwxr-xr-x 2 TD TD 4096 November 23 01:24 document DRWXR-XR-X 2 TD TD 4096 November 23 01:24 Download DRWXR-XR -X 2 TD TD 4096 November 23 01:24 Music drwxr-xr-x 2 TD TD 4096 November 23 03:12 Desktop
-rwxrwxr-x Explanation:
The first column of 10 characters represents the permission, the first character represents the file type (in Linux not by the file suffix name to identify the file), the most commonly used are the following three kinds:
-Represents a file, D represents a directory, and L represents a soft-linked file.
The next 9 characters are divided into three groups, rwx,rwx,r-w represent the rights of three users respectively, they are U owner, G belongs to group, o others, where R Read, w write, X execute.
Basic Linux command format