Linux 命令学习的第一步帮助查看

Linux 命令帮助查看

首先学会帮助命令的使用

最常用的帮助命令:

  1. man cmd(后面代指命令):
    如:man ls,
    	LS(1)                     BSD General Commands Manual                    LS(1)
    
    NAME
         ls -- list directory contents
    
    SYNOPSIS
         ls [-ABCFGHLOPRSTUW@abcdefghiklmnopqrstuwx1%] [file ...]
    
    DESCRIPTION
         For each operand that names a file of a type other than directory, ls displays its name as well as any
         requested, associated information.  For each operand that names a file of type directory, ls displays the
         names of files contained within that directory, as well as any requested, associated information.
    
         If no operands are given, the contents of the current directory are displayed.  If more than one operand is
         given, non-directory operands are displayed first; directory and non-directory operands are sorted separately
         and in lexicographical order.
    
         The following options are available:
    
         -@      Display extended attribute keys and sizes in long (-l) output.
    
         -1      (The numeric digit ``one''.)  Force output to be one entry per line.  This is the default when output
                 is not to a terminal.
    
         -A      List all entries except for . and ...  Always set for the super-user.
    
         -a      Include directory entries whose names begin with a dot (.).
    
         -B      Force printing of non-printable characters (as defined by ctype(3) and current locale settings) in
                 file names as \xxx, where xxx is the numeric value of the character in octal.
    
  2. cmd [ --help -h ] (需要视情况而定,不一定有)
    ➜  keys curl --help
     Usage: curl [options...] <url>
          --abstract-unix-socket <path> Connect via abstract Unix domain socket
          --alt-svc <file name> Enable alt-svc with this cache file
          --anyauth       Pick any authentication method
      -a, --append        Append to target file when uploading
          --basic         Use HTTP Basic Authentication
          --cacert <file> CA certificate to verify peer against
          --capath <dir>  CA directory to verify peer against
      -E, --cert <certificate[:password]> Client certificate file and password
          --cert-status   Verify the status of the server certificate
          --cert-type <type> Certificate file type (DER/PEM/ENG)
          --ciphers <list of ciphers> SSL ciphers to use
          --compressed    Request compressed response
          --compressed-ssh Enable SSH compression
      -K, --config <file> Read config from a file
          --connect-timeout <seconds> Maximum time allowed for connection
          --connect-to <HOST1:PORT1:HOST2:PORT2> Connect to host
      -C, --continue-at <offset> Resumed transfer offset
      -b, --cookie <data|filename> Send cookies from string/file
      -c, --cookie-jar <filename> Write cookies to <filename> after operation
          --create-dirs   Create necessary local directory hierarchy
          --crlf          Convert LF to CRLF in upload
          --crlfile <file> Get a CRL list in PEM format from the given file
    
    
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值