Display Memory Information Using Ramfetch in Linux

In Linux, you can find many utilities that display the system hardware information beautifully on the screen.

One of them is Neofetch, Screenfetch, etc., which display your system information like the Linux OS version, hostname, processor, kernel, memory, desktop environment, resolution, CPU, GPU, and many more.

Despite the fact that this information can be read from a file present in the root directory, you can still use this tool to get clean output.

In this article, we will look at another tool, ramfetch, which is similar to the one mentioned and displays information about your system’s memory.

What is Ramfetch?

Ramfetch is a shell script that fetches the system memory information from the “/proc/meminfo” file and displays it beautifully on the user’s screen.

Although you can read the mentioned file directly to obtain system memory information, ramfetch provides clean output.

Ramfetch Installation in Linux

As I mentioned earlier, this tool is nothing but a shell script file that can be easily cloned from its GitHub page using the following command:

$ git clone https://github.com/gentoo-btw/ramfetch

The following is the behavior of the above command.

Cloning the ramfetch script file
Cloning the ramfetch script file

After the project is cloned, copy the script file into your bin directory using the following command.

$ sudo cp ramfetch/ramfetch /usr/local/bin/

The following is the behavior of the above command.

Copying the script into the user's bin directory
Copying the script into the user’s bin directory

Lastly, give it executable permission using the chmod command.

$ sudo chmod +x /usr/local/bin/ramfetch

The following is the behavior of the above command.

Giving an executable permission
Giving an executable permission

That’s all you need to do to install this tool (or script) on your Linux system.

Ramfetch Usage

To use this tool, simply run the following command to fetch your system’s memory information.

$ ramfetch

The following is the behavior of the above command.

Ramfetch interface
Ramfetch interface

As you can see from the above picture, this tool gives you information related to your system memory, like total free and available ram, buffers, cache, swap total, swap free, kernel stack, per-CPU usage, and many more.

Yes, this information can be read from the “/proc/meminfo” file or the “free -f” command, and now you can use this script.

If you want to show more information, all you have to do is change the script to fit your needs.

Remove Ramfetch

This article will be incomplete without showing you the steps of the Ramfetch removal.

So, to get rid of it, just run the following command: This will get rid of the file you copied during the installation step.

$ sudo rm /usr/local/bin/ramfetch

Ramfetch is a new project that was just released while I was writing this article, so you should expect some bugs or errors that you can report on the project’s GitHub page.

If you have any tools like this, feel free to tell us about them in the comment section.

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments