Linux Commands for Beginners--Finding Files
来源:互联网 发布:海马玩mac版 编辑:程序博客网 时间:2024/06/06 02:33
In this part, I demonstrate how to find files.
1.COMMAND:
find
DESCRIPTION:
search for files in a directory hierarchy
SYNOPSIS:
find <path> <fileName>
OPTION:
-mtime n File's data was last modified n*24 hours ago.
-name Base of file name
Example:
If you remember the file's name,you can specify a path to find it out.
root@piniheaven:~# find /root/ -name find.txt
/root/tutorial/find.txt
Even you can't remember what the exactly file name is,you still can find it out.
root@piniheaven:~# find /root/ -name fin*
/root/tutorial/find.txt
Find out files that was last modified 24 hours ago.
root@piniheaven:~# find /root/tutorial/ -mtime -1
/root/tutorial/
/root/tutorial/.find.txt.swp
/root/tutorial/poem.txt
/root/tutorial/find.txt
1.COMMAND:
find
DESCRIPTION:
search for files in a directory hierarchy
SYNOPSIS:
find <path> <fileName>
OPTION:
-mtime n File's data was last modified n*24 hours ago.
-name Base of file name
Example:
If you remember the file's name,you can specify a path to find it out.
root@piniheaven:~# find /root/ -name find.txt
/root/tutorial/find.txt
Even you can't remember what the exactly file name is,you still can find it out.
root@piniheaven:~# find /root/ -name fin*
/root/tutorial/find.txt
Find out files that was last modified 24 hours ago.
root@piniheaven:~# find /root/tutorial/ -mtime -1
/root/tutorial/
/root/tutorial/.find.txt.swp
/root/tutorial/poem.txt
/root/tutorial/find.txt
- Linux Commands for Beginners--Finding Files
- Linux Commands For Beginners: SUDO
- Linux Commands for Beginners--The top Command
- Linux Commands for Beginners--The .bashrc File
- Linux Commands for Beginners--The Watch Command
- Linux Commands for Beginners--Create Your Own Commands Via alias
- Linux Commands for Beginners--which and whatis commands
- Linux Commands for Beginners--Viewing Resources--du,df,free commands
- Linux Commands for Beginners--Arithmetic in Bash--expr,let commands
- Linux Commands for Beginners---SSH for Remote Administration
- Linux Commands for Beginners-- FTP for Remote Administration
- Linux Commands for Beginners--Changing Ownership --chown command
- Linux Commands for Beginners-- Changing Permissions --chmod command
- Linux Commands for Beginners-- Echo And Creating Variables
- Linux Commands for Beginners--Creating Your First Scripting
- Linux Commands for Beginners-- Regular Expressions--the grep command
- Linux Commands for Beginners--Head and Tail Command
- FTP commands for batch files
- premake在Ubuntu和GCC环境下创建简单的C++工程
- 用AngularJS减少代码量吧
- 学习编写图像压缩和图像显示
- 提高自己工作效率的几个小技巧
- 软件测试基础
- Linux Commands for Beginners--Finding Files
- 《火球——UML大战需求分析》(第1章 大话UML)——1.5 小结和练习
- 使用html直接给swf添加链接
- shell脚本处理字符串常用方法
- Docker:具备一致性的自动化软件部署
- linux 下开放指定端口
- 代码走查规范表
- STL之缓冲区迭代器
- Matlab如何找出两个矩阵中相同的元素