Command Line Interface
Command(명령어)를 통해 작동하는 인터페이스
<-> GUI(Graphic User Interface)
pwd
pwd
: Print Working Directory (현재 폴더의 경로)
~
(home directory) : 홈 디렉토리(git bash를 처음 열면 기본 디렉토리)
ls
ls
(list) : 현재 위치의 내용물 출력(list)cd [폴더명]
cd
(Change Directory) : 폴더 변경cd ..
: 상위 폴더로 이동cd .
: 현재 폴더로 이동mkdir [폴더명]
mkdir
(make directory) : 폴더 생성rm [파일]
rm
(remove) : 파일 삭제$ rm a.txt b.txt
rm -r [폴더명]
-r
(recursively) : 재귀적으로 폴더 삭제touch [파일명]
touch
: 파일 생성cp [파일명] [위치]
cp
(copy) : 파일 복사$ cp a.txt ./b.txt
cp -r [폴더명] [위치]
cp -r
: 폴더 복사mv [파일/폴더명] [변경할 파일/폴더명]
mv
(move) : 파일/폴더명 변경$ mv a.txt b.txt
mv [파일/폴더명] [경로]
: 파일/폴더를 해당 경로로 이동$ mv b.txt bb