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 -...