Shell - commands

ZhangZhihui's Blog / 2023-08-06 / 原文

## Check IP address
ip address
ip add
ip a

 

zzh@ZZHPC:~$ df -h
Filesystem      Size  Used Avail Use% Mounted on
tmpfs           1.6G  3.7M  1.6G   1% /run
/dev/nvme0n1p3   58G   31G   25G  55% /
tmpfs           7.8G  6.5M  7.8G   1% /dev/shm
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
/dev/nvme0n1p1  112M  6.1M  106M   6% /boot/efi
/dev/nvme0n1p4  395G  138G  238G  37% /zdata
tmpfs           1.6G  140K  1.6G   1% /run/user/1000
zzh@ZZHPC:~$ df -h -i
Filesystem     Inodes IUsed IFree IUse% Mounted on
tmpfs            2.0M  1.4K  2.0M    1% /run
/dev/nvme0n1p3   3.7M  364K  3.4M   10% /
tmpfs            2.0M    20  2.0M    1% /dev/shm
tmpfs            2.0M     4  2.0M    1% /run/lock
/dev/nvme0n1p1      0     0     0     - /boot/efi
/dev/nvme0n1p4    26M   12K   26M    1% /zdata
tmpfs            398K   173  398K    1% /run/user/1000

 

zzh@ZZHPC:~$ type df
df is hashed (/usr/bin/df)
zzh@ZZHPC:~$ type rm
rm is /usr/bin/rm
zzh@ZZHPC:~$ type ip
ip is hashed (/usr/sbin/ip)
zzh@ZZHPC:~$ type ls
ls is aliased to `ls --color=auto'
zzh@ZZHPC:~$ type cd
cd is a shell builtin
zzh@ZZHPC:~$ type umask
umask is a shell builtin

 

zzh@ZZHPC:~$ man -k ifconfig
ifcfg (8)            - simplistic script which replaces ifconfig IP management
ifconfig (8)         - configure a network interface
zzh@ZZHPC:~$ man -k replace
argz_replace (3)     - functions to handle an argz list
git-replace (1)      - Create, list, delete refs to replace objects
ifcfg (8)            - simplistic script which replaces ifconfig IP management
rtpr (8)             - replace backslashes with newlines.
run-with-aspell (1)  - script to help use GNU Aspell as an ispell replacement
ssh-argv0 (1)        - replaces the old ssh command-name as hostname handling
zzh@ZZHPC:~$ man -k internet
ftp (1)              - Internet file transfer program
inet (3)             - Internet address manipulation routines
inet_addr (3)        - Internet address manipulation routines
inet_aton (3)        - Internet address manipulation routines
inet_lnaof (3)       - Internet address manipulation routines
inet_makeaddr (3)    - Internet address manipulation routines
inet_net_ntop (3)    - Internet network number conversion
inet_net_pton (3)    - Internet network number conversion
inet_netof (3)       - Internet address manipulation routines
inet_network (3)     - Internet address manipulation routines
inet_ntoa (3)        - Internet address manipulation routines
ippfind (1)          - find internet printing protocol printers
ipptool (1)          - perform internet printing protocol requests
Mail::Internet (3pm) - manipulate email messages
nslookup (1)         - query Internet name servers interactively
services (5)         - Internet network services list
tnftp (1)            - Internet file transfer program

'man -k' search manual pages, apropos - search the manual page names and descriptions

zzh@ZZHPC:~$ apropos ifconfig
ifcfg (8)            - simplistic script which replaces ifconfig IP management
ifconfig (8)         - configure a network interface
zzh@ZZHPC:~$ apropos replace
argz_replace (3)     - functions to handle an argz list
git-replace (1)      - Create, list, delete refs to replace objects
ifcfg (8)            - simplistic script which replaces ifconfig IP management
rtpr (8)             - replace backslashes with newlines.
run-with-aspell (1)  - script to help use GNU Aspell as an ispell replacement
ssh-argv0 (1)        - replaces the old ssh command-name as hostname handling
zzh@ZZHPC:~$ apropos intrernet
intrernet: nothing appropriate.