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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值