Bookmark this page

Guided Exercise: Managing Storage Space

Identify storage and file system information.

Outcomes

  • Use graphical and command-line tools to examine disk space usage on a Linux system.

As the student user on the workstation machine, use the lab command to prepare your environment for this exercise, and to ensure that all required resources are available.

[student@workstation ~]$ lab start filesystem-storage

Instructions

  1. In the Disk Usage Analyzer application, review the items in your home directory that use the most disk space.

    1. Open the Disk Usage Analyzer application and click Home Folder.

    2. In the left panel, review the disk usage list.

      Figure 4.15: Home directory disk usage

      Your disk usage might vary.

  2. On the command line, view the disk space that is currently available in your home directory.

    [student@workstation ~]$ df -h ~
    Filesystem      Size  Used Avail Use% Mounted on
    /dev/vda4       9.4G  4.8G  4.6G  52% /

    The output of the df -h command shows that the home directory has 4.6 GB of disk space available.

    Your available disk space might vary.

  3. View the disk space usage in your home directory.

    The command output shows the space usage for all the files and directories under your home directory.

    [student@workstation ~]$ du -h ~
    20K	/home/student/.ssh
    4.0K	/home/student/.config/dconf
    4.0K	/home/student/.config/ibus/bus
    ...output omitted...
    359M	/home/student

Finish

On the workstation machine, use the lab command to complete this exercise. This step is important to ensure that resources from previous exercises do not impact upcoming exercises.

[student@workstation ~]$ lab finish filesystem-storage

Revision: rh104-9.1-3d1f2bc