Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
FOSS-lab
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Kim-JinHyuk
FOSS-lab
Commits
2c1bf819
Commit
2c1bf819
authored
2 years ago
by
Kim-JinHyuk
Browse files
Options
Downloads
Patches
Plain Diff
Update linux.md
parent
957f2f8e
Branches
main
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
linux.md
+23
-1
23 additions, 1 deletion
linux.md
with
23 additions
and
1 deletion
linux.md
+
23
−
1
View file @
2c1bf819
...
...
@@ -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 - 브랜치 작업 끝나지 않았을때 이동가능
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment