Tag Archives: shell

How To Patch The Debian 6 Squeeze Shellshock Bug

devnet 2 Replies

debian-wallpaper-3

I run a few webservers at work that are internal facing only (intranet) that run Debian 6 Squeeze.  I’ve been monitoring the Shellshock exploit since it was discovered a few weeks ago and have been looking for a way to get those few systems patched…despite them existing only internally.  Patches for Squeeze-lts (long term release) were […]

Continue reading

Finding Files Modified in the Past Few Days

devnet 5 Replies

terminal_icon

It’s said that with age comes distinction and wisdom. If we believe that, then we’re talking about people and not files.  Working with older files doesn’t make you wise beyond your years…one could argue that it makes you a glutton for punishment :).  That doesn’t always have to be the case as we can solve […]

Continue reading

Finding Files with locate

devnet 10 Replies

Many Linux users use the ‘find’ utility when searching for files using the command line on their system. They’ll do a simple: Really though, the power of find isn’t just in finding names of files but rather specific details about those files. For example, if you wanted to find files which are writable by both […]

Continue reading

Convert PNG to GIF via Command Line

devnet 10 Replies

I installed a bare bones Arch Linux system today and took a screenshot.  With no graphics utilities installed, I needed a way to convert a PNG to a GIF for a Simple Machines forum template thumbnail.  I figured I’d use a command line utility to help me and ImageMagick is installed by default on most […]

Continue reading

Read & Display Single Line of a File

devnet 8 Replies

Sometimes when I’m troubleshooting a PHP error and a function is called in the debugger that gives me a line number of a file to look at, I want to know what that line says without opening up the file.  Using the command line, you can accomplish this in the following way: head -n 96 […]

Continue reading

Photo Albums in one shell command!

devnet 2 Replies

Managing photo albums with programs or flat files can be time consuming and tedious. However, there is an alternative. Through the use of Imagemagick and album, two fantastic programs, you can build your own photoalbum and even design your own skins utilizing CSS (cascading style sheets). I gave this tutorial a try and I had […]

Continue reading