Here is a way to copy an entire filesystem without descending down its subsumed mount points. This example uses the root filesystem:
$ find / -xdev | cpio -pm /desired/location
commandscopycpiofilesystemfindrootshell
For example, to display the 20 largest files owned by joe:
find / -printf "%k\t%p\n" -user joe | sort -n | tail -20
commandsfilesfindpermissionsprintfsorttailusers
To zip up the contents of a directory (selectively), use find and zip:
$ find . -type f -name "*.jpg" | zip -@ myimages.zip
commandsdirectoryfindshellzip
Use slocate to build a database of files on your machine and use locate to find them:
# slocate -u # Rebuilds file database by scanning all filesystems # locate foobar # finds all files with 'foobar' somewhere in the path
commandsdiagnosticfindslocateutilities
If you have a bunch of files in your home directory and you want to push them into ~/sort, create the directory and then do the following:
$ find . -type f -maxdepth 1 ! -name ".?*" | xargs -I '{}' mv '{}' sort
Note: GNU xargs uses -i. BSD versions use -I.
bsdcommandsdirectoryfindgnushellsortxargs