Linux man命令查看命令的使用手册

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_30038111/article/details/84713854

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
:

猜你喜欢

转载自blog.csdn.net/qq_30038111/article/details/84713854