1) Find big files in a directory:
# find /dir_path -xdev -size +10000 -exec ll {} \; > /tmp/bigfiles
2) Find new files in a directory:
# find /dir_path -xdev -type f -mtime -2 -exec ll {} \; /tmp/newfiles
3) copy entire file system / directory to new location:
# find /source_dir_path -depth | cpio -pdlmuva /dest_path
..:-)
No comments:
Post a Comment