Cool Linux command you probably never heard of

in #linux5 years ago

image.png

Five cool Linux command-line utilities you probably never heard of.

All these tools can easily be installed via your native package manager
(typically apt install xxxx).

Axel

Almost every Linux Admin knows about wget. Have you heard of axel though?

Axel works just like wget but uses download segmenting to dramatically speed up large file downloads. Axel can also auto-resume your download if stops before it are complete and you need to restart it.


ncdu

ncdu is a really useful but not very well known utility to interactively identify where the space on your file system is being used. On Windows there is a tool called WinDirStat, this is pretty much the same thing but for Linux command-line.

You can move around your file system and view the largest files in any directory interactively.

Need to find out what is using up all your disk space, this is far more powerful than du.

tcptrack

tcptrack is a really cool utility for monitoring active network connections in real-time. While similar to netstat this will give bandwidth usage and is updated in real-time.

image.png
source

shellcheck

Think of shellcheck as linting for sh scripts. Shellcheck will scan a sh script and let you know where you can improve your scripts and find errors.

image.png
Source

nethogs

While nethogs is very similar to tcptrack, instead of giving you just ip/port information it will actually tell you what processes and scripts are using up bandwidth. This can be extremely helpful in troubleshooting a problem.

image.png
Source

Sort:  

Thank you for this info. I bounce back and forth from Windows and Linux. As I have an older laptop I use Linux on that machine (Ubuntu) and the machine my sister watches TV on when she visits is also Linux (Kubuntu).

I used Fedora for a bit, but prefer Debian based OS to the Redhat Package Manager OS types. Not an expert in either, but I get by. Just a hobby.

Another cool post of tips.


When I get time, I'll compare ncdu to old faithful (it gets written on the last page of every notebook I have)

# Show the top 5 largest files in a directory.
du -a . | sort -n -r | head -n 5

Ewww apt. yum is my friend.

yum just means you run Redhat/Centos type of distribution. Apt is for Debian based distribution.

Yep :) I use Redhat/Centos/Amazon Linux often.

I used to use Centos. I'm too broke to use RedHat.

Glad to learn about axel. I've always wondered if we had a CLI "download manager" for Linux that segments files for speed. Just checked and Fedora distributes the package :)

Wow! Super useful commands! Thanks

Posted using Partiko iOS

Cryptocurrency mining really got me into linux more than I was. Who wants to pay for windows licenses when you can do everything you need on Linux. Thanks for the tips

500k steem? I didnt know you have that much.

Didn't think it mattered.

Remind me to read this again in 12 hours.

Great post

I LOVE ncdu I use it all the time on VPS cause they usually have very limit storage.

Also, check out apt-get moo