cd ls (List Segment) 하위 디렉토리 폴더확인
cd mkdir (make directory) 폴더 생성 후 접근
cd .. 상위폴더
cd . 현재폴더
cli : 커맨드라인인터페이스 ( 키보드만사용가능)
gui : 그래픽유저인터페이스 (키보드마우스가능)
ls -l (LinebyLine) : 한줄한줄
ls -a (Allfile) : 숨김파일모두찾기
ls -al : 한줄한줄+숨김파일모두찾기
ls --help : 자세한옵션보기
pwd : 현재 디렉토리위치 출력
touch [파일명] : 파일생성 ( 텍스트기반의 파일만 실행할 수 있음)
mv [파일명] [이동할폴더명]
ex) mv index.html practice/
mv style.css ../
asterisk
mv *.js .. (.js로 끝나는 모든파일을 상위폴더로 옮김)
rm : 삭제
rm -r [폴더] (선택폴더 및 파일 전체 삭제)
Vim 사용
vi readme.txt
Vim으로 readme.txt파일열기
초기는 노멀모드로 오픈됨
insert mode : press i on normal mode
visual mode : press v on normal mode
command mode : press shift + ; (:) on normal mode
-q : quit (나가기)
-w : write (저장)
-wq : write and quit (저장 후 나가기)
-q! : quit with override all changes (저장하지 않고 나가기)
How to go back to normal mode? : just press escape key
저장내역(파일내용) 확인 : cat readme.txt
Commands (on normal mode)
hjkl : arrow keys
o,0 : open line
d : delete
y : yank(copy)
p : paste
0: move cursor to start of the line
a : append
A: append at the end of the line
u : undo
ctrl+r : redo
VCS (Version Control System)
SCE (Source Code Management < Soft ware Configuration Management: 형상관리)
Blob : 파일 하나의 내용에 대한 정보
Tree : Blob 이나 Subtree의 메타데이터(디렉토리 위치, 속성, 이름 등)
Commit : 커밋 순간의 스냅샷
git : tool
github : web service(remote repository)