🌊 find / -name "root.txt" 2>/dev/null and Standard Streams
With this Standard Stream chart in mind, let's look into the anatomy of the command:
find / -name "root.txt" 2>/dev/null
'find' searches for the file. '/' then tells the terminal to look for it everywhere. The -name flag tells the terminal that "hey, let's find the this specific filename. 2 refers to a descriptor that always returns a stderror like the chart above. We only need the stdout displayed so we throw away stderror via 2>/dev/null


Comments
Post a Comment