【求助】command which can show the listing of all file



贊助商連結


AoiSora
2003-10-29, 11:49 PM
Hi guys! I am new in here, i got a question is have to

a listing of all the files under /etc/ directory, and its sub-

directories that have been created or changed since the system

was booted! even i have other question listing of all the files undet xxx directory, and its sub-directoried that have been created and

modified in the last 60 mins, 7 days, and 30 days old.

Anyone can give me a concept which command should i use?

I try to use "ls" but, i don't think it's only this one!

Thanks!

贊助商連結


yc123
2003-11-04, 01:38 AM
通常我都會使用find指令。
例如:
在目錄etc下找60分鐘內最後被修改的檔案或目錄:
find /etc -mmin -60

在目錄etc下找7天以內最後被修改的檔案或目錄:
find /etc -mtime -7

在目錄etc下找7~30天之間最後被修改的檔案或目錄:
find /etc -mtime +7 -and -mtime -30