command: cat



f33dm3bits

Gold Member
Gold Supporter
Joined
Dec 11, 2019
Messages
4,628
Reaction score
3,335
Credits
33,589
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
Isn't that doing an unnecessary cat, you can just do it like this?
Code:
[[email protected] ~]# grep rob /etc/passwd
rob:x:500:500::/home/rob:/bin/bash
 

wizardfromoz

Administrator
Staff member
Gold Supporter
Joined
Apr 30, 2017
Messages
7,206
Reaction score
6,116
Credits
24,201

captain-sensible

Well-Known Member
Joined
Jun 14, 2019
Messages
2,808
Reaction score
1,902
Credits
17,294
i think it means rob has user id of 500 (uid) and group id (gid) of 500
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Members online


Latest posts

Top