command: cat



cat command examples:

show the contents of /etc/passwd while searching for the user 'rob'
Code:
[root@server ~]# 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:
[root@server ~]# grep rob /etc/passwd
rob:x:500:500::/home/rob:/bin/bash
 
i think it means rob has user id of 500 (uid) and group id (gid) of 500
 

Members online


Latest posts

Top