Showing posts with label macosx. Show all posts
Showing posts with label macosx. Show all posts

Friday, May 28, 2010

MAC OS X pgup, pgdn, home and end

In MBP keyboard there is no pgup, pgdn, home and end key.
but there is an alternative to do that.

pgdn in shell -> fn+shift+down arrow
pgup in shell -> fn+shift+up arrow
home in shell -> fn+shift+left arrow
end in shell -> fn+shift+right arrow

pgdn gui -> command+down arrow
pgup gui -> command+up arrow
home gui -> command+left arrow
home gui ->command+right arrow

Tuesday, May 18, 2010

how to uninstall Xcode

to uninstall xcode from mac run this command in terminal:

$sudo /Developer/Library/uninstall-devtools --mode=all

Thursday, May 13, 2010

mac 'ls' color output

ls command output is not colored in mac os x by default
to color it fellow this simple steps:

1. there is a file in home folder named .profile
2. open it using nano or pico
3. append this line : alias ls="ls -G"
4. restart terminal and its done :)

list open ports and unix sockets

To do this I use netstat command to list all open ports: $ sudo netstat -tuplen to list open ports and unix sockets: $ sudo netstat -...