Remove a Directory Recursively

Remove a directory called ‘dir’ and contents recursively rm -rf dir

Create Compressed Image

Create a compressed iso image of cdrom on disk mkisofs /dev/cdrom | gzip > cd_iso.gz

Change Case

Convert from lower case to upper case echo ‘hello world’ | tr ‘[:lower:]’ ‘[:upper:]’

Starting SSHD

Starting SSHD – 2 methods sudo /usr/sbin/sshd sudo service sshd start

Install Package Debian(DPKG)

Install a package using dpkg in Debian linux dpkg -i package

Show PCI Devices

Shows all PCI devices in your system using this command lspci -tv

Packages to Install in a Debian/KDE Laptop

I usually install these packages after I install Debian/KDE in a Laptop. apt-get install … kdebase k3b gcc vlc xine-ui…

Get Kernel Version

Show version of the kernel cat /proc/version

List Encoding – iconv

This command lists all known encodings iconv -l

Apt using CD/DVD

Install / upgrade a deb package from cdrom/dvd apt-cdrom install package_name