Warning! You WILL want to turn your volume down if you are wearing headphones. You run the following commands at your own risk, I cannot confirm the safety of your ears.

Another Ubuntu Tech Snippet inbound! This one is a bit bizarre, I must say, and rather geeky.

The actual idea is pretty simple, you just run a command in terminal and pipe it through aplay. You can take this and try any commands you want, but the commands I list are the ones that I have heard actually play something more than a two-second electronic squelch.

I originally found out about this on Unix/Linux Stack Exchange. First thing to do is run the command

dmesg | aplay

which runs the dmesg (which, from the man page,  examines or controls the kernel ring buffer) command and then pipes the output into aplay, the command-line music player. In this case there are no flags on the dmesg command, so it just reads all the messages from the kernel ring buffer.

By piping the output from dmesg into aplay you will be getting the audio interpretation of whatever data dmesg returns. It will vary between computers, so don’t blame me if your speakers, earbuds, headphones, or eardrums explode because of the interpretation of raw std data. I didn’t do anything horrendous to my system, so you should be safe. Emphasis being on should – I’ve not tested or researched any chances of damage.

Another fun one to play is

ls -l | aplay

in the home directory, especially if you installed lots of software that has config folders/files in the home directory.

This is a Tech Tip that really has no real application, it’s just fun.


One final thing to try if you suddenly become addicted to raw data musically represented

Run

ls -R | aplay

in your Documents directory and have fun listening to the ear-splitting screeches of your computer’s innards. Because the -R flag on ls recursively lists subdirectories within the currently directory, this command can go on for quite a while. Just a warning.

Ubuntu Tech Snippet #5 – Hear what terminal commands “sound” like

Advertisements
Tagged , , , ,

Tell us what you thought!

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: