터미널 명령어 모음
터미널 프로그램이란
Command Line Interface (CLI) 를 통해 컴퓨터의 모든 응용 프로그램에 접근할 수 있게 도와주는 프로그램이다
Mac/Linux 기본명령어
pwd: Print Working Directory 현재 디렉토리 보여준다cd: Change Directory 디렉토리 변경cdorcd ~- Takes us to the home directory.cd <folder name>- Takes us forward one step to the folder that is typed in.cd ..- Moves us back one level to the parent folder.cd ../..- Moves us back two levels. Add more/..for each level we want to navigate up.
ls: 디렉토리 내의 파일과 하위 디렉토리를 보여준다ls -al- 리스트로 전체 파일과 디렉토리를 보여준다
clear: 화면 지우기mkdir: Make Directory 디렉토리 만들기mkdir <folder name>- Make Directory
touch: 파일 만들기touch <file name>- Make File
open: 파일 또는 폴더 열기open <folder/file name>- Open File
history: 터미널의 명령 히스토리를 보여준다history <number>- Number 이후의 히스토리를 보여준다
cat: 해당 파일의 내용을 보여준다cat <file name>- File 의 내용을 보여준다