> ls -al | more

> ls *.html

> ls aaa???.html 

cat : 파일보기

> cat index.html > 1.txt (파일내용저장) 

> cat index.html >> 1.txt (1.txt + index.html)


more : 화면단위 파일보여줌

> more index.html

head : 첫라인부터 지정라인까지 출력 

> head -5 1.html 

tail : 지정된라인부터 마지막라인까지 출력 

> tail -5 1.html

> tail +10 1.html

> tail -f log.txt (append 되는 항목이 실시간으로 출력됨)

mv : 파일복사후 rename

> mv 1.html ../2.html (1.html 을 상위디렉토리로 이동후 파일명변경)

> mv 1.html 2.html (1.html 을 2.html 로 파일명변경)

> cd ~ : 홈디렉토리로 이동 

> find ~ -name love.html (-name : 서브디렉트로포함)

> which ping (실행파일 경로를 찾음)
 
> file *.* (파일종류) 

> cp index.html index33.html (복사)

grep -n 맹구 * : 현재 디렉토리(폴더)의 모든 파일들 중에서, "맹구"라는 문자열이 들어 있는 파일을 찾아서 그 문자열이 들어 있는 행을 화면에 출력합니다. 

> ls -al | grep html$ : 확장자가 html 인 파일만 필터링


도움말보기

> help --ls
> man ls
> info ls

기타명령어 

> date

 

> du -h (용량확인)

 

 
 

'UNIX' 카테고리의 다른 글

압축  (0) 2012.02.05
맥- open 명령어  (0) 2012.02.05
path 지정  (0) 2012.02.05
vi editor  (0) 2012.02.03
unix 구조  (0) 2012.02.03

+ Recent posts