Skip to content
Snippets Groups Projects
Commit 2c1bf819 authored by Kim-JinHyuk's avatar Kim-JinHyuk
Browse files

Update linux.md

parent 957f2f8e
Branches main
No related tags found
No related merge requests found
......@@ -20,5 +20,27 @@
## hard link / soft link
1. ln - (하드)링크 만들기 , 링크끼린 inode 번호 같음(같은 파일), 디렉토리 복사하면 링크 끊어짐
1. ln -s - (소프트)링크, 파일이름이 들어있음, 다른 디렉토리로 복사하면 파일내용만 복사됨, mv로 하면 유지됨?
1. ln -s - (소프트)링크, 파일이름이 들어있음, 다른 디렉토리로 복사하면 파일내용만 복사됨
## redirection
1. > - stdout
1. 2> - stderr
1. < - stdin
1. | - 앞에있는 명령에서 나오는 stdout으로 나오는 것을 pipe 이후에 명령의 stdin 에 연결
## git
1. init - 디렉토리 리포짓토리로
1. clone - 깃 복사해서 가져옴
1. add - file stage
1. status - stage안된 파일 확인
1. reset --hard HEAD~? - ? 만큼 커밋 취소
1. diff - 다른점 확인
1. commit - 파일 커밋
1. branch - 브랜치 확인
1. branch [name] - 브랜치 생성
1. checkout - 브랜치 이동
1. merge - 브랜치 합치기
1. log - 커밋로그확인
1. fetch - pull하는게 아닌 중간저장
1. stash - 브랜치 작업 끝나지 않았을때 이동가능
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment