특정 문자 또는 문자열과 관련된 명령어들 찾기
작성자 정보
- 관리자 작성
- 작성일
컨텐츠 정보
- 2,241 조회
- 0 추천
- 목록
본문
특정 문자 또는 문자열과 관련된 명령어들 찾기
지정된 문자열에 해당하는 명령어와 Whatis DataBase의 검색결과를 출력해주는 명령어로서 검색된 명령어들과 alias들의 간단한 설명을 함께 출력합니다.
쉽게 말씀 드려서 특정 문자 또는 문자열과 관련된 명령어들을 찾을 수 있는 유용한 도구입니다.
즉, 특정 문자와 관련된 명령어를 찾고자 할 때에 유용하게 사용될 수 있는 명령어입니다.
또한 특정 문자와 관련된 명령어가 어떤 용도의 명령어인가를 함께 출력해 줍니다.
apropos와 유사한 명령어로는 whatis와 man명령어가 있으므로 이 책의 각 명령어편을 참조하시기 바랍니다.
사용형식 : apropos 키워드 ...
* 입력하는 키워드의 개수에는 특별한 제한은 없습니다.
* 따라서 동시에 찾고자 하는 키워드를 함께 입력해주면 한번에 찾아줍니다.
먼저, apropos를 이용하여 “apache”라는 문자열과 관련된 명령어들을 찾아보도록 하겠습니다.
즉, "httpd"관련된 명령어를 찾기 위하여 "apropos httpd"라고 하면 됩니다.
아래의 결과를 보시기 바랍니다.
httpd와 관련된 Whatis DataBase의 내용과 명령어들이 Apache2, CGI, log, httpd, httpd_selinux, ncsa_auth, Squid등이 있다는 것을 알 수 있습니다.
[root@su250 ~]# apropos httpd Apache2::Resource [] (3) - Limit resources used by httpd children CGI::Carp [] (3) - CGI routines for writing to the HTTPD(or other)error log httpd [] (8) - Apache Hypertext Transfer Protocol Server httpd_selinux [] (8) - Security Enhanced Linux Policy for the httpd daemon ncsa_auth [] (8) - NCSA httpd-style password file authentication helper for Squid [root@su250 ~]# |
이번에는 sendmail과 관련된 검색결과를 찾은 예입니다.
결과를 보시면 sendmail관 관련된 명령어가 aliases, makemap, sendmail, smrsh등이 있음을 알 수 있습니다.
그리고 검색된 명령어들의 간단한 설명을 볼 수 있습니다.
[root@su250 ~]# apropos sendmail aliases [] (5) - aliases file for sendmail makemap [] (8) - create database maps for sendmail sendmail [] (8) - an electronic mail transport agent smrsh [] (8) - restricted shell for sendmail [root@su250 ~]# |
관련자료
-
이전
-
다음