December 29, 2021
5 Basic Linux Disk Management Commands You Should Know
Move your precious files through the Linux ecosystem with ease

By Tate Galbraith
6 min read
Managing files, removable media, and disk drives in Linux can be quite an undertaking if you aren't fluent in command-line. If you're used to working in a GUI then handling data storage in a CLI might feel a bit scary.
With just a few simple commands you can quickly lift the veil of uncertainty and become a pro at shuffling data around in Linux. In this article we'll explore some of the basics for things like mounting drives, copying data, and wiping disks and directories.
Let's take a look!
Note: some of these commands may require root privileges so you may need to run them using sudo.
1. Mounting a removable drive
The first thing you might notice about Linux is that when you plug a removable drive-in, it doesn't automatically appear anywhere. This is because (unless you're using a desktop distro) you have to actually mount the drive yourself and tell the OS where to put the files.
This isn't really all that difficult and is solved with two simple commands. First, after you plug the drive in you'll need to figure out what the device label is. You can do this by running: