command: cat



f33dm3bits

Gold Member
Gold Supporter
Joined
Dec 11, 2019
Messages
5,555
Reaction score
4,120
Credits
40,565
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,346
Reaction score
7,252
Credits
33,110

f33dm3bits

Gold Member
Gold Supporter
Joined
Dec 11, 2019
Messages
5,555
Reaction score
4,120
Credits
40,565

captain-sensible

Well-Known Member
Joined
Jun 14, 2019
Messages
2,910
Reaction score
1,970
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


Latest posts

Top