5 August 2012 0 Likes 0 Comments
Terminal Change File Permission Recursively

sudo chown -R username file

28 July 2012 0 Likes 0 Comments
Restart PHP Server Lion

sudo apachectl restart

20 July 2012 0 Likes 0 Comments
Get Only IP Address From Terminal

ifconfig | grep “inet ” | grep -v 127.0.0.1 | cut -d’ ’  -f2

1 June 2012 0 Likes 0 Comments
Open folder from Terminal

open . /path/to/open

10 May 2012 0 Likes 0 Comments
SSH: Add SSH Key to SSH Agent

ssh-add ~/.ssh/id_rsa

10 May 2012 0 Likes 0 Comments
Terminal: Delete File

sudo rm –f [file]

10 May 2012 0 Likes 0 Comments
Terminal: Update PATH

export PATH=newPath/stuff/stuff:anotherPath/stuff/stuff

10 May 2012 0 Likes 0 Comments
Terminal: Change User Name

If you have a user that doesn’t appear under users and groups (e.g. jenkins) you could change them as follows

sudo dscl . -change /Users/_jenkins RecordName jenkins jenkinsNewName

8 May 2012 0 Likes 0 Comments
Get Architecture for Binary in Terminal

file [file]

11 February 2012 0 Likes 0 Comments
Terminal Permission Denied

Tried to do something and you weren’t allowed in Terminal?

Try “sudo [the command you wanted]”

This basically says “super user do” [command] where super user is root, which is a level above an Admin.

10 December 2011 11 Likes 0 Comments
Show all hidden UNIX files in finder

defaults write com.apple.Finder AppleShowAllFiles YES

2 November 2011 7 Likes 0 Comments
Autocomplete in Terminal MacOSX

If you are trying to use autocomplete in Terminal and are hearing the annoying ‘Bonk’ noise constantly you should probably be aware that the autocomplete is CASE SENSITIVE. See, now it’s working for you isn’t it.