====== Shell: ls ====== \\ sort files by time ls -lt sort files by size ls -lS directory seen as standard file ls -ld # ls -ld /bin drwxr-xr-x 2 root wheel 1024 Nov 22 15:45 /bin # ls -ld /* -r--r--r-- 1 root wheel 6197 Nov 22 15:45 /COPYRIGHT drwxr-xr-x 2 root wheel 1024 Nov 22 15:45 /bin drwxr-xr-x 9 root wheel 1536 Nov 22 15:56 /boot dr-xr-xr-x 11 root wheel 512 Nov 22 16:56 /dev -rw------- 1 root wheel 4096 Nov 22 15:56 /entropy drwxr-xr-x 27 root wheel 2560 Nov 29 07:18 /etc lrwxr-xr-x 1 root wheel 8 Oct 28 2015 /home -> usr/home drwxr-xr-x 4 root wheel 1536 Nov 22 15:54 /lib drwxr-xr-x 3 root wheel 512 Nov 22 15:45 /libexec [...] we can add to /etc/csh.cshrc alias ls ls -k # long list alias ll ls -lah alias dir ls -lah # sort by size alias ll-s ls -Sl # sort by time alias ll-t ls -lt # show dirs as file alias ll-d ls -ld setenv CLICOLOR use -r for reverse sort, es: ls -lSr ---\\ return to gimbo wiki [[:start|home page]]~~NOCACHE~~