자격증/리눅스마스터
리눅스마스터 1급 2차 - 2102회 기출문제 풀이 (5/16)
로이제로
2023. 11. 15. 22:00
반응형
5. 다음은 모듈 관련 작업을 진행하는 과정이다. 조건에 맞게 ( 괄호 ) 안에 알맞은 내용을 적으시오.
가. 모듈의 alias, alias symbol, blacklist 비롯하여 다양한 정보를 출력한다. # ① ② 나. iptable_filter 모듈을 제거하면서 관련 모듈도 같이 제거한다. # ① ③ iptable_filter 다. e1000.ko 모듈 관련 정보를 출력한다. # ④ e1000.ko.xz |
◼︎ 조건
- ①번과 ④번은 명령어만 기입한다.
- ②번과 ③번은 명령어의 옵션만 기입하고, 명령어가 틀리면 채점하지 않는다.
더보기

modprobe --help 결과

modinfo --help 결과

modinfo cpuid 결과

modinfo -F filename cpuid 결과
번호 | 정답 |
① | modprobe |
② | -c |
③ | -r |
④ | modinfo |
modprobe (커널 모듈 관리)
modprobe는 커널 모듈을 동적으로 로드하거나 언로드 하는 데 사용되는 명령어입니다. 커널 모듈은 커널에 추가 기능을 제공하거나 하드웨어 장치를 지원하기 위해 사용되는 소프트웨어 컴포넌트입니다.

주요 옵션 | 내용 | |
-a | --all | 모든 가능한 모듈을 로드합니다. |
-r | --remove | 모듈을 언로드(제거)합니다. |
-b | --use-blacklist | 블랙리스트를 사용하여 모듈을 로드하지 않습니다. |
-c | --showconfig | 해당 모듈 관련 설정정보(alias, alias symbol, blacklist 등)를 보여줍니다. |
-n | --show | 모듈을 로드하지 않고 설정 정보만 출력합니다. |
-v | --verbose | 상세 정보를 출력합니다. |
modinfo
커널 모듈에 대한 정보를 출력하는 명령어입니다. modinfo를 사용하여 트정 모듈의 정보를 확인할 수 있습니다.

주요 옵션 | 내용 | |
-0 | --null | 출력을 NULL(\0)로 구분된 형식으로 변경합니다. |
-F | --field=FIELD | 특정 필드의 값을 출력합니다. |
▶ cpuid의 모듈 정보 조회


반응형