16.
What command with all options and/or parameter will send the signal USR1 to any executing
process of program apache2?
answer : killall -s SIGUSR1 apache2
우선 apache 에서 사용하는 시그널의 종류
TERM : 당장 중단. 자식프로세스를 모두 중단후 부모프로세스 중단.
USR1 : 점잖은 재시작. 부모프로세스는 자식프로세스에게 현재 요청을 처리한후 종료하라고 신호를 보낸다.
부모 프로세스는 설정파일을 다시 읽고 로그파일을 다시 연다. 자식이 죽을때마다 부모는 새로운 설정
세대에 기초한 자식프로세스를 실행하여 요청을 처리한다.
HUP : 당장 재시작. 자식프로세스는 모두 죽이지만 부모 프로세스는 죽지 않는다. 부모는 설정파일을 다시 읽고
로그파일을 다시 연다.
참조 : http://httpd.apache.org/docs/2.0/ko/stopping.html
결국 모든 옵션에서 signal USR1을 사용하는 옵션(-s)를 묻는 문제.
17.
You want to the command foo to take its input from the file goobar and send its output to the
program bar. Which of the following command lines will do this?
answer : foo < foobar | bar
정규식 표현에 대한 문제 foo 가 foobar 를 입력으로 받고 (foo < foobar) 결과를 bar에 보낸다.( A | bar)
18.
The command used to determine a file's type is
answer : file
파일의 type을 확인 할 수 있는 명령어.
[root@localhost ~]# file *
aaa.txt: ASCII text
aab.txt: ASCII text
aac.txt: ASCII text, with no line terminators
anaconda-ks.cfg: ASCII English text
install.log: ASCII text
install.log.syslog: ASCII text
test: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux 2.6.9, not stripped
test.c: ASCII C program text
test.o: ELF 32-bit LSB relocatable, Intel 80386, version 1 (SYSV), not stripped
대충 이런식이다.
19.
You are compiling some software from source. After running ./configure with the appropriate
arguments and no errors. what is the next command to run?
answer : make
source 설치시 ./configure 다음에 사용하는 명령어를 묻는 문제
가끔 아닐때도 있었던것 같은데..
20.
You are experimenting with a binary in /tmp/foo.d that expects its configuration file at /etc/foo.conf.
You don't want to save it there, but use a symbolic link to /tmp/foo.d/foo.conf instead. Which
command would accomplish that?
answer : ln -s /tmp/foo.d/foo.conf /etc/foo.conf
심볼릭링크 하는 명령어 양식을 묻는 문제
ln -s OriginalFile LinkFile
21.
What program would tou use to increase or decrease the priority of a command before it is
executed?
answer : nice
프로그램의 priority를 변경시키는 방법을 묻는 문제(단서는 실행되기전. 강제로 바꾸는 방식도 존재한다. renice)
참조 (http://mulder3062.springnote.com/pages/1081740.xhtml)
22.
Where does lilo store its boot inhormation?
answer : Master Boor Record
lilo부트로더에서 boot정보가 들어있는 위치. 외우기
참고 GRUB의 경우 /boot/grub에 설정파일등이 위치해있다.
23.
You want to preview where the package file, apache-xml.i386.rpm , will install its files before
installing it. What command do you issue?
answer : rpm -qpl apache-xml.i386.rpm
1.RPM이란?
What command with all options and/or parameter will send the signal USR1 to any executing
process of program apache2?
answer : killall -s SIGUSR1 apache2
우선 apache 에서 사용하는 시그널의 종류
TERM : 당장 중단. 자식프로세스를 모두 중단후 부모프로세스 중단.
USR1 : 점잖은 재시작. 부모프로세스는 자식프로세스에게 현재 요청을 처리한후 종료하라고 신호를 보낸다.
부모 프로세스는 설정파일을 다시 읽고 로그파일을 다시 연다. 자식이 죽을때마다 부모는 새로운 설정
세대에 기초한 자식프로세스를 실행하여 요청을 처리한다.
HUP : 당장 재시작. 자식프로세스는 모두 죽이지만 부모 프로세스는 죽지 않는다. 부모는 설정파일을 다시 읽고
로그파일을 다시 연다.
참조 : http://httpd.apache.org/docs/2.0/ko/stopping.html
결국 모든 옵션에서 signal USR1을 사용하는 옵션(-s)를 묻는 문제.
17.
You want to the command foo to take its input from the file goobar and send its output to the
program bar. Which of the following command lines will do this?
answer : foo < foobar | bar
정규식 표현에 대한 문제 foo 가 foobar 를 입력으로 받고 (foo < foobar) 결과를 bar에 보낸다.( A | bar)
18.
The command used to determine a file's type is
answer : file
파일의 type을 확인 할 수 있는 명령어.
[root@localhost ~]# file *
aaa.txt: ASCII text
aab.txt: ASCII text
aac.txt: ASCII text, with no line terminators
anaconda-ks.cfg: ASCII English text
install.log: ASCII text
install.log.syslog: ASCII text
test: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux 2.6.9, not stripped
test.c: ASCII C program text
test.o: ELF 32-bit LSB relocatable, Intel 80386, version 1 (SYSV), not stripped
대충 이런식이다.
19.
You are compiling some software from source. After running ./configure with the appropriate
arguments and no errors. what is the next command to run?
answer : make
source 설치시 ./configure 다음에 사용하는 명령어를 묻는 문제
가끔 아닐때도 있었던것 같은데..
20.
You are experimenting with a binary in /tmp/foo.d that expects its configuration file at /etc/foo.conf.
You don't want to save it there, but use a symbolic link to /tmp/foo.d/foo.conf instead. Which
command would accomplish that?
answer : ln -s /tmp/foo.d/foo.conf /etc/foo.conf
심볼릭링크 하는 명령어 양식을 묻는 문제
ln -s OriginalFile LinkFile
21.
What program would tou use to increase or decrease the priority of a command before it is
executed?
answer : nice
프로그램의 priority를 변경시키는 방법을 묻는 문제(단서는 실행되기전. 강제로 바꾸는 방식도 존재한다. renice)
참조 (http://mulder3062.springnote.com/pages/1081740.xhtml)
22.
Where does lilo store its boot inhormation?
answer : Master Boor Record
lilo부트로더에서 boot정보가 들어있는 위치. 외우기
참고 GRUB의 경우 /boot/grub에 설정파일등이 위치해있다.
23.
You want to preview where the package file, apache-xml.i386.rpm , will install its files before
installing it. What command do you issue?
answer : rpm -qpl apache-xml.i386.rpm
1.RPM이란?
- RPM은 많은 옵션과 다양한 패키지를 질의, 설치, 업그레이드 및 삭제 방식을
갖춘 매우 복잡한 유틸리티입니다
갖춘 매우 복잡한 유틸리티입니다
http://fr2.rpmfind.net/linux/RPM/index.html-> rpm 제공싸이트
2. 다섯가지 기본 작업 모드
- 설치 모드
- 제거 모드
- 업그레이드 모드
- 질의 모드
- 검증 모드
3. 설치하기
rpm [옵션] [패키지명]
ex)rpm -ivh tftp.rpm [패키지명은 제가 임의로 정한것입니다]
-옵션설명(i=기본설치,v-설치중 메시지확인, h-진행과정을 해시로 표시)
*질의및 제거의 옵션 설명은 옵션란을 참조하시길
4.질의
rpm -q tftp.rpm
5.제거
rpm -e tftp.rpm
[옵션]
-i :기본적으로 설치할 때 쓴다. 이 옵션을 사용하면
이전 버젼의 같은 패키지에 대한 정보가 존재할 경우 설치하지 않는다.
-U :이전버젼이 설치되어 있으면 업그레이드를 하며,
설치되어 있지 않으면 새롭게 설치한다.
이전버젼이 설치되어 있을 경우에 환경설정파일을 제외하고 모두 새롭게 설치한다. 설치시에 이옵션을 사용하도록 한다.
-F : 현재 설치하는 패키지의 이전 버젼이 설치되어 있는 경우에만 설치하고, 그렇지 않은 경우에는 설치하지 않는다.
-v : 설치중 메시지를 보여준다.
-h : 진행과정을 '#'으로 표시하라는 뜻이다.(--hash)
-e : 패키지를 제거할 때 쓰인다.
-q : 패키지가 설치되어 있는 질의한다. 이 옵션 단독으로 사용하면 패키지 이름과 버젼만 표시된다.
-qa : 현재 설치된 모든 패키지 목록을 찾는데 사용한다. 보통 grep명령과 같이 사용된다.
-qi : 현재 설치된 패키지의 간략한 정보를 출력
-ql : 현재 설치된 패키지의 내용을 보여준다. 어떤 파일이 어디에 설치되어 있는지 확인할 때 쓴다.
-Vf : 현재 설치된 파일의 검증할때 쓴다. 문제가 없으면 '.'으로 표시된다.
-Va : 한 패키지만 검증한다.
--force : 보통 패키지뒤에 붙는 옵션으로 패키지와의 충돌등을 무시하고 무조건 설치하는 옵션이다.(앞에 옵션을 써도 무방함.)
--nodeps : 의존성 문제를 일으켜 설치가 안될경우에 쓰는 옵션이다.
-p : 패키지 지정. ( -qpl 는 해당패키지의 정보를 알아보는 옵션이라고 생각하면 편함)
24.
You are logged in as user tux1, but now you want to switch users to tux2 with tux2's environment.
How would you do this?
answer : su - tux2
su 명령어의 사용법에 대한 질문.
키워드는 environment tux2사용자의 환경까지도 함께 바꾸는 명령어를 물어보는 질문.
su 명령어의 경우 하이픈( - ) 을 사용하면 사용자와 함께 환경변수도 바뀌게 되지만
하이픈을 사용하지 않을 경우에는 사용자는 바뀌지만 환경변수는 바뀌지 않게 된다.
You are logged in as user tux1, but now you want to switch users to tux2 with tux2's environment.
How would you do this?
answer : su - tux2
su 명령어의 사용법에 대한 질문.
키워드는 environment tux2사용자의 환경까지도 함께 바꾸는 명령어를 물어보는 질문.
su 명령어의 경우 하이픈( - ) 을 사용하면 사용자와 함께 환경변수도 바뀌게 되지만
하이픈을 사용하지 않을 경우에는 사용자는 바뀌지만 환경변수는 바뀌지 않게 된다.