본문 바로가기
Linux

linux command - apropos

by 도경다경 2023. 5. 12.
반응형

그렇게 친숙한 명령어는 아니다.
"적절한"이라는 뜻의 단어인데 특정 명령어가 기억나지 않을 때 
키워드가 되는 단어를 입력하면 해당 단어(키워드)가 들어간 명령어를 찾아주는 기능으로 이해하면 된다.

그런데 보통은 해당 명령어를 잘 쓰지 않고
man -k '키워드' 명령어를 더 자주 쓴다. 결과는 같다.

man, apropos 둘 모두 mandb 프로그램을 기반으로 한다.

실제 사용 시에는 

# apropos grep
# man -k grep

이런식으로 사용한다.

 

 

NAME 

       apropos - search the manual page names and descriptions

 

DESCRIPTION

       Each manual page has a short description available within it.
       apropos searches the descriptions for instances of keyword.

       keyword is usually a regular expression, as if (-r) was used, or
       may contain wildcards (-w), or match the exact keyword (-e).
       Using these options, it may be necessary to quote the keyword or
       escape (\) the special characters to stop the shell from
       interpreting them.

       The standard matching rules allow matches to be made against the
       page name and word boundaries in the description.

       The database searched by apropos is updated by the mandb program.
       Depending on your installation, this may be run by a periodic
       cron job, or may need to be run manually after new manual pages
       have been installed.
반응형

'Linux' 카테고리의 다른 글

linux command - basename  (0) 2023.05.17
linux command - attr  (0) 2023.05.13
linux command - alias  (0) 2023.05.12
linux command - ac  (0) 2023.05.12
systemd 서비스 타입 Simple or Oneshot  (0) 2023.04.26

댓글