Linux基础篇随手笔记

来源:互联网 发布:段子精选分享软件 编辑:程序博客网 时间:2024/06/05 20:46
ls  -t 时间降序-r 反序
一、which、whereis、locate、find
  • which 根据环境变量查找可执行文件 eg: which pwd
  • whereis -b 查找2进制文件 -s 查找源码文件 根据文件数据库查找速度快,但是实时性不好
  • locate 根据文件数据库查找文件
  • find 路径 操作 行为 find /home -name "nostalie";find /home -mtime -3;find /home -regex "\\d+"
二、shell脚本
三、
0 0
原创粉丝点击