Tag: grep
-
Check if a program (ex: Chrome) is installed
This command works in systems running apt . With dpkg you can list all packages installed and the output is filtered with grep. dpkg −l | grep chrome
-
Find if a process is running
With ps command we can see all the process running in our system if you have root privileges. We would like to know if samba is running. ps ax | grep samba
-
use grep for either of two strings
Options to look for several reg exp with grep. -i for case insensitive and -E for reg exp. grep -iE “(jpg|gif)” your-file-with-text.txt