Are there other ways to view disk partitions?

0107

Yes, there are several other commands and tools you can use to view disk partitions in Unix-like operating systems:

  1. lsblk: This command lists all block devices, including partitions, in a tree-like format.

    lsblk
    
  2. parted: This command-line tool can be used to manage disk partitions and also to display partition information.

    sudo parted -l
    
  3. df: This command shows disk space usage for mounted filesystems, including information about partitions.

    df -h
    
  4. blkid: This command displays information about block devices, including their UUIDs and filesystem types.

    sudo blkid
    
  5. cat /proc/partitions: This command reads the /proc filesystem to display information about partitions.

    cat /proc/partitions
    
  6. gparted: This is a graphical partition editor that provides a visual representation of disk partitions. You can install it and run it with:

    sudo gparted
    

These commands and tools provide various ways to view and manage disk partitions, depending on your needs and preferences.

0 Comments

no data
Be the first to share your comment!