1. 程式人生 > >Linux man命令檢視命令的使用手冊

Linux man命令檢視命令的使用手冊

manmanual的縮寫,例如:man tar,檢視tar命令的幫助手冊,如下所示:
輸入q退出

TAR(1)                           User Commands                          TAR(1)

NAME
       tar - manual page for tar 1.23

SYNOPSIS
       tar [OPTION...] [FILE]...

DESCRIPTION
       GNU ‘tar’ saves many files together into a single tape or disk archive, and can restore individual files from the archive.

       Note  that  this manual page contains just very brief description (or more like a list of possible functionality) originally generated by the help2man utility.  The full documentation for tar is maintained
       as a Texinfo manual.  If the info and tar programs are properly installed at your site, the command ‘info tar’ should give you access to the complete manual.

EXAMPLES
       tar -cf archive.tar foo bar
              # Create archive.tar from files foo and bar.

       tar -tvf archive.tar
              # List all files in archive.tar verbosely.

       tar -xf archive.tar
              # Extract all files from archive.tar.

              Main operation mode:

       -A, --catenate, --concatenate
              append tar files to an archive

       -c, --create
              create a new archive

       -d, --diff, --compare
              find differences between archive and file system

       --delete
              delete from the archive (not on mag tapes!)

       -r, --append
              append files to the end of an archive

       -t, --list
              list the contents of an archive

       --test-label
              test the archive volume label and exit

       -u, --update
              only append files newer than copy in archive
: