DeveloperBreeze

df -h

Explanation:

  • df: This command stands for "disk free" and reports the amount of disk space used and available on Linux filesystems.
  • -h: This option stands for "human-readable" format, which makes the output easier to read by showing sizes in KB, MB, GB, etc.

Sample Output:

When you run the df -h command, you might see output similar to the following:

Filesystem      Size  Used Avail Use% Mounted on
/dev/sda1        40G   25G   15G  63% /
udev            1.9G     0  1.9G   0% /dev
tmpfs           384M  1.2M  383M   1% /run
/dev/sda2       100G   50G   50G  50% /home

Additional Tips:

  • Specific Filesystem: To view the space for a specific filesystem, add its path at the end of the command, like so:
  df -h /home
  • Inodes: To check free inodes instead of disk space, use the -i option:
  df -i

Continue Reading

Discover more amazing content handpicked just for you

Tutorial
bash

How to Reset the MySQL Root Password Using DROP USER

  sudo systemctl status mysql

This tutorial provided a step-by-step guide on resetting your MySQL root password using the DROP USER method. By dropping the existing root user and creating a new one with full privileges, you can resolve common issues related to root access and password management. Remember to always remove the skip-grant-tables option after completing the password reset to keep your MySQL server secure.

Oct 03, 2024
Read More
Tutorial

Getting Started with FFmpeg

FFmpeg allows you to resize videos easily. For example, to resize a video to a width of 1280 pixels while maintaining the aspect ratio:

ffmpeg -i input.mp4 -vf scale=1280:-1 output.mp4

Aug 21, 2024
Read More
Tutorial

How to Install an AppImage on Linux

Now that the AppImage is executable, you can run it directly from the terminal or by double-clicking on it in your file manager.

   ./exampleName.AppImage

Aug 21, 2024
Read More
Tutorial
bash

Finding the Top 10 Biggest Files on an Ubuntu Server

Use the following command to find the top 10 largest files:

sudo find /path/to/directory -type f -exec du -h {} + | sort -rh | head -n 10

Aug 11, 2024
Read More
Code
php bash

Laravel Artisan Commands Cheatsheet

  php artisan help [command]
  • Display the Current Laravel Version

Aug 03, 2024
Read More
Code
php

Upload and Store File in Laravel

No preview available for this content.

Jan 26, 2024
Read More
Code
javascript

Simple WebSocket Server using 'ws' library

No preview available for this content.

Jan 26, 2024
Read More

Discussion 0

Please sign in to join the discussion.

No comments yet. Start the discussion!