Posts Tagged With: bash

Generate Password

Tagged with: , , , , ,

Command to generate a random password…


openssl rand -base64 6
No Comments »

Watch for Ubuntu 9.10 Launch

Tagged with: , , , , , , ,

This script will run check for ubuntu launch once every 5 mins and let you know if there is an launch.


while [ 1 ]; do if [ -z "`curl -I "http://cdimage.ubuntu.com/releases/9.10/release/"|grep "404"`" ]; then kdialog --msgbox "9.10 Released"; exit; fi; sleep 300;  done
2 Comments »

help command

Tagged with: , , , , ,

Use the help command to get information on built in command…


help alias
No Comments »

env – Shell/Envionment Variables

Tagged with: , , , , , ,

Show all the variables in the shell.


env
No Comments »

Run a Command if Another Command Succeeds

Tagged with: , , , , , , ,

This will let you run a linux command based on the success of anther command. Note: This will only work in bash shell.


ruby Create_PDF.rb && if [ $? == 0 ]; then kpdf report.pdf; fi 
No Comments »

Remove CVS Information from a Folder

Tagged with: , , , , , ,

find -name CVS -exec rm -rf {} \;

NOTE: Works only with bash

No Comments »