shell and DOS

  long long ago 自己便想总结下shell命令以及dos常用的命令,毕竟实际实践中会经常用到,用的好的批处理或者shell脚本会事半功倍,好了,废话不多说,开始。

  shell

  1.     ls
  2. ll
  3. pwd
  4. mkdir  -p
  5. rmdir  -p
  6. rm -rf
  7. head
  8. more /字符串 :代表在这个显示的内容当中,向下搜寻『字符串』;
  9. less /字符串 :向下搜寻『字符串』的功能; ?字符串 :向上搜寻『字符串』的功能; 
  10. tail -f +/-num
  11. cp  -r
  12. mv -b :若需覆盖文件,则覆盖前先行备份。
  13.  chmod
  14. chown
  15. wc
  16. file :辨别文件类型
  17. find
  18. grep :查找文件里符合条件的字符串
  19. diff
  20. cat
  21. tar -c/z vf
  22. source
  23. >
  24. >>
  25. mount
  26. umount
  27. du : 显示目录或文件的大小
  28. df : 显示磁盘信息
  29. unzip
  30. unrar
  31. gunzip
  32. free
  33. who
  34. useradd
  35. userdel
  36. passwd
  37. alias 设置别名 
  38. export 全局变量
  39. reboot
  40. shutdown
  41. ps
  42. pidof
  43. sleep
  44. kil
  45. top
  46. |
  47. ping
  48. netstat
  49. ifconfig
  50. man

猜你喜欢

转载自www.cnblogs.com/aoaoao/p/9633229.html
DOS