Why Memory Usage is Important?

Nowadays we know the importance of open source software and their uses. Linux I also an open-source and licensed operating system. Similar to windows OS Linux also need some memory for its primary files. There are three types of memory in Linux.

  • Memory for root
  • Memory for Swap Area
  • Memory for Home Directory

The use of Linux or command line operating system in server-side is very important and almost big data centres and cloud computing is based on open-source operating systems or and software. The file management of Linux is very fast and well designed. You can check the hierarchical structure of files in Linux using “ tree ” command. You check your free and useable space in Linux using commands and also graphical user interface. In this article, I will introduce some commands with examples to check the memory space in Linux.

Check Disk Space in Linux ( Ubuntu, Fedora, Mint etc)

  • If you want to see the useable and free space in your Linux Operating System “ df ” command is very useful.
  • Linux also provides a command “ du ”to check the useable space with specific subdirectory and some important and unimportant files.
  • btrfs fi df /device/ also an important command for checking useable space based on the file system

How to Check Disk Space in Linux for Directory

df Command

The df command is the device I first used to discover drive area on Linux, way again in the Nineteen Nineties. It’s quite simple in both utilization and reporting. To at the moment, df is my go-to command for this undertaking. if you want to see the disk space ( free and usage ) space then df command is very useful. (Subcommands with df are given below).

  • df command

Above is the simple df command without any parameter.

  • df -H

df command with – H: the output of the df – H is consist of these important fields.

  • Source –> complete file system source
  • SIZE -­-> all the blocks in your memory
  •  USED –> used space of your PC
  • avail –> avail means available space on your drive
  • pcent –> pcent means per cent of your space in percentage from usage memory
  • target –> drive point


du command

Our next command is du. As you might assume, that stands for disk utilization. The du command is pretty one-of-a-kind to the df command, in that it reviews on directories and no longer drives. Because of this, you’ll need to understand the names of directories to be checked. Let’s say I actually have a listing containing virtual gadget documents on my gadget.

  • du -h /your complete path

The output of the du –h command is something like this:

So ways, this command isn’t all that helpful. What if we need to realize the overall usage of a specific directory? Fortunately, du can handle that assignment.

  • du -sh /your complete path

The output of this command is:

  • du -a /your Complete path | sort -n -r | head -n 10

This command is also important for checking the memory usage in Linux.

How do I check disk space in Unix?

Check disk space on Unix operating system

Unix command to check disk space: df command – Shows the amount of disk space used and available on Unix file systems. du command – Display disk usage statistic for each directory on Unix server.

How do I check my disk space?

To check the free disk space and disk capacity with System Monitor:
  1. Open the System Monitor application from the Activities overview.
  2. Select the File Systems tab to view the system’s partitions and disk space usage. The information is displayed according to Total, Free, Available and Used.

How do I free up disk space on Linux?

Freeing disk space on your Linux server
  1. Get to the root of your machine by running cd /
  2. Run sudo du -h –max-depth=1.
  3. Note which directories are using a lot of disk space.
  4. cd into one of the big directories.
  5. Run ls -l to see which files are using a lot of space. Delete any you don’t need.
  6. Repeat steps 2 to 5.

What is using disk space Linux?

Check Disk Space in Linux Using the df Command

Size — gives us the total size of the specific file system. Used — shows how much disk space is used in the particular file system. Available — shows how much space is left in the file system. Use% — displays the percentage of disk space that is used.

How find large files in Linux?

Linux find largest file in directory recursively using find
  1. Open the terminal application.
  2. Login as root user using the sudo -i command.
  3. Type du -a /dir/ | sort -n -r | head -n 20.
  4. du will estimate file space usage.
  5. sort will sort out the output of du command.
  6. head will only show top 20 largest file in /dir/

What is the disk space?

Alternatively referred to as disk space, disk storage, or storage capacity, disk capacity is the maximum amount of data a disc, disk, or drive is capable holding. All computers have an operating system and programs installed that use some of the hard drive’s space.

How can I increase disk space?

Here’s how to free up hard drive space on your desktop or laptop, even if you’ve never done it before.
  1. Uninstall unnecessary apps and programs.
  2. Clean your desktop.
  3. Get rid of monster files.
  4. Use the Disk Cleanup Tool.
  5. Discard temporary files.
  6. Deal with downloads.
  7. Save to the cloud.

What is the difference between disk space and storage?

The terms “disk space” and “storage” usually refer to hard drive storage. Hard drive storage is typically used for long-term storage of various types of files. “Virtual memory” is hard disk space that has been designated to act like RAM.

Is 4 GB of memory good?

Having at least 4GB of RAM will let users load up a reasonable number of browser tabs and leave enough RAM for using email, working with applications like Microsoft Word, and playing casual games. That makes 4GB a good minimum specification for most users.

Is ROM a storage?

ROM (Read Only Memory) is a form of data storage. This type of memory keeps the saved data even if the device power is off.

Is ram the same as storage?

The term memory refers to the amount of RAM installed in the computer, whereas the term storage refers to the capacity of the computer’s hard disk. To clarify this common mix-up, it helps to compare your computer to an office that contains a desk and a file cabinet.

Is SSD a memory or storage?

Whereas memory refers to the location of short-term data, storage is the component of your computer that allows you to store and access data on a long-term basis. Usually, storage comes in the form of a solid-state drive or a hard drive.

Should I increase RAM or SSD?

An SSD will load everything faster, but RAM can keep more stuff open at once. If you find your computer being unbearably slow in literally everything it does, an SSD is the way to go, but if, for example, your computer only starts acting up once you open your “lots of tabs,” you’ll want the RAM boost.

Does deleting files increase RAM?

Uninstalling applications you no longer use will have a greater impact on speeding up your computer since your applications use up plenty of RAM. Removing applications you no longer need can free up RAM because you won’t be tempted to leave them running, and as a bonus, can free up hard drive space as well.