Last active
May 5, 2021 17:46
-
-
Save ASR19/7f7a09430c4f4421d3afbacfe7cf9344 to your computer and use it in GitHub Desktop.
Ashwini_CLI_Drills_II
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt install htop vim nginx | |
sudo apt purge nginx | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hostname -I | |
host google.com | |
ping google.com | |
vim/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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