출처 : unix.co.kr 백승찬님 강좌
안녕하세요. 백승찬입니다.
Control Character
1. Control Character 종류
2. Control Character 실습
1. Control Character 종류
-----------------------------------
썬 솔라리스에서 다음과 같은 제어문자(Control Charaters)들을 사용할수 있다.
[표] Ctrol Character
---------------------------------------------------------------------------------------------------------
Ctrl + C Terminates the command currently running.
Ctrl + D Indicates end-of-file or exit.
Ctrl + U Erases all characters on the current command line.
Ctrl + W Erase the last word on the command line.
Ctrl + S Stops output to the screen
Ctrl + Q Restarts output to the screen after you have pressed Control-S
---------------------------------------------------------------------------------------------------------
2. Control Character 실습
-----------------------------------
[실습1] <Ctrl + C>
현재 동작 중인 프로그램에 인터럽트 시그럴(signal)을 보내서 종료 시키는 기능을 갖는다.
# man ls
<Ctrl + C>
# find / -name core -type f
<Ctrl + C>
[실습2] <Ctrl + D>
<Ctrl + D> 키는 (a) 파일의 끝을 알려 주는 기능과 (b) 현재 프로그래을 종료 하는 역할을
갖는다.
(a). 파일의 끝의 의미를 갖는다.
# mkdir /test
# cd /test
# cat > file1
Hello, Solaris
<Ctrl + D>
# cat file1
(b). 현재 쉘을 종료하는 의미를 갖는다.
# telnet 172.16.8.254
Trying 172.16.8.254...
Connected to 172.16.8.254.
Escape character is '^]'.
SunOS 5.9
login: root <----- ID : root
Password: <----- 사용자의 암호 입력
Last login: Tue Mar 11 11:04:50 from solaris215
Sun Microsystems Inc. SunOS 5.9 Generic January 2003
# hostname
# <Ctrl + D>
[실습3] <Ctrl + U>
명령어 라인 전체를 지워 주는 역할을 갖는다.
# find / -name core -type f <Ctrl + U>
[실습4] <Ctrl + W>
명령어 라인상에 마지막 단어를 지워주는 역할을 갖는다.
# find / -name core -type f <Ctrl + W> <Ctrl + W> <Ctrl + W>
[실습5] <Ctrl + S>, <Ctrl + Q>
화면을 stop 시키거나 stop 화면에서 빠져 나간다. (Stop, Quit)
# du /
<Ctrl + S>
<Ctrl + Q>
<Ctrl + S>
<Ctrl + C>
'5. Study > __나. UNIX' 카테고리의 다른 글
Solaris 시스템관리 (0) | 2008.10.01 |
---|---|
Error 문제 (0) | 2008.08.21 |
.bash_history 파일에 흔적을 남기지 않는 방법 (0) | 2008.07.17 |
[Solaris_Basic] 사용자 계정 생성 방법 (0) | 2008.06.25 |
[2008년 6월 16일 - solaris] 디스크 Dump & Restore (0) | 2008.06.16 |
댓글