command: cat



f33dm3bits

Gold Member
Gold Supporter
Joined
Dec 11, 2019
Messages
5,926
Reaction score
4,415
Credits
43,547
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
8,628
Reaction score
7,587
Credits
35,291

f33dm3bits

Gold Member
Gold Supporter
Joined
Dec 11, 2019
Messages
5,926
Reaction score
4,415
Credits
43,547

captain-sensible

Well-Known Member
Joined
Jun 14, 2019
Messages
2,910
Reaction score
1,971
Credits
18,114
i think it means rob has user id of 500 (uid) and group id (gid) of 500
 
MALIBAL Linux Laptops

Linux Laptops Custom Built for You
MALIBAL is an innovative computer manufacturer that produces high-performance, custom laptops for Linux.

For more info, visit: https://www.malibal.com

Members online


Top