리눅스 디렉토리 목록 보기

1 개요[ | ]

리눅스 디렉토리 목록 보기
Bash 디렉토리 목록 보기
testuser@localhost:/etc/fonts$ ll
total 24
drwxr-xr-x 4 root root 4096 Oct  7 07:05 ./
drwxr-xr-x 1 root root 4096 Oct 18 01:02 ../
drwxr-xr-x 2 root root 4096 Oct  7 07:05 conf.avail/
drwxr-xr-x 2 root root 4096 Oct  7 07:05 conf.d/
-rw-r--r-- 1 root root 2844 Nov  5  2018 fonts.conf

2 방법 1: ls -d[ | ]

testuser@localhost:/etc/fonts$ ls -d */
conf.avail/  conf.d/

3 방법 2: ls + grep[ | ]

testuser@localhost:/etc/fonts$ ls -l | grep ^d
drwxr-xr-x 2 root root 4096 Oct  7 07:05 conf.avail
drwxr-xr-x 2 root root 4096 Oct  7 07:05 conf.d

4 방법 3: find[ | ]

testuser@localhost:/etc/fonts$ find . -mindepth 1 -maxdepth 1 -type d
./conf.d
./conf.avail
testuser@localhost:/etc/fonts$ find * -maxdepth 0 -type d
conf.d
conf.avail

5 같이 보기[ | ]

6 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}