Linux: rename or change extension of multiple files

Posted About 13 years ago by Arne Hartherz.

When you need to bulk rename files you can not call "mv *.foo *.bar" to change the extension of all...

Show the name and version of your Linux distribution

Posted About 13 years ago by Henning Koch.
cyberciti.biz

To list the name and version of your Linux distribution, type the following: cat /etc/*-release

babushka: test-driven sysadmin

Posted About 13 years ago by Lexy.
babushka.me

The idea is this: you take a job that you'd rather not do manually, and describe it to babushka...

Allow a user to run a single command with root privileges

Posted Over 13 years ago by Thomas Eisenbarth.

It's that simple to allow one of your Linux users to run a single command as UID 0:

Shell script to clean up a project directory

Posted Over 13 years ago by Arne Hartherz.

Call geordi clean from a project root to remove unused and unnecessary files inside it. This script is part of...

Installing Nokogiri

Posted Over 13 years ago by Lexy.
nokogiri.org

Because Nokogiri needs to be compiled and dynamically linked against both libxml2 and libxslt, it has gained a reputation for...

Install gems for all bundled projects

Posted Over 13 years ago by Arne Hartherz.

This is a bash script for those of you who need to install all gems for all projects (e.g. to...

Bash Cheat Sheet (standard Emacs mode)

Posted Over 13 years ago by Arne Hartherz.
skorks.com

Ctrl + R Search commands you entered previously. Press Ctrl + R again to search further back, Ctrl + Shift + R searches forward...

Shell script to quickly switch Apache sites

Posted Over 13 years ago by Arne Hartherz.

I prefer the application that I'm currently working on to be reachable at http://localhost/. So when I switch...

An obscure kernel feature to get more info about dying processes

Posted Over 13 years ago by Lexy.
timetobleed.com

This post will describe how I stumbled upon a code path in the Linux kernel which allows external programs to...

Kill a dead SSH shell

Posted Over 13 years ago by Tobias Kraze.

If a SSH shell dies (from timeout for example), you cannot kill it with the usual CTRL-C or CTRL...

Sun Java JVM/JRE on Ubuntu Linux

Posted Over 13 years ago by Thomas Eisenbarth.

Note that you should disable the Java plug-in in your browsers after installation. Ubuntu >= 12.04 Java 11

Find files modified since a given timestamp

Posted Over 13 years ago by Arne Hartherz.

If you need to find all files inside a directory that were modified in the last 24 hours you can...

Recursively remove unnecessary executable-flags

Posted Over 13 years ago by Arne Hartherz.

Sometimes files attain executable-flags that they do not need, e.g. when your Windows VM copies them over a Samba...

Linux: create a symbolic link

Posted Over 13 years ago.

You may omit the /path/to/link_name to have a link with the same filename appear in the current directory

Task Switch in Linux Console

Posted Over 13 years ago.

To pause and send a task to the background ctrl+z to reactivate the task fg to run task in...

Change default size of Gnome terminal

Posted Over 13 years ago by Henning Koch.

Open the configuration file: gksudo gedit /usr/share/vte/termcap/xterm Find a line like this: :co#80:it#8:li#24:\

Count files in a folder

Posted Over 13 years ago by Henning Koch.

From the shell: ls -l | wc -l

Fix PNG colors in IE, old Safaris and new Firefoxes

Posted Over 13 years ago by Arne Hartherz.
morris-photographics.com

Some browsers render PNG images with color profiles and other shenanigans, some don't. The cleanest way to have consistent...

Show the current Git branch on your Bash prompt

Posted Over 13 years ago.

Append this to your ~/.bashrc: export PS1='\[\033[01;32m\]\h\[\033[01;34m\] \w\[\033[31m\]$(__git_ps1 "(%s...

Connecting to MSSQL with Ruby on Ubuntu - lambie.org

Posted About 15 years ago by Lexy.
lambie.org

I’m working on a problem for a client which involves connecting to a Microsoft SQL Server 2005 database from...

Testing with IE6, IE7 and IE8 on VirtualBox | Shape Shed

Posted Over 14 years ago by Lexy.
shapeshed.com

I've recently moved from using Parallels for browser testing to Sun's Open Source VirtualBox. Here's a walkthrough...

Highlight your prompt on production machines

Posted About 14 years ago by Lexy.
gem-session.com

Next in our series on not shooting yourself in the foot: Doing a sudo shutdown -h now on the main...

Creating Filesystems with Ruby and FUSE

Posted Almost 14 years ago by Lexy.
debian-administration.org

The FUSE project allows you to create filesystems in userspace - which means you can create a filesystem without having to...