As this has been necro-posted and raised from the dead, I'll take this opportunity to point out that there is never a need to use
cat file | grep pattern.
grep rob /etc/passwd
ag rob /etc/passwd
I'm a beginner, where do I learn linux commands for beginners?
It seems this is mostly for text files, but the "strings" command, will often find text in a binary file.The cat command will allow you to see an entire file in your terminal quickly. This is more useful for smaller files unless you're grepping for certain things.