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…

Important Logs

First show system events. Second command show events inherent to the process of booting kernel. tail /var/log/messages tail /var/log/dmesg

Find WiFi Hotspots

Use this command to find the wifi hotspots around your system. You need wifi hardware with proper drivers for this…

The who Command

Show who is logged on, and print: time of last system boot, dead processes, system login processes, active processes spawned…

Download Deb Files Using apt-get

If you want to download the deb files without installing them, use the following command. The downloaded file will be…

Backup HDD To Remote Host

Make a backup of a local hard disk on remote host via ssh dd bs=1M if=/dev/hda | gzip | ssh…