본문 바로가기

기타/리눅스10

리눅스 명령어 정리(6) cat, sort, uniq, grep, wc, head, tail, tee 6 – Redirection ● cat - Concatenate files ● sort - Sort lines of text ● uniq - Report or omit repeated lines ● grep - Print lines matching a pattern ● wc - Print newline, word, and byte counts for each file ● head - Output the first part of a file ● tail - Output the last part of a file ● tee - Read from standard input and write to standard output and files 1. cat : 두 개 이상의 파일을 연결(concatenate)해서.. 2018. 6. 18.
리눅스 명령어 정리(5) type, which, help, man, apropos, info, whatis, alias 5 – Working With Commands ● type – Indicate how a command name is interpreted ● which – Display which executable program will be executed ● help – Get help for shell builtins ● man – Display a command's manual page ● apropos – Display a list of appropriate commands ● info – Display a command's info entry ● whatis – Display a very brief description of a command ● alias – Create an alias for a com.. 2018. 6. 18.
리눅스 명령어 정리(4) cp / mv / mkdir / rm / ln Chapter 4. File & Directories cp / mv / mkdir / rm / ln 1. cp : 복사하는 명령어 cp item1 item2 : item1을 item2라는 이름의 파일로 복사.(item2라는 이름의 파일이 없어야함) 만약 item2라는 디렉토리가 있다면 그 디렉토리 안으로 item1이 복사된다. (screenshot.jpg 를 복사해서 screencopy를 만들었다) -a: 원본 파일의 속성, 링크 정보들을 그대로 유지하면서 복사한다. -i: 만약 복사할 대상이 이미 있으면 사용자에게 물어본다. -r: 원본이 파일이면 그냥 복사되고 디렉터리라면 디렉터리 전체가 복사된다. -u: 복사할 대상이 있을 때 이 파일의 변경 날짜가 같거나 더 최근의 것이면 복사하지 않는다. -v:.. 2018. 6. 18.
리눅스 명령어 정리(3) ls / file / less Chapter 3. Exploring ls / file / less 1. ls : 현재의 디렉토리 목록 *ls /usr : usr에 있는 디렉토리 목록 *ls -l : 파일에 관한 상세 정보를 나타냅니다. *ls -lt : 파일을 시간순으로 정리해서 보여준다. *ls -lt --reverse : 파일을 역순으로 정리해서 보여준다 *ls -a : 모든 디렉토리 목록을 보여준다(숨김파일 포함) *ls -A : ls -a에서 .(current) ..(parent) 을 제외하고 보여준다. *ls -F : 파일 유형을 나타내는 기호를 파일명 끝에 표시 (디렉토리는 '/', 실행파일은 '*', 심볼릭 링크는 '@'가 나타남). *ls -h : 사람이 읽을 수 있는 파일 사이즈 표시 *ls -r : 순서를 반대로 보.. 2018. 6. 18.