Linux 에서 폴더를 지정 하위폴더의 파일 개수를 확인 할때 사용하는 명령어
find /폴더/경로 -type f | wc -l
ex)
[root@Test /]# find /tmp -type f |wc -l
5
[root@Test /]# find /etc/sysconfig/ -type f |wc -l
77
[root@Test /]#
'OS > Linux' 카테고리의 다른 글
Rocky Linux 9.x OS Firewalld port open (0) | 2024.05.31 |
---|---|
BUG: soft lockup - CPU#0 Stuck for 67s! [migration/0:5] (0) | 2021.10.05 |
RSA error (0) | 2021.04.15 |
댓글