bashscripts's profile picture. Unix/Linux Systems Administrator

Dave Crouse

@bashscripts

Unix/Linux Systems Administrator

Need to copy a cd to an image, but dd isn't cutting it ? Try: cdrdao copy --source-device /dev/sr0 --keepimage


List ONLY the directories - bashrc file: alias dirs='ls -p | grep "/"'


#!/bin/bash # FILE : bbgallery - Visit bashscripts.org for more scripts. # Function: Creates a... fb.me/1C6YcXo6p


QUICK BACKUP FUNCTION: bu () {cp -i $1 ~/Backups/${1}-`date +%Y%m%d%H%M`.backup}


Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you... fb.me/1v8LbDWmy


Halt the system without using halt: echo 1 > /proc/sys/kernel/sysrq; echo o > /proc/sysrq-trigger


Bash Debugging: set -x; export PS4='$LINENO'


Sort files in a directory, largest to smallest: ls -l $* | sort -r -n +4 -5


Cleaning up cut-n-paste from mirc irc sessions. http://bit.ly/j8GWUl


#!/bin/bash # This script reads in a csv file and does stuff with the data line by line. # input =... http://fb.me/MwScQtOg


gpg --armor --comment "A COMMENT HERE" --no-options --output NAMEOFILE.gpg --symmetric NAMEOFFILE


calc () { echo "scale=4; $1" | bc ; }


@pbharristoo vimdiff <file1> <file2> -- nice as well :)


United States Trends

Loading...

Something went wrong.


Something went wrong.