Here are different commands which can list the hard drives in Linux. There are others but these are the most common and easy to use commands to list disks.
Reorganize space on old drives. Move data to a new disk How to list partitions? Before making any changes to the drive, you first look at the basic structure of the drive and its partitions. To view all the partitions on the drive, run the following command in the Linux terminal. $sudo...
In Linux, the term “drive” may not actually refer to a physical drive; a drive might be a special kind of file or a file system designed to look like a drive. For this reason, drives of any type are referred to as devices. When using the mount command, you mount a device to a...
-t type:Specifies the type of filesystem to be created. -V:Displays verbose output including filesystem-specific commands. NB:TheoptionsinLinuxCLI (Command Line Interface)are allcase-sensitive, So be cautious while using them. Prerequisites for Using the “mkfs” Command in Linux ...
The ‘df‘ command stands for “disk filesystem“, it is used to get a full summary of available and used disk space usage of the file system on the Linux system. Using ‘-h‘ parameter with (df -h) will show the file system disk space statistics in “human-readable” format, which...
Filter drives and mounting points The duf utility provides various options so that you can filter output and have intended results. For instance, you can the--onlyoption to show only specific devices: duf --only device_name So if I want to list the locally mounted devices, I will have to...
fdisk is a powerful command-line utility in Linux used formanaging disk partitions on your system. With fdisk, you can create, delete, resize, and manage partitions on your hard drives or storage devices. It can be used in both menu-driven and command-line modes, allowing users to choose ...
Managing disk partitions is a fundamental skill for Linux system administrators. The fdisk command is a powerful tool for partitioning and managing disk drives on a Linux system. In this article, we’ll explore the basics of using fdisk with practical examples to guide you through the process. ...
Learn about mount command in Linux. It is used to attach a filesystem on an external device to the root node (/) of the tree (Linux file system) using the terminal.
Linux is an open-source, UNIX-like operating system that drives a large portion of the internet. The Linux kernel sits underneath many new technologies and platforms such as Android, SDN controllers, containers, and its services as a network OS and server. These high demands require the proper...