Category Archives: cli

Take screenshots from the command line in Linux

There are many Linux applications dedicated to taking screenshots. However, you minght want to use the command line to do this, either because you want to build an automated script, or because you have a terminal screen handy.Try import screenshot.jpg This will allow you to select a rectangle using your mouse. The moment you let… Read More »

Realtime statistics of your Linux system

If you wish to monitor your Linux system in realtime, use dstat. Use a man dstat to see a list of possible options, since they are extensive and dstat can output system usage, memory usage, load times, network information, NFS, therman, VMWare, CPU, sendmail and MySQL usage, among others.Try dstat -tamn -M topcpu where -tamn… Read More »

Linux – Top 10 CPU-hungry apps

If you want to find out which applications you run eat the most of your CPU, run the command below: ps -eo pcpu,pid,args | sort -k 1 -r | head -10 This will display a top 10 list of those processes, starting with the hungriest at the top.

Find duplicate files in Linux

Let’s say you have a folder with 5000 MP3 files you want to check for duplicates. Or a directory containing thousands of EPUB files, all with different names but you have a hunch some of them might be duplicates. You can cd your way in the console up to that particular folder and then do… Read More »