There are a lot of obscure shell tricks for the bash shell that are useful for showing off shell tricks and making your shell usage easier. For a first example, run this command. ubuntu ~ $ ls -hulaubuntu ~ $ ls -hula Then run this and the previous command parameters will be applied again. ubuntu …

Getting a lot of useful information about a hard disk drive is easy with Linux. The smartmontools package contains utilities to retrieve a lot of very useful info. Firstly, install this package. [email protected]:~$ sudo apt install [email protected]:~$ sudo apt install smartmontools Then run the command with sudo to get info about a drive. [email protected]:~$ sudo …

This is a good alternative to the ls command to print a directory listing. This is very useful for quickly viewing the contents of a directory. ┌─[[email protected]]─[~/Documents] └──╼ $find ./ -printf "%f\n" ./ password-01.kismet.netxml password-01.cap read.c out.xml netcomm.txt a.out password-01.kismet.csv rockyou.txt password-01.csv mysql.txt notify.js┌─[[email protected]]─[~/Documents] └──╼ $find ./ -printf "%f\n" ./ password-01.kismet.netxml password-01.cap read.c out.xml netcomm.txt …

Using wild-cards to display various files in a folder with ls. I recently needed to check whether certain files were in the /usr/lib folder and I used the ls command to do this. to find all files related to the Perl programming language in the /usr/lib directory. ubuntu ~ $ ls /usr/lib/*perl* /usr/lib/libperl.so.5.18 /usr/lib/libperl.so.5.18.2   …

Get a nice urxvt windows with a fixed font and lovely colors. urxvt -fn "fixed" +sr +st -fg "#FFFFFF" -bg "#000033" -bd "#302c64" \ -ip +sb -title "*-Home-${HOME}-Shell-${SHELL}-Display-${DISPLAY}*" \ -tint DarkSlateGrey -fade 50 -fadecolor redurxvt -fn "fixed" +sr +st -fg "#FFFFFF" -bg "#000033" -bd "#302c64" \ -ip +sb -title "*-Home-${HOME}-Shell-${SHELL}-Display-${DISPLAY}*" \ -tint DarkSlateGrey -fade 50 …

Getting detailed information about a window on your Linux desktop is very easy. The Xwininfo command is very useful for getting this information. Run the command and then click a window to get detailed information about a window. [email protected]:~$ [email protected]:~$ xwininfo Absolute upper-left X: 498 Absolute upper-left Y: 47 Relative upper-left X: 4 Relative upper-left …

The Linux command line may be used to get information about a video file easily. Here is an example. Getting the video resolution with a simple command. [email protected]:~/Videos$ ffprobe -v quiet -print_format json -show_format -show_streams burnout-in-a-town-street.mp4 | grep coded "coded_width": 400, "coded_height": 224,[email protected]:~/Videos$ ffprobe -v quiet -print_format json -show_format -show_streams burnout-in-a-town-street.mp4 | grep coded "coded_width": …

This Linux command will print all the filenames of the PAM libraries in the /lib directory. A good use of the find command. find /lib{,64} -iname ‘*pam*.so’find /lib{,64} -iname ‘*pam*.so’ Print a waveform in the terminal that will continue until you press control-c. for((i=0;;i++)) { printf "%$(bc -l <<< "a=20*s($i/10);scale=0;a/1+20")s|\n"; sleep .05; }for((i=0;;i++)) { printf …

I managed to get gqrx on Linux to receive Narrow FM frequencies. This was annoying at first, but now I can pick up Ambulance frequencies easily. These are the settings I am using tp decode these transmissions. Ambulances and Taxis seem to transmit on these frequencies and this is very interesting to listen to. I …