You are on page 1of 1

tools lists http://kkovacs.eu/cool-but-obscure-unix-tools #rename file, add suffix mv deploymentSteps{,.txt} more: http://stackoverflow.com/questions/208181/how-to-rename-with-prefix-suffix #create/move to dir from http://unix.stackexchange.

com/questions/48951/create-and-move-to-a-director y-in-one-command-unix If you use Bash you can do: mkdir path/to/myfolder cd $_ The special variable $_ expands to the last parameter of the last command. Becau se of this it only works if you type it directly afterwards. See here for more information: http://www.gnu.org/software/bash/manual/bashref.h tml#Special-Parameters !$ does the same thing. # find/grep string in files find . -type f -exec grep -l "Betamax" {} \; # find in this dir, don't recurse find . -maxdepth 1 -type l # find by filename find . -type f -print | grep -i 'trip' find ./ -iname "*.sql" ##################################### DB commands ##################################### #sql db from zip sudo gunzip -c caw.sql.gz | mysql -u<user> -p<password> <database_name> #list DBs show databases; #create database # use <db_name>;

You might also like