Linux 常用命令

文章目录

  • tree命令
  • 使用*uname*获取UNIX版本

tree命令

[test problems]$ tree . --charset ASCII
.
`-- guangda
    |-- core-loadserver-1645979-1686441112
    `-- loadserver

1 directory, 2 files
[test problems]$

使用uname获取UNIX版本

[root@localhost ~]# uname -a
Linux localhost.localdomain 4.18.0-348.el8.ppc64le #1 SMP Tue Oct 19 15:33:39 UTC 2021 ppc64le ppc64le ppc64le GNU/Linux
[root@localhost ~]# uname -s
Linux
[root@localhost ~]# uname -n
localhost.localdomain
[root@localhost ~]# uname -r
4.18.0-348.el8.ppc64le
[root@localhost ~]# uname -v
#1 SMP Tue Oct 19 15:33:39 UTC 2021
[root@localhost ~]# uname -m
ppc64le
[root@localhost ~]# uname -p
ppc64le
[root@localhost ~]# uname -i
ppc64le
[root@localhost ~]# uname -o
GNU/Linux
[root@localhost ~]# uname --help
Usage: uname [OPTION]...
Print certain system information.  With no OPTION, same as -s.

  -a, --all                print all information, in the following order,
                             except omit -p and -i if unknown:
  -s, --kernel-name        print the kernel name
  -n, --nodename           print the network node hostname
  -r, --kernel-release     print the kernel release
  -v, --kernel-version     print the kernel version
  -m, --machine            print the machine hardware name
  -p, --processor          print the processor type (non-portable)
  -i, --hardware-platform  print the hardware platform (non-portable)
  -o, --operating-system   print the operating system
      --help     display this help and exit
      --version  output version information and exit

GNU coreutils online help: <https://www.gnu.org/software/coreutils/>
Report uname translation bugs to <https://translationproject.org/team/>
Full documentation at: <https://www.gnu.org/software/coreutils/uname>
or available locally via: info '(coreutils) uname invocation'

你可能感兴趣的:(shell,运维)