Could someone explain me what the following command does?

find / > allfiles.txt 2>/dev/null

It lists all files and directories in the directory tree in a file called "allfiles.txt", and discards errors (the 2>/dev/null bit).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.