來源:51CTO
閱讀:204
作者:夜魅零度
欄目:系統(tǒng)運維
一、find命令
ctrl l 清屏 ctrl d 退出終端 ctrl c終止命令 ctrl u把前面的東西全部刪掉 ctrl e 光標挪到最后面去 ctrl a 光標挪到最前面
find用法有幾種:-type 搜索文件或者目錄 -mtime 創(chuàng)建時間天 -mmin創(chuàng)建時間分鐘 -size 文件大小 -o 或者 -name文件名搜索 -exec
find用法 find 路徑 搜索條件 列如用文件類型 文件名 創(chuàng)建時間
find /etc/ -type -d(f) 搜索條件為目錄或者文件
find /etc/ -type name ".conf" 使用文件名搜索
find /etc/ -type -mtime 以創(chuàng)建時間來搜索
find /etc/ -type -f -o -mtime -1 -o -name ".conf"
find / -inum inode號 來查找有幾個硬鏈接使用了這個iNode號
stat用來查看文件三個time
mtime=創(chuàng)建時間
atime=最近訪問
ctime=最近改動
更改了文件內(nèi)容ctime一定會變,因為你更改了文件內(nèi)容的大小,權(quán)限以及時間,所以ctime一定會變
find /root/ -type f -mmin -120 -exec ls -l {} \\\\;
find /root/ -type f -size -10k -exec ls -lh {} \\\\; 查看文件大小
二、Linux和Windows文件互傳
必須是Xshell或者CRT putty不支持 還需要安裝一個包 yum install -y lrzsz
Linux上傳到Windows 使用SZ SZ 加文件名
Windows上次到Linux使用RZ 直接回車
更多關(guān)于云服務(wù)器,域名注冊,虛擬主機的問題,請訪問西部數(shù)碼官網(wǎng):m.bingfeng168.cn