Navigation
Navigation and listing.
File aliases/nav.sh. Disable: export ALIASX_DISABLE="nav"
Moving around
| Name | Runs | What it does | |
|---|---|---|---|
.. | cd .. | up one directory | |
... | cd ../.. | up two directories | |
.... | cd ../../.. | up three directories | |
..... | cd ../../../.. | up four directories | |
- | cd - | previous directory | |
home | cd "$HOME" | go to home directory | |
mkcd DIR | create directory and enter itexample$ mkcd projects/demo
(created and now inside projects/demo) | ||
up [N] | go up N directories (default 1)example$ up 2
(moved two folders up) | ||
croot | go to the root of the current git repositoryexample$ croot
(now at the repository root) |
Listing
| Name | Runs | What it does | |
|---|---|---|---|
ls | ls -F --group-directories-first | list, folders marked with / | |
ll | ls -F --group-directories-first -lh | long list | |
la | ls -F --group-directories-first -lAh | long list incl. hidden | |
l | ls -F --group-directories-first -C | compact list | |
ldirs | ls -d -- */ | list only folders | |
lfiles | ls -p | grep -v / | list only files | |
tree2 | tree -L 2 | tree, 2 levels | |
tree3 | tree -L 3 | tree, 3 levels |