• We had to restore from a backup today after a failed software update. Backup was from 0000 EDT and restored it at 0800 EDT so we lost about 8hrs. Today is 07/20/2024. More info here.

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

No members online now.

Top