다음과 같은 디렉토리 구조가 있습니다.
모든 폴더 (하위 디렉터리 포함)의 전체 크기를 가져오고 _edit
이름 이 있는 모든 폴더를 제외하는 방법이 있습니까?
du -s
루트 폴더에서 시도했지만 모든 하위 디렉토리가 나열됩니다.
이런 식으로해야합니다.
$ du -s application[12]
$ ls -l
total 16
drwxrwxr-x 2 saml saml 4096 Nov 28 01:51 application1
drwxrwxr-x 2 saml saml 4096 Nov 28 01:51 application1_edit
drwxrwxr-x 2 saml saml 4096 Nov 28 01:51 application2
drwxrwxr-x 2 saml saml 4096 Nov 28 01:51 application2_edit
디스크 사용량:
$ du -s application[12]
4 application1
4 application2
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다