Category: Command Line

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

Show Remote Shares using Samba

Show remote shares of a windows host smbclient -L ip_addr/hostname

Configuration of a wireless network card

Show configuration of a wireless network card iwconfig wlan0

Installing GRUB Into MBR

Use this when your MBR gets corrupted – usually happens after you reinstall windows. Pop in a bootable ubuntu DVD…

Lookup Hostname

Lookup hostname to resolve name to ip address and viceversa host www.example.com

Backup MBR to Image File

Make a copy of MBR (Master Boot Record) to a file. dd if=/dev/hda of=mbr.img bs=512 count=1 dd if=mbr.img of=/dev/hda bs=512…