Dealing with “Permission denied error messages” on Linux

Configurare noua (How To)

Situatie

Find will show an error message for each directory/file on which you don’t have read permission

Solutie

Find will show an error message for each directory/file on which you don’t have read permission

To avoid those messages, append 2>/dev/null at the end of each command:

find /where/to/look/ criteria action 2>/dev/null
sudo find / -type d -name "apt" 2>/dev/null

Tip solutie

Permanent

Voteaza

(14 din 31 persoane apreciaza acest articol)

Despre Autor

Leave A Comment?