ifconfig

  • 查看本机ip地址

    1. [root@hadoop1 桌面]# ifconfig
    2. eth0 Link encap:Ethernet HWaddr 00:0C:29:9C:8A:27
    3. inet addr:192.168.58.128 Bcast:192.168.58.255 Mask:255.255.255.0

    关机重启

  • shutdown

    • shutdown -h now:立即关机
    • shutdown -h 1:1分钟后关机
    • shutdown -r now:立即重启
  • halt:关机
  • reboot:重启
  • sync:将内存数据同步到磁盘,关机或者重启前都应该执行一下这个命令

    man

  • man 要查询的指令

    [root@hadoop1 /]# 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
    

    help

  • help 要查询的指令

    [root@hadoop1 /]# help cd
    cd: cd [-L|-P] [dir]
      Change the shell working directory.
    
      Change the current directory to DIR.  The default DIR is the value of the
      HOME shell variable.
    
      The variable CDPATH defines the search path for the directory containing
      DIR.  Alternative directory names in CDPATH are separated by a colon (:).
      A null directory name is the same as the current directory.  If DIR begins
      with a slash (/), then CDPATH is not used.
    
      If the directory is not found, and the shell option `cdable_vars' is set,
      the word is assumed to be  a variable name.  If that variable has a value,
      its value is used for DIR.
    
      Options:
          -L    force symbolic links to be followed
          -P    use the physical directory structure without following symbolic
          links
    
      The default is to follow symbolic links, as if `-L' were specified.
    
      Exit Status:
      Returns 0 if the directory is changed; non-zero otherwise.
    

    cal

  • 日历

    [root@hadoop1 zsf]# cal
        一月 2021     
    日 一 二 三 四 五 六
                  1  2
    3  4  5  6  7  8  9
    10 11 12 13 14 15 16
    17 18 19 20 21 22 23
    24 25 26 27 28 29 30
    31