Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
2
2022-Foss
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
민우 백
2022-Foss
Commits
a01fd5d8
Commit
a01fd5d8
authored
2 years ago
by
민우 백
Browse files
Options
Downloads
Plain Diff
Merge branch 'main' of
https://git.ajou.ac.kr/Baek_Minwoo/2022-foss
into main
parents
97f70485
b80a8410
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+10
-5
10 additions, 5 deletions
README.md
with
10 additions
and
5 deletions
README.md
+
10
−
5
View file @
a01fd5d8
...
...
@@ -10,11 +10,16 @@
*
사용자가 커널을 사용하려면 쉘을 거치고 유틸리티를 거치거나, 쉘을 거치고 어플리케이션을 거치고 시스템 콜을 거치고 사용해야 함
*
“test_dir” 이라는 디렉터리가 없는 상태에서, mv dir2 test_dir 명령을 수행하면, 디렉터리 dir2의 이름을 test_dir로 변경하고, 시간도 바뀜
*
“test_dir” 이라는 디렉터리가 있는 상황에서 mv dir3 test_dir 명령을 수행하면, 디렉터리 dir3을 test_dir 디렉터리로 옮기며, 시간은 안바뀜
*
ls -al a.out b.out 1> out1 2> err1 명령은, ls -al a.out b.out을 수행하되, stdout은 out1로, stderr는 err1에 리디렉션함
*
a.out < infile9899 명령은, a.out 의 stdin 으로 infile9899의 내용이 들어감
*
mkdir lab0926 ; cd lab0926 명령은, lab0926 디렉터리를 만들고, 해당 명령의 성공 여부에 관계 없이 lab0926으로 이동함
*
mkdir lab0926 && cd lab0926 &> 명령은, 먼저 lab0926 디렉터리를 만들고, 해당 명령이 성공했다면 디렉터리 lab0926으로 이동하며, stderr를 stdout에 묶어서 출력함
*
mkdir lab0926 || cd lab0926 명령은, lab0926 디렉터리를 만들고, 실패했을 경우에만 lab0926 디렉터리로 이동함
*
`ls -al a.out b.out 1> out1 2> err1`
- ls -al a.out b.out을 수행하되, stdout은 out1로, stderr는 err1에 리디렉션함
*
`a.out < infile9899`
- a.out 의 stdin 으로 infile9899의 내용이 들어감
*
`mkdir lab0926 ; cd lab0926`
- lab0926 디렉터리를 만들고, 해당 명령의 성공 여부에 관계 없이 lab0926으로 이동함
*
`mkdir lab0926 && cd lab0926 &>`
- 먼저 lab0926 디렉터리를 만들고, 해당 명령이 성공했다면 디렉터리 lab0926으로 이동하며, stderr를 stdout에 묶어서 출력함
*
`mkdir lab0926 || cd lab0926`
- lab0926 디렉터리를 만들고, 실패했을 경우에만 lab0926 디렉터리로 이동함
*
`ls -l b.out 2> err`
- b.out가 있다면 결과를 stdout에 출력하고, 없다면 stderr을 err에 리디렉션하여, 에러 메시지를 저장함
*
`ls -l b.out 2 > err`
- b.out와 2을 ls -l 하고, stdout을 err에 리디렉션한다. stderr는 스크린에 그대로 나옴
*
`A = \`a.out\``
- a.out의 실행 결과 중, stdout에 출력될 내용을 A에 저장함
*
`echo *`
- .으로 시작하는 파일 외의 것들의 이름을 stdout에 출력하는데, .으로 시작하는 파일도 출력하고 싶다면 shopt -s dotglob 명령을 추가로 입력하면 되지만, . 파일과 .. 파일은 출력되지 않음
*
`` A = `ls` ``
-
`A = $(ls)`
명령과 동일하게 작동함
# Command
*
`ssh oss086@ssh.ajousw.kr`
- 접속 명령어
...
...
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