More_Linux_and_Grep_Commands
More_Linux_and_Grep_Commands
Grep Commands
grep "hello" file.txt — Search a word in a file
grep -v "hello" file.txt — Invert match (lines not containing the pattern)
Linux Commands
cd — Change directory
Networking
ping — Check network connection
Package Management
sudo apt update && sudo apt upgrade — Update/upgrade (Debian/Ubuntu)
sudo apt install packagename — Install package (Debian/Ubuntu)
Others
history — Show command history
User Management
adduser username — Add a new user