Alias für ls Kommando unter Mac OS X

Um die Ausgabe des ls Kommandos unter Mac OS X etwas übersichtlicher zu machen, kann in die Shell-Konfigurationsdatei .profile (im Benutzerverzeichnis) oder in die Datei /etc/bashrc folgendes eingetragen werden:

 # custom ls commands
 # f = no sorting
 # G = colorize output
 # h = human readable
 alias ll="ls -lhfG"
 alias la="ls -lahfG"

Für die Anpassung der bashrc werden Administratorenrechte benötigt.

Kategorie: