學會查詢幫助文件--man

這個man 通常是用來看一個命令的幫助文檔的。格式爲 ” man 命令 ” 例如輸入命令:

man ls

則會顯示如下結果:

LS(1)                            User Commands                           LS(1)

NAME
    ls - list directory contents

SYNOPSIS
    ls [OPTION]... [FILE]...

DESCRIPTION
    List  information  about  the FILEs (the current directory by default).
    Sort entries alphabetically if none of -cftuvSUX nor --sort.

    Mandatory arguments to long options are  mandatory  for  short  options
    too.

    -a, --all
           do not ignore entries starting with .

    -A, --almost-all
           do not list implied . and ..

    --author
           with -l, print the author of each file

這樣可以查看 “ls” 這個命令的幫助文檔,進入後按 ‘q’ 鍵退出。


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章