We are listing some commands that new Linux users should aware of. We will update these pages with more descriptions and command options including tips and tricks. You are most welcome to post your comments and queries here.

Mounting a Partition in Linux

If you are working on Linux and found that a disk partition is missing or not visible in your Files browser and you want to check if that exists or not.

Apply any of the following command:

lsblk -f

mount a partition

sudo fdisk -l

lsblk

If you want to mount a partition named /dev/sda4 to a folder in somewhere like /home/userasha/backup, then first create a folder named “backup” into /home/userasha location then give following command:

sudo mount /dev/sda4 /home/userasha/backup

List Open Files

Command:
lsof -i

Lsof (LiSt Open Files) lists info about open files, by processes, ports currently running on the system.

Network Traffic Monitor

Network traffic monitor. Can be used for monitoring Internet bandwidth. Not a default package but can be installed.

Command:

vnstat