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
영일 곽
FOSS-lab
Commits
f391b37d
Commit
f391b37d
authored
2 years ago
by
영일 곽
Browse files
Options
Downloads
Patches
Plain Diff
09-28 Readme.md
parent
28c4945b
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
foss_lab/lab0928/readme.md
+42
-0
42 additions, 0 deletions
foss_lab/lab0928/readme.md
with
42 additions
and
0 deletions
foss_lab/lab0928/readme.md
0 → 100644
+
42
−
0
View file @
f391b37d
글로빙
echo ~ : 홈 디렉터리가 나온다.
echo
*
:
*
: 쉘의 기능으로 현재 디렉터리에
파일을 숨기려면 파일 앞에 . 을 붙여 생성
글로빙 :
shopt -s dotglob : echo를 사용했을 때 .이 붙은 숨겨진 파일을 찾을 수 있다.
shopt -s nullglob : echo했을 때 null이면 null 출력
리눅스 파일시스템은 트리 구조로 루트는 고아 노드라고 한다.
cat hllo.c hello.c hello.c : hello.c의 내용을 3번 stdout에 출력한다.
grep 찾는 문자열 파일 - 파일에 찾는 문자열이 일치하는 구문을 출력한다.
wc : word count의 약자로 stdin을 입력받고 control + d를 하면 줄, 문자열 개수, 총 글자수 출력
cat > file1
100 200 300
400 500 600
→ stdout file1
control z : 벨, control m : new line ,
who | wc : 로그인한 사람, 문자열 개수 , 총 문자수 , who | wc -l : 로그인한 사람만 볼 수 있다.
who | tee who.result :
어떤 명령어 뒤에 & 사용하면 백그라운드
ls -l a.out b.out c.out |& wc :
ls -l b.out 2> err : 없으면 err이라는 파일에 집어넣는다.
free : 시스템의 메모리 공간을 보여준다.
split -l 라인 수 파일 명 : 파일의 내용을 라인 수 별로 잘라준다.
uniq : 어떤 라인이 이전에 입력한 적이 있으면 대답(출력)하지 않는다. 혹은 파일에 중복된 내용을 삭제해준다.
touch file - 수정할 데이터를 바꾸거나 새로운 빈 파일 생성
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