find and filter out permission denied

find . 2>/dev/null > files_and_folders

find . 2>&1 | grep -v 'permission denied' > files_and_folders

find . 2>/dev/null > some_file

find . 2>&1 | grep -v 'Permission denied' > some_file




How can I exclude all “permission denied”-messages from “find .”?

你可能感兴趣的:(Permission)