You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ls [options] [directory] -> list contents of a directory
ls -a
ls -la
pwd
cat
echo
cd
mkdir
touch
rm
whoami
man
mv
cp
sudo
whatis
whereis
which
cal
ufw
chown [options] owner[:group] file
chmod [options] mode file
Symbol | Meaning
r Read(4)
w Write(2)
x Execute(1)
chmod 777 file.txt
File compression and decompression
gzip filename
gunzip filename.gz
Archiving
tar -cvf archive.tar file.txt file2.txt
tar -xvf archive.tar
tar -czvf archive.tar.gz file1 file2 directory/
tar -xzvf archive.tar.gz
Networking
ssh
netcat
scp
wget
curl
How to use ssh - basic
ssh-keygen -t rsa -b 2048 -> generate ssh keys
ssh-copy-id username@remote_ip -> copy public key to remote system
ssh username@remote_ip -> connect to the remote system