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

Filter the first-level directory under the current directory (excluding directories under the directory)

2025-01-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

Method one

[root@myhost ~] # ls-l

Total 56

Drwxr-xr-x. 2 root root 4096 Jul 2 09:48 a

-rw-. 1 root root 1079 Jun 9 07:12 anaconda-ks.cfg

Drwxr-xr-x. 2 root root 4096 Jul 2 22:10 b

-rw-r--r--. 1 root root 0 Jul 6 15:17 c.txt

Drwxr-xr-x. 2 root root 4096 Jul 5 22:20 data

-rw-r--r--. 1 root root 5 Jul 3 08:22 d.txt

-rw-r--r--. 1 root root 23072 Jun 9 07:12 install.log

-rw-r--r--. 1 root root 6240 Jun 9 07:11 install.log.syslog

[root@myhost ~] # ls-l | grep ^ d / / ^ stands for what to start with

Drwxr-xr-x. 2 root root 4096 Jul 2 09:48 a

Drwxr-xr-x. 2 root root 4096 Jul 2 22:10 b

Drwxr-xr-x. 2 root root 4096 Jul 5 22:20 data

Method 2:

[root@myhost ~] # ls-Fl

Total 56

Drwxr-xr-x. 2 root root 4096 Jul 2 09:48 a/

-rw-. 1 root root 1079 Jun 9 07:12 anaconda-ks.cfg

Drwxr-xr-x. 2 root root 4096 Jul 2 22:10 b/

-rw-r--r--. 1 root root 0 Jul 6 15:17 c.txt

Drwxr-xr-x. 2 root root 4096 Jul 5 22:20 data/

-rw-r--r--. 1 root root 5 Jul 3 08:22 d.txt

-rw-r--r--. 1 root root 23072 Jun 9 07:12 install.log

-rw-r--r--. 1 root root 6240 Jun 9 07:11 install.log.syslog

[root@myhost ~] # ls-Fl | grep / $

Drwxr-xr-x. 2 root root 4096 Jul 2 09:48 a/

Drwxr-xr-x. 2 root root 4096 Jul 2 22:10 b/

Drwxr-xr-x. 2 root root 4096 Jul 5 22:20 data/

Method 3:

[root@myhost ~] # find. /-type d

. /

. / b

. / a

. / data

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

Servers

Wechat

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

12
Report