Finding information in files. Stacking the grep command

Subscribers:
1,220
Published on ● Video Link: https://www.youtube.com/watch?v=P3C7j3PUeqo



Duration: 4:12
67 views
2


Trying to find where something is stored in a config file??? Use grep to look for it.

Commands
2 sudo cat /etc/passwd
3 sudo grep student /etc/passwd
4 sudo grep ec2-user /etc/passwd
5 sudo grep 100 /etc/passwd
6 clear
7 sudo grep 100 /etc/passwd
8 sudo grep 100 /etc/passwd | grep bash
9 sudo grep 100 /etc/passwd | grep -i bash
10 sudo grep 100 /etc/* | grep -i bash