"리눅스 디렉토리 목록 보기"의 두 판 사이의 차이

태그: 수동 되돌리기 되돌려진 기여
 
(같은 사용자의 중간 판 3개는 보이지 않습니다)
31번째 줄: 31번째 줄:
./conf.d
./conf.d
./conf.avail
./conf.avail
</syntaxhighlight>
<syntaxhighlight lang='console'>
testuser@localhost:/etc/fonts$ find * -maxdepth 0 -type d
conf.d
conf.avail
</syntaxhighlight>
</syntaxhighlight>


37번째 줄: 42번째 줄:
* [[리눅스 grep]]
* [[리눅스 grep]]
* [[리눅스 find]]
* [[리눅스 find]]
* [[Bash 디렉토리 목록 변수에 넣기]]


==참고==
==참고==
43번째 줄: 49번째 줄:
[[분류: 리눅스]]
[[분류: 리눅스]]
[[분류: bash]]
[[분류: bash]]
[[분류: 디렉토리 목록]]

2021년 12월 27일 (월) 13:19 기준 최신판

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 }}