Author: Binny V A

A philosopher programmer who specializes in backend development and stoicism.

Set Path

Adding a new folder to the current path… export PATH=NEW_FOLDER:$PATH

Find Current Path

Use this command to find the current path… echo $PATH

Find Current DNS Server

The DNS servers are in the /etc/resolv.conf file – cat it to find what they are. You can edit to…

Show All HTTP Traffic

Show all HTTP traffic tcpdump tcp port 80

Show iptables chains

Show all chains of filtering table iptables -t filter -L

Incremental Backup with tar

Make a incremental backup of directory ‘/home/binnyva’ tar -Puf backup.tar /home/binnyva

Zip Command in Linux

Command to create a zip file from a given folder. zip -r File.zip Folder/

Show All Network Services

Show all network services listening on the system and their PID netstat -tupl

Repair/Check integrity of FAT file system

Repair/Check integrity of FAT file system – useful for checking pen drives fsck.vfat /dev/sdb1

Copy Files Using Samba

Download files from a host windows via smb smbget -Rr smb://ip_addr/share