티스토리 뷰
$ ps
PID TTY TIME COMMAND
12608 pts/tg 0:00 telnetd
13471 pts/tg 0:00 ps
12609 pts/tg 0:00 sh <--- shell
Alias : command line interpretor [ alias dir=ls, alias rm="rm -i", alias cp="cp -i", unalias dir ]
{
$ dir
README.exrc color3 funfile mod5.dir peach
abcdefXlmnop color4 funfile.123 myfile prog1
}
1 getty 1) display /etc/issue 2) login prompt "login :"
2 login 1) id / password check
{
$ more /etc/passwd
....
user10:It3J7kO99AKcc:310:301:student:/home/user10:/usr/bin/sh
user11:JHzzLKLoXDPUs:311:301:student:/home/user11:/usr/bin/sh
....
username:passwd:UID:GID:comment :HOME directory :shell
}
2) 홈디렉토리 위치
3) 쉘프로그램 실행
3 /usr/bin/sh 1)read /etc/profile (managed by root)
2) $HOME/.profile (managed by owner, $home/.bash_prfile in Linux) // export 사용시 자식쉘 생성시 참조
3) $HOME/.shrc or /.kshrc , /.bashrc (managed by owner) // 자식쉘 생성 시 참조
[ 1) -> 2) -> 3) 순서로 참조, 겹친 변수 설정들은 가장 최신으로 참조한 선언에 따른다.]
{
.shrc를 읽는 조건
$ vi .profile
add export ENV=$HOME/.shrc
}
where date : searches a list of directories for a command
which date : 어디에 있는 파일(명령어)을 사용하는지 보여줌
'IoT 과정' 카테고리의 다른 글
HPUX - File Name Generation (0) | 2017.06.21 |
---|---|
HPUX - Shell Advanced Features (0) | 2017.06.21 |
HPUX - vi (0) | 2017.06.20 |
HPUX - File Permissions and Access (0) | 2017.06.20 |
HPUX - Navigating the File System, Managing Files (0) | 2017.06.19 |
- Total
- Today
- Yesterday
- 백준
- flutter
- Discrete Mathematics
- Simulation
- 자바스크립트
- grafana cloud
- 최단경로 알고리즘
- 아레나시뮬레이션
- 시뮬레이션
- 가상 면접 사례로 배우는 대규모 시스템 설계 기초
- 명제논리
- 항해99
- Propositional and Predicate Logic
- rosen
- 데이터 중심 애플리케이션 설계
- beginning javascript
- arena simulation
- 로젠
- Arena
- 이산수학
- 엄청난 인내심과 시뮬레이션을 위한 아레나 툴
- javascript
- Grafana
- 자바스크립트 예제
- 아레나
- 그라파나
- 이산 수학
- 대규모 시스템 설계 기초
- 아레나 시뮬레이션
- paul wilton
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |