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
28c4945b
Commit
28c4945b
authored
2 years ago
by
영일 곽
Browse files
Options
Downloads
Patches
Plain Diff
09-26 Readme.md
parent
314fdf5e
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/lab0926/readme.md
+43
-0
43 additions, 0 deletions
foss_lab/lab0926/readme.md
with
43 additions
and
0 deletions
foss_lab/lab0926/readme.md
0 → 100644
+
43
−
0
View file @
28c4945b
whereis ls - ls명령이 어디에 있고 어떤것이 있는지
cd명령어는 bash에 들어있는 빌트인 명령어
which echo -
passwd - 유저 어카운트의 비밀번호를 변경할 때 사용
슈퍼유저는 어떤 유저의 비밀번호도 바꿀 수 있다.
chmod 를 사용하여 모든 계정 비밀번호를 바꿔놓는다.
cut -
echo $? - 에러없이 실행 완료, 에러 발생시 에러번호가 나타난다.
!mk - 최근 명령중에 mk로 시작되는 명령어를 다시 한다.
세미콜론으로 특정 명령어를 순서대로 작동 가능하다. ex) mkdir lab0926; cd lab0926
c언어를 보고 정상적으로 실행되면 echo true 실패하면 echo false가 나오는 쉘스크립트를 짜시오.
#! /bin/sh
if [ ./a.out ]; then echo true else echo false; fi;
mkdir가 성공했을 때만 다음 명령어를 실행하세요.
ex) mkdir lab0926 && cd lab0926
&> - stderr를 stdout으로 출력?
앞의 명령어가 실패하면 뒤의 명령어를 실행하세요.
ex) mkdir lab0926 || cd lab0926
ls -l 명령어 뒤에 두번째 자리의 숫자는 하드링크의 개수, 소프트 링크는 증가하지 않는다.
cp 규칙을
ps , bash, ps 명령어를 입력했을 때 결과를 입력하시오.
bash lsli 했을 때 일어나는 과정
bash에서 bash를 실행 - control + d or 실행중인 스크립트가 끝날 때
괄호는 새로운 쉘을 연다.
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