linux 常用命令

NO. Command          Description                                                     Example
1   apt-get                   insatll/remove software package                sudo apt-get install/remvoe vim
2   cat                          concatenate                                                    cat /proc/cpuinfo
3   cd                           change directory                                             cd /lib
4   chown                   change file owner and group                        chown $USER hello.c
5   chmod                   change file mode                                            chmod 777 /tmp/filename
6   echo                      display a line of txt                                          echo "Hello World"
7   fdisk                       parition table  manipulator                            sudo fdisk -l
8   find                        search for files                                                 find /usr -name find
9   grep                       print lines matching a pattern                        grep main hello.c
10  ifconfig                 configure a netword interface                       ifconfig
11  ls                           list directory contents or file attribute           ls -l /tmp
12  lspci                     list all PCI  devices                                          lspci
13  lsusb                    list all USB devices                                         lsusb
14  lsb_release        print distrbution-specific information            lsb_release -d
15  mkdir                   make directories                                               mkdir sysinfo
16  mount                  mount a file system                                           sudo mount /dev/sdb1 /mnt
17  mv                        mv(rename) files                                                mv -v ~/.viminfo  /tmp
18  ping                                                                                                   ping 192.168.0.2
19  rm                         remove files or directories                               rm ~/.viminfo
20  tar                         archiving utility, similiar to WinRAR              tar cjvf sysinfo.tar.bz2 sysinfo
                                                                                                                  tar xjvf  sysinfo.tar.bz2
                                                                                                                  tar czvf  sysinfo.tar.jz  sysinfo
                                                                                                                  tar xzvf  sysinfo.tar.jz
21  uname         print system information                                           uname -a
22  which         locate a command                                                      which fdisk
23  wget          networkd  download                                                    wget http://192.168.0.2/index.html
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章