Network Commands

ifconfig ifconfig (interface configurator)ifconfig enp0s3 downifconfig enp0s3 upAdd IP addressifconfig enp0s3 192.168.50.10ifconfig enp0s3:1 192.168.50.10 netmask 255.255.255.0 up Netstat display the status of TCP and UDPnetstat -tulpndisplay the status of TCP and UDP and current connectionsnetstat -tulpna Route View, add and delete IP routing table in Linux. route -n route add -net 192.168.55.10 netmask 255.255.255.0 dev […]

zip/tar

Tar x – instructs tar to extract the files from the zipped filev – means verbose, or to list out the files it’s extractingz – instructs tar to decompress the files – without this, you’d have a folder full of compressed filesf – tells tar the filename you want it to work onc – creates […]

ngnix-setup

Step 1 – Installing Nginx apt update && apt install nginx -y Step 2 – Adjusting the Firewall ufw app list OutputAvailable applications:Nginx FullNginx HTTPNginx HTTPSOpenSSH ufw allow ‘Nginx HTTP’ ufw status OutputStatus: active To Action From— —— —-OpenSSH ALLOW Anywhere Nginx HTTP ALLOW Anywhere OpenSSH (v6) ALLOW Anywhere (v6) Nginx HTTP (v6) ALLOW Anywhere […]

rsync

Rsync rsync -r dir1/ dir2 rsync -a dir1/ dir2 The -a option stands for “archive” and syncs recursively and preserves symbolic links, special and device files, modification times, group, owner, and permissions. It is more commonly used than -r and is usually what you want to use. The -z stands for compression option. The -P flag combines the […]