cool use for find command

10:24 pm

Link: /root file system full.

To search the root partition for files matching certain conditions, use the find(1) command. The ‘-xdev’ option lets you limit the search to just the one partition.

Eg. to find all files modified in the last week:
# find /usr -xdev -mtime -7 -print

Or to find all files over 1Mb in size and produce a long-format listing:
# find /usr -xdev -size  1048576c -ls

Bookmark and Share
FreeBSD
Related posts:
blog comments powered by Disqus