Category Archives: Operating Systems

Take screenshot from command line

Take a screenshot of your desktop using the SCROT utility. Basic usage is to call the scrot command in a console, but this would take an instant screenshot of the desktop in the current directory. Thus it would be better used along with the “-d” (delay) option in order to have a time buffer to place the desired objects on the desktop.

Fix NetBeans big fonts on Ubuntu

There is a rather annoying issue related with NetBeans displaying large fonts on Ubuntu for menus and panels. There are some suggestions on Ubuntu forums related with java fonts settings, but there are a couple of better solutions which may improve the way NetBeans looks on Ubuntu when it comes to font size.

Play music from command line

Although there are a lot of GUI media players out there, it is also possible to listen to your favorite music from the command line. The mpg123 tool allows you to play a song, a playlist or even a stream and has all major features of a GUI media player: control keys, equalizer, replay gain, gapless playback.

Display banner text in command line

You can display banner-like texts with large characters created from regular characters using the FIGlet utility. Basic usage requires only the text you want to output on the CLI, but you can also specify the font used in text rendering, dimensions and other layout options.

CLI search and replace in multiple files

Here is a quick tip about how to find and replace a text in multiple files, from CLI.In this example you have some text files (.txt) with urls like “,…”. What you are trying to do is to replace all “http” references with “https”.