Linux commands

linux most commands is located in /bin or /usr/bin, usage:--help/-h .

v{version,verbose},a{all} -h(help,human readable)

1.File management:

   ls(list :List information about the FILEs (the current directory by default):-a (show hidden file) -l(list detail)  -AS(ascend),-R(recursive))

    cp(copy ELF 64-bit LSB executable)  /bin

   mv(move or rename)

   file(Determine type of FILEs, -v,)

   pwd(present work directory)

  cd(change directory:~ user directory, -- [$OLDPWD])

  whereis (Locate the binary, source, and manual-page files for a command,-b binary only, -s sources only,-f)

2. File view and edit :
  cat filename/ head -n filename /tail -n filename

  echo(print message or enviroment  variable value )

  rm -rf (remove file or directory)

 rmdir (remove empty directory)

mkdir(make directory)

3.System command

startx

uname  -a、-v (print certain system information.

4. Disk management:

df -h(Show information about the file system on which each FILE resides,or all file systems by default human-readable)

du -h(Summarize disk usage of the set of FILEs, recursively for directories human-readable)

lsblk(list block)

5.other:

history(list input command list :-c clear)

hash  -r(remove records)

lsmod(list module mount status)

6. text search :

grep (ELF 64-bit LSB shared object)

find {-name ,-iname(ignore lower upper), -size,-type 

7.Device Management:

lspci(list peri commnent interface).

8. zip:

zipinfo(zip information):

9.network command:

netstat -ano |grep portname,-i(network adapter list)

ping -c(count) 4 -i(interval) 3 www.linuxcool.com

ifconfig(down-close,up-start)

10. install command

1) apt-get

  update

 install  (httpd,nginx)

remove(vsftpd)  ,–purge remove packagename

 

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值