특정문자(열)과 관련된 두개이상의 명령어 동시에 찾기
작성자 정보
- 관리자 작성
- 작성일
컨텐츠 정보
- 2,220 조회
- 0 추천
- 목록
본문
특정문자(열)과 관련된 두개이상의 명령어 동시에 찾기
apropos명령어는 한개의 키워드 뿐 아니라 여러 개의 키워드를 동시에 입력할 수 있습니다.
동시에 여러 개의 키워드를 같이 입력할 경우에 입력된 모든 키워드에 모두 해당하는 명령어를 찾아주는 것이 아니라 모두 개별적으로 실행되며 입력된 키워드를 하나씩 차례대로 관련된 명령어를 찾아줍니다.
아래의 예를 보시기 바랍니다.
[root@su250 ~]# apropos httpd sendmail 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 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 ~]# |
즉, 위의 예에서 apropos를 이용하여 앞에서 이미 개별적으로 검색해 보았던 httpd와 sendmail문자열에 대한 정보를 출력한 예로서 각각의 문자열을 두개 이상 지정하여 사용할 수 있다는 것을 보여주고 있습니다.
관련자료
-
이전
-
다음