stderr 2>

Redirect error messages to a file

2> redirects stderr (file descriptor 2) to a file. find / -name 'file' 2>/dev/null suppresses 'Permission denied' errors.

Example

$ find / -name 'nginx.conf' 2>/dev/null
/etc/nginx/nginx.conf
Tip: Type it yourself in the terminal below - reading is not the same as doing.