[[email protected] ~]# cat /etc/passwd|grep rob
rob:x:500:500::/home/rob:/bin/bash
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 usecat command examples:
show the contents of /etc/passwd while searching for the user 'rob'
Code:[[email protected] ~]# cat /etc/passwd|grep rob rob:x:500:500::/home/rob:/bin/bash
cat file | grep pattern
.grep rob /etc/passwd
ag rob /etc/passwd
When it is cat command a process?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.
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.
cat is short for concatenate.the cat command name sounds funny,
CAT
Ohcat is short for concatenate.
OKcat (Unix)
en.wikipedia.org
What coding language would work with this??cat command examples:
show the contents of /etc/passwd while searching for the user 'rob'
Code:[[email protected] ~]# cat /etc/passwd|grep rob rob:x:500:500::/home/rob:/bin/bash