View previous topic :: View next topic |
Author |
Message |
pinnockio Apprentice
Joined: 08 Jun 2002 Posts: 162
|
Posted: Thu Mar 04, 2004 10:08 am Post subject: Command "find" hide "no permission" prin |
|
|
Hello,
Is there an option by which the command "find" doesn't display the lines "permission denied" for directories a normal user doesn't have access rights to. On a stand alone computer this ain't that frustrating, but when trying to find something on our university server with a lot of student accounts,... .
Kind regards,
A belgian Gentoo user |
|
Back to top |
|
|
CheshireCat Guru
Joined: 25 Aug 2002 Posts: 572
|
Posted: Thu Mar 04, 2004 10:10 am Post subject: |
|
|
I can't get at my system to check right now, but I believe those messages are directed to stderr, and that you could use something like this:
Code: | find / -name whatever 2>/dev/null |
to get rid of the errors while keeping the normal find output. |
|
Back to top |
|
|
adaptr Watchman
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Thu Mar 04, 2004 10:20 am Post subject: |
|
|
Code: | find (-user $YOU -perm -ur) -or (-group $YOUR -perm -gr) -or -perm -or |
man find. _________________ >>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen |
|
Back to top |
|
|
|