File & Process monitoring
to check the file as it gets edited
sudo tail -f /var/log/apache2/access.log
every 2 sec by default but could be tweaked
watch -n 5 w
downloading
wget -O <name> <link>
curl -o <name> <link>
axel -a -n 20 -o <name> <link>
Bash Commands
list all running services
systemctl list-unit-files
listing, adding and removing tools
apt-cache search pure-ftpd
apt show pure-ftpd | less
reading user input
#! /bin/bash
echo “Hello there, would you like to learn how to hack: Y/N ?”
read answer
echo “Your answer was $answer
reading user input 02
#! /bin/bash
# prompt the user f...
File Edit
VIM
dd → delete current line
yy → copy current line
P → paste line
x → delete letter
compare
comm file1 file2
diff -c file1 file2
diff -u file1 file2
vimdiff file1 file2
→ (ctrl + w) - switch windows
→ (D + O) - takes the difference and paste in current window
→ (D + P) - takes the difference and paste in other window
65 post articles, 17 pages.