r/AskLinuxUsers • u/PM_me_nicetits • Aug 24 '16
What does 2>/dev/null do in linux?
I'm trying to teach myself Linux by playing wargames. I kept trying to use find for this lesson bandit7. What's the right syntax? Is it user first, followed by group? The find items online I found weren't very helpful. I kept using "find . -group bandit6 -user bandit7 size 33c /*". It got me close (I found something), but couldn't find any syntax to get the file. Finally looked at this one guy's answer, and he used 2>/dev/null. What is that? Where could I have gone to learn more about that syntax?
4
Upvotes
View all comments
Show parent comment
2
u/PM_me_nicetits Aug 24 '16
This somewhat makes sense, but since its been two years since it took a Linux class...I'm still clueless. Thanks, though!