Navigation

Navigation and listing.

File aliases/nav.sh. Disable: export ALIASX_DISABLE="nav"

Moving around

NameRunsWhat it does
..cd ..up one directory
...cd ../..up two directories
....cd ../../..up three directories
.....cd ../../../..up four directories
-cd -previous directory
homecd "$HOME"go to home directory
mkcd DIRcreate directory and enter it
example
$ mkcd projects/demo
(created and now inside projects/demo)
up [N]go up N directories (default 1)
example
$ up 2
(moved two folders up)
crootgo to the root of the current git repository
example
$ croot
(now at the repository root)

Listing

NameRunsWhat it does
lsls -F --group-directories-firstlist, folders marked with /
llls -F --group-directories-first -lhlong list
lals -F --group-directories-first -lAhlong list incl. hidden
lls -F --group-directories-first -Ccompact list
ldirsls -d -- */list only folders
lfilesls -p | grep -v /list only files
tree2tree -L 2tree, 2 levels
tree3tree -L 3tree, 3 levels