프로그램/UNIX & Linux
[Linux] pwd, cd, cat, tail
영혼과영혼의양식
2012. 10. 2. 17:18
● pwd : 현 디렉토리, 작업중인 디렉토리의 경로 출력(Root부터 절대경로로 출력)
● cd : 작업 디렉토리 변경
● cat : 파일 내용 보기
-n : 출력되는 파일 내용의 줄번호를 표시
● tail : 파일 내용표시
-f : file에 계속적으로 추가되는 내용을 보여줌(log파일 모니터링시에 유용)
ex)
administrator@ubuntu:/etc/cron.d$ cat -n anacron
1 # /etc/cron.d/anacron: crontab entries for the anacron package
2
3 SHELL=/bin/sh
4 PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
5
6 #30 7 * * * root test -x /etc/init.d/anacron && /usr/sbin/invoke-rc.d anacron start >/dev/null
7 30 7 * * * root start -q anacron || :