Mission Statement

Linux was made to be free and open. Linux was made to be free and open. The idea is, an individual working with a piece of software should be allowed to view, edit, and share its source code without legal consequence. The free software Movement was largely the brainchild of Richard Stallman. Having been a […]

The best AWK one-liners

The best AWK one-liners I love perl and I use it for most scripts but nothing beats awk on the commandline. Print selected fields Split up the lines of the file file.txt with “:” (colon) separated fields and print the second field ($2) of each line: awk -F”:” ‘{print $2}’ file.txt Same as above but […]

How to roll back to a patched server to an earlier patch level

How to roll back to a patched server to an earlier patch level 1.) Edit the /etc/grub.conf file to make the kernel boot to an eariler kernel. Inside of /etc/grub.conf, file the line “default=0” and change to “default=1” #vi /etc/grub.conf Change: default=0 To: default=1 <save and quit> 2.) Reboot the server so you can boot […]

How to kill processes holding up a File system

How to kill processes holding up a File system To check all processes running on a file system. #fuser -vm <File system> To kill all processes running on a file system #ps -lf -p $(fuser -c <File System> 2> /dev/null) | awk ‘{ print $4 }’ | xargs kill