(touch stat du)
stat查看文件狀態(tài)信息
[root@fengdeyong lianxi]# stat hejin.txt
? File: hejin.txt
? Size: 0???????? ????????Blocks: 0????????? IO Block: 4096?? regular empty file
Device: fd00h/64768d????????Inode: 52727069??? Links: 1
Access: (0644/-rw-r--r--)? Uid: (??? 0/??? root)?? Gid: (??? 0/??? root)
Context: unconfined_u:object_r:default_t:s0
Access: 2021-03-28 10:31:12.989701564 +0800
Modify: 2021-03-28 10:17:21.719671835 +0800
Change: 2021-03-28 10:17:21.719671835 +0800
Birth: -
????????linux里的文件有3個(gè)時(shí)間
????????1.access time --》atime 訪(fǎng)問(wèn)時(shí)間? --》你查看了文件里的內(nèi)容?? vim,cat
????????2.change time --》ctime 改動(dòng)時(shí)間 --》改動(dòng)了文件的屬性,? 例如用戶(hù),組,權(quán)限,大小,時(shí)間,文件名等
????????3.modify time? --》mtime 修改時(shí)間 --》修改文件里的內(nèi)容
touch命令(新建空文件,或更新文件時(shí)間標(biāo)記)
touch file 新建空文件
du -sh dicr1(查看文件或文件夾的占用情況)
du --> disk usage
-sh --> summarize human-readable
遇到結(jié)束的進(jìn)程,無(wú)法訪(fǎng)問(wèn)怎么辦?
du -sh / 2>/dev/null? 出錯(cuò)的信息不顯示雜屏幕上,重定向到/dev/null
2> 錯(cuò)誤信息重定向
?