Command-line Fu (clf) group
Notices
-
Quickly invert/negate with ImageMagick: http://www.imagemagick.org/Usage/color_mods/#color-matrix (replace `rose:' with your image)! !shell
about 3 months ago from web -
Timer with sound alarm: $ say(){ mplayer -user-agent Mozilla "http://translate.google.com/translate_t... http://tinyurl.com/3j589o6 !clf
-
Timer with sound alarm: $ sleep 3s && espeak "wake up, you bastard" 2>/dev/null I'd prefer this one, ... http://tinyurl.com/42x47q7 !clf
-
Concating pdf files: $ pdftk inp1.pdf inp2.pdf inp3.pdf cat output out.pdf View this command to comm... http://tinyurl.com/3krontk !clf
-
Timer with sound alarm: $ sleep 15m; yes > /dev/dsp Just replace 15m with desired time. no suffix or ... http://tinyurl.com/3cfkogo !clf
- Narendra Sisodiya repeated this.
-
Find out current working directory of a process: $ eval ls -l /proc/{$(pgrep -d, COMMAND)}/cwd This i... http://tinyurl.com/3cvdpge !clf
-
GRUB2: set Super Mario as startup tune: $ echo "GRUB_INIT_TUNE=\"1000 334 1 334 1 0 1 334 1 0 1 261 1... http://tinyurl.com/44czwnl !clf
-
GRUB2: set Super Mario as startup tune: $ echo "GRUB_INIT_TUNE=\"1000 334 1 334 1 0 1 334 1 0 1 261 1... http://tinyurl.com/44czwnl !clf
-
df without line wrap on long FS name: $ df -P | column -t -P uses the POSIX output format, which make... http://tinyurl.com/45y4bru !clf
-
Find broken symlinks: $ find -L . -type l View this command to comment, vote or add to favourites ... http://tinyurl.com/6kcresn !clf
-
Indent a one-liner.: $ type <function name> Bash builtin type also indents the function. View this co... http://tinyurl.com/3hklgv6 !clf
-
clear screen, keep prompt at eye-level (faster than clear(1), tput cl, etc.): $ c() printf "\33[2J" t... http://tinyurl.com/3kc3d3c !clf
-
Create a 5 MB blank file via a seek hole: $ dd if=/dev/zero of=testfile.seek seek=5242879 bs=1 count=... http://tinyurl.com/3zcs23w !clf
-
Load average + API google chart: $ limite="5";load5=$(awk '{print $1}' /proc/loadavg);echo "http://ch... http://tinyurl.com/3jckaoa !clf
-
monitor a tail -f command with multiple processes: $ tail -f somefile |tee >(grep --line-buffered '1'... http://tinyurl.com/3mqq4b6 !clf
-
Load average + API google chart: $ limite="5";load5=$(awk '{print $1}' /proc/loadavg);echo "http://ch... http://tinyurl.com/3jckaoa !clf
-
Given: Sorted-but-may-have-gaps "YYYY-MM-DD HH:MM <data>" lines in log file. Find all lines between two dates. #clchallenge !clu !clf
Monday, 04-Apr-11 09:56:03 UTC from web -
mirrors directory to a ftp server: $ lftp -ulogin,passwd -e "mirror --reverse /my/from/dir/ /ftp/targ... http://tinyurl.com/3dswmpy !clf
-
$ java -jar /path/to/filename.jar http://mcaf.ee/2eb35 Launch a Java .jar App !clf
Friday, 01-Apr-11 10:03:30 UTC from web -
Poor's man Matrix script: $ while (true) ; do pwgen 1 ; done This creates a matrix of letters that ru... http://tinyurl.com/4pgptru !clf