Skip to content

Instantly share code, notes, and snippets.

@ASR19
Last active May 5, 2021 17:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ASR19/7f7a09430c4f4421d3afbacfe7cf9344 to your computer and use it in GitHub Desktop.
Save ASR19/7f7a09430c4f4421d3afbacfe7cf9344 to your computer and use it in GitHub Desktop.
Ashwini_CLI_Drills_II
sudo apt install htop vim nginx
sudo apt purge nginx
hostname -I
host google.com
ping google.com
vim/
wget https://raw.githubusercontent.com/bobdeng/owlreader/master/ERead/assets/books/Harry%20Potter%20and%20the%20Goblet%20of%20Fire.txt
head -3 "Harry Potter and the Goblet of Fire.txt"
tail -10 "Harry Potter and the Goblet of Fire.txt"
grep -oc "Harry" "Harry Potter and the Goblet of Fire.txt"
grep -oc "Ron" "Harry Potter and the Goblet of Fire.txt"
grep -oc "Dumbledore" "Harry Potter and the Goblet of Fire.txt"
head -200 "Harry Potter and the Goblet of Fire.txt" | tail -101
tr ' ' '\n' <check.txt | sort |uniq | wc -l
pidof chrome
kill <process id> #
ps -eo pid,ppid,%mem,%cpu,comm --sort=%cpu | head -3
ps -eo pid,ppid,%mem,%cpu,comm --sort=-%mem | head -3
python3 -m http.server
CTRL + c
sudo python3 -m http.server 90ps -a
netstat -l
netstat -l | grep 5432
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment