Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Show only hidden files or directories under a directory

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

This article is for learning only:

Show all hidden files and directories

[root@localhost] # ls-ad. *

Ls: displaying list information

-a: shows that all files under the current directory or path contain hidden files

D: show only the contents of the current directory itself

The effect diagram is attached below.

Show all hidden directories

[root@localhost] # ls-d. * /

/ identified as a catalog file

The following is the effect picture

Show all hidden files

[root@localhost ~] # ll-ad. * | grep "^ -"

Ll: displaying in long format

. *: all files in the current directory that begin with a dotted star

"^ -": (-) means to reverse an ordinary document (^).

Meaning: show all hidden files that begin with a dot in the current directory in a long format and filter out files that are not ordinary file types.

The following is the effect picture

Or

[root@localhost] # find / root/-type f-name ". *"

Find all files under root that are normal files of type f and whose names begin with a dot.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report