Linux cheat-sheet

This is a quick and dirty cheat sheet of useful linux commands and important config files.

Commands

Use help system (man pages/info pages) for details on how to use the commands.

Command Description
df File system disk space usage
info Information pages for commands / system applications. Alternative to man
lsblk check currently mounted/attached storage devices
man Manual pages for commands / system applications. Alternative to info
ps Snapshot of currently running processes
top Real time display of currently running processes

How to create a bootable USB flash drive from an ISO file in linux

To create a bootable USB flash drive from an ISO file on Linux is very easy, and no special software needs to be installed.

We will be making use of the utility named dd. dd is used to copy files while converting data.

  1. The first and important thing is to make sure the USB flash drive is not mounted. This can be verified using lsblk. If it displays a mount point, the device is mounted and need to be unmounted:

  2. You can now copy the content of the ISO file onto the USB flash drive:
    sudo dd bs=4M if=/path/to/file.iso of=/dev/sdb
    Change the /path/to/file.iso portion to the actual file name, and the /dev/sdb to the name of the USB flash device as returned by lsblk.
  3. Run sync to synchronize the write cache before removing the device.

You can now boot from the USB flash device.