Some useful commands through Linux command line – III

Some useful commands through Linux command line – III

Guys we already seen some useful commands through Linux command line  part I and part II ,We discuss some more commands.



Ncdu command

The ncdu (NCurses Disk Usage) is a curses based version of the well-known command  du, and provides a fast way to see what directories are using your disk space.

To install ncdu

#yum install ncdu

Loaded plugins: presto, refresh-packagekit
Setting up Install Process
Resolving Dependencies
–> Running transaction check
—> Package ncdu.i686 0:1.6-1.fc13 set to be installed
–> Finished Dependency Resolution

Dependencies Resolved

Package Arch Version Repository Size
ncdu i686 1.6-1.fc13 fedora 25 k

Transaction Summary
Install 1 Package(s)

Total download size: 25 k
Installed size: 44 k
Is this ok [y/N]: y
Downloading Packages:
Setting up and reading Presto delta metadata
fedora/prestodelta | 414 B 00:00
Processing delta metadata
Package(s) data still to download: 25 k
ncdu-1.6-1.fc13.i686.rpm | 25 kB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : ncdu-1.6-1.fc13.i686 1/1

ncdu.i686 0:1.6-1.fc13





Htop command

In linux managing processes from the command line is  we use “top“. Top command shows a table displaying the processes consuming the most RAM. Instead of top command, we can use htop command with some other nice features that top command  doesn’t have.

Comparison between htop and top

  • In htop command we can scroll the list vertically and horizontally to see all processes and complete command lines.
  • htop command starts faster.
  • In htop command we don’t need to type the process number to kill a process.
  • In htop command we don’t need to type the process number or the priority value to renice a process.
  • htop command supports mouse operation

To install htop

tar xvfz htop-0.9.tar.gz
cd htop-0.9
make install

Output :


Leave a Reply

Your email address will not be published. Required fields are marked *