HomeLinuxPresent Colourised Filesystem Disk House Utilization in Linux

Present Colourised Filesystem Disk House Utilization in Linux


The “pydf” (Python Disk File System) is a sophisticated command line software and a superb various to the “df command”, which is used to show the quantity of used and out there disk area on a mounted filesystem, the identical as df command, however in several colours. The output of the pydf command may be customizable in keeping with your wants.

This “pydf” command is written in python language that shows the quantity of disk utilization and out there area on Linux mounted file system, utilizing customized colours for various file system varieties.

Putting in pydf in Linux Programs

By default, the pydf software is just not put in on RHEL-based distributions reminiscent of CentOS, Fedora Rocky, and Alma Linux, it is advisable set up it utilizing the next instructions.

# python3 -m venv pydf
# supply pydf/bin/activate
# python3 -m pip set up pydf
Install Pydf in RHEL Systems
Set up Pydf in RHEL Programs

On older variations of RHEL-based distributions, it is advisable allow the EPEL repository and set up it utilizing the yum command as proven.

# yum set up pydf

On Debian/Ubuntu/Linux Mint

On Debian-based distributions, the pydf software is availabe from the package deal supervisor, you’ll be able to set up it utilizing apt-get or apt instructions as proven.

$ sudo apt-get set up pydf
OR
$ sudo apt set up pydf
Install Pydf in Debian Systems
Set up Pydf in Debian Programs

On different Linux distributions, you’ll be able to set up pydf utilizing the default package deal supervisor as proven.

$ sudo emerge -a app-admin/pydf  [On Gentoo Linux]
$ sudo apk add pydf              [On Alpine Linux]
$ sudo pacman -S pydf            [On Arch Linux]
$ sudo zypper set up pydf       [On OpenSUSE]    

How one can Use pydf Command in Linux

When you run solely the “pydf” command with out specifying an argument, it’ll show simply data on disk area utilization together with all mounted file techniques.

# pydf
pydf - Show File System Disk Usage
pydf – Present File System Disk Utilization

To examine which file system has 0 blocks, merely run the next command together with the “-a” or “--all” argument.

# pydf -a
pydf - Show File System With 0 Blocks
pydf – Present File System With 0 Blocks

To see the output in human-readable format, use the choice “-h", which can print sizes (e.g., 10K, 10M, 10G).

# pydf -h
pydf - Show Disk Usage in Human-Readable Format
pydf – Present Disk Utilization in Human-Readable Format

To print sizes in kilobytes (e.g., 1024 block dimension) use the choice “-k” as proven under.

# pydf -k
pydf - Show Disk Usage in Kilobytes
pydf – Present Disk Utilization in Kilobytes

To print abstract output in megabytes (e.g., 1048576 block dimension) use choice “-m” as proven under.

# pydf -m
pydf - Show Disk Usage in Megabytes
pydf – Present Disk Utilization in Megabytes

To print sizes in gigabytes (e.g., 1073741824), specify the choice “-g” as proven under.

# pydf -g
pydf - Show Disk Usage in Gigabytes
pydf – Present Disk Utilization in Gigabytes

To see the details about inodes as a substitute of blocks, use the argument “-i” as given under.

# pydf -i

If you wish to disable the colorized output, merely use the choice “--bw“.

# pydf --bw

How one can Customise pydf Colors

The pydf has its personal configuration file, the place you’ll be able to outline your individual customized colours to offer some additional appear and feel to your output.

# vi /and so forth/pydfrc

For extra data and utilization, learn the assistance web page of the pydf by operating “pydf –assist” in a terminal.

# pydf --help

If You Admire What We Do Right here On TecMint, You Ought to Think about:

TecMint is the quickest rising and most trusted neighborhood web site for any type of Linux Articles, Guides and Books on the net. Tens of millions of individuals go to TecMint! to go looking or browse the 1000’s of printed articles out there FREELY to all.

When you like what you might be studying, please think about shopping for us a espresso ( or 2 ) as a token of appreciation.

Support Us

We’re grateful on your by no means ending help.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments