Tech »  Topic »  How to format a drive on Linux from the command line

How to format a drive on Linux from the command line


If you need to add an external drive to your Linux system, you might need to format it. If you want to learn how to do that process from the command line, here's your chance.

fatmawati lauda/Getty Images

My current Linux desktop has one main drive housing the OS and four other drives where I store different data. I have a drive for music, one for video, one for documents, and one for virtual machines. Each secondary drive was purchased new, so they had to be formatted before use.

Because my desktop machine has a GUI, I could have used the GNOME Disks tool and formatted those drives without opening the terminal window. However, I'm old-school with some things, so I automatically go to the command line for such jobs -- even when the task is easier with a GUI.

Also: The first 5 Linux commands every new ...


Copyright of this story solely belongs to zdnet.com . To see the full text click HERE