Showing posts with label IT. Show all posts
Showing posts with label IT. Show all posts
Sunday, July 14, 2013
Thursday, July 11, 2013
[Linux] 리눅스 명령어. 파일/폴더 개수 세기 / Linux command. How to count number of files/directories.
- 폴더 내부의 모든 파일/폴더 갯수 : ls | wc -l
- 폴더 내부의 폴더 갯수 : ls -l | grep ^d | wc -l
- 폴더 내부의 파일 갯수 : ls -l | grep ^- | wc -l
[참고]
ls -l : 폴더 안에 포함된 모든 파일과 폴더를 한줄씩 표현.
grep ^d / ^- : 파일/폴더에 맞는 줄을 찾음.
wc -l : 줄 갯수를 셈.
- # of all files/directories : ls | wc -l
- # of directories : ls -l | grep ^d | wc -l
- # of files : ls -l | grep ^- | wc -l
[Tip]
ls -l : Represent all files and directories line by line
grep ^d / ^- : Find the line which is about files or directories
wc -l : Count the number of lines
Wednesday, July 10, 2013
[Clipping] RSS란? RSS피드란 무엇인가요? 사이트 피드(Feed)의 뜻, 의미
Subscribe to:
Posts (Atom)