Linux Command (2): ls command, linux Command ls
1. Role: List the contents of a directory;
2. Format: Ls [Option] [file]
[Option] specifies the file-related content to be viewed. If no file is specified, all files in the current directory are viewed by default;
3. Common Parameters:
4. Use instances:
[Yourname @ www/] $ ls-l (can be abbreviated as ll)
Total 220
Drwxr-xr-x 2 root 4096 Mar 31 2005 bin
Drwxr-xr-x 3 root 4096 Apr 3 2005 boot
-Rw-r -- 1 root 0 Apr 24 2002 test. run
...
This instance is used to view all files in the current directory, and the detailed information is displayed through the option "-l.
The display format is described as follows: file type and permission (hard) number of links the name of the time when the file size of the main file group is modified.
To display all files starting with ".", you can use-a, which is often used in embedded development.
Note:
In Linux, the executable file is not identified by the file extension like in Windows, but by setting the corresponding executable attribute of the file.
Linux ls command
-Rwxr-xr-x File Permission (I will not explain it. This is the most basic knowledge of linux. man chmod or learn it online)
1. The number of hard links is generally considered as the number of sub-directories (for common files, it is always 1. For a directory, the number of sub-directories under the directory is + 2 (+ 2 is because. and .. ))
Root is the file owner (owner) and group (group), which is also the most basic knowledge of linux. man chown can learn about the following)
702160 File Size
Is generally the last modification time
Bash file name.
Linux ls command
I am sorry to tell you that your environment variable is wrong.
Environment variables have not been obtained. Can you use ls?
PATH = "$ PATH:/root"
Your above error;
The introduction of PATH is directly wrong. You can use it after modification.
PATH = "/usr/lib/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin: /usr/bin:/root/bin"