linux study notes: 1 file commonly used commands (1) --- ls

1. Linux command format:

Here Insert Picture Description

2.linux terminal (black box) of the Open method:

Right-click on the desktop -> Open Terminal
shortcuts: ctrl + atl + t

3.ls command

LS
1. Do not write parameters: display the directory of the current file is located.
Here Insert Picture Description
2.ls -a: find the extra point to the beginning of the file, in Linux, hidden files that begin with. "."
Here Insert Picture Description
So, you can achieve the files into a hidden file by adding a point before the file name.
3.ls /: files in the root directory.
Here Insert Picture Description
4.ls -l Displays a long (long) file name.
Here Insert Picture Description
Number in the second column: indicates that the file has been used a few times hanging. -unimportant

Each file the user is divided into three categories, the owner -u, belongs to the group -g, others -o
default, who created the document, who is the owner,
the third column: Owner
fourth column: belongs to the group
of five: file size

-lh: two options put together, and the order does not matter.

-H will display the file unit size:

Here Insert Picture Description
The sixth column: the file was last modified.
Seventh column: the file name.

The most important first column: The following 4

4. File type: as the first column of a total of 10 characters

The first character:
-: file
d: directory
l: soft link

3X3 representation: u. g. o Permissions:
Here Insert Picture Description
Permissions:
Here Insert Picture Description

5.-d

Display information about the current directory
ls -ld displays the current directory, the files in the directory instead of the.
Here Insert Picture Description

Published 99 original articles · won praise 50 · views 2825

Guess you like

Origin blog.csdn.net/weixin_42721412/article/details/104266011