linux ls command. and ..

In fact, there are at least two directories under linux directory, respectively Unlike ..

The first to be tested:

According to wildcard rules of linux. The beginning of the file / directory need. To display matching.

So we need to use the time ls. * To see it

Only ls *. * Can not see

Then look at a field ls -l command

Our concern is the second column.

When the file is non-directory This field indicates the number of hard links.

That directory of time for it? Directory hard links are not allowed.

When the file is a directory when the directory number indicates the directory (comprising the ..), so that at least 2

As shown above, the value of directory field oslab 5, except that we can deduce. .. and which should have three subdirectories

Sure enough, it is three.

Released eight original articles · won praise 6 · views 2748

Guess you like

Origin blog.csdn.net/qq_39628285/article/details/104046242