Getting to Know Your Command Line Usage
I like this a lot. At least so much that I saved it to CodeBox.
UPDATE:
Here is my top 15:
I’m posting 15 because which
is actually one of my favorites. It tells you where a program is on your system.
Other notable commands (some are bash functions from .profile
)
ll
:alias ll='ls -la'
cdf
: short for “cd
Finder”.cd
's to Finder's frontmost folder.
function ff {
osascript -e 'tell application "Finder"'\
-e "if (${1-1} <= (count Finder windows)) then"\
-e "get POSIX path of (target of window ${1-1} as alias)"\
-e 'else' -e 'get POSIX path of (desktop as alias)'\
-e 'end if' -e 'end tell';
}
function cdf { cd "`ff $@`"; };