Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Features

Built-in commands

CommandDescription
cd [dir]Change directory (defaults to home)
pwdPrint working directory
echo [args...]Print arguments
export VAR=valueSet environment variable
unset VARRemove environment variable
source fileExecute commands from file
type cmdShow command type (builtin or path)
historyShow command history
exit [code]Exit the shell

Pipes

Commands can be piped together:

ls -la | grep ".rs" | sort
cat file.txt | wc -l

Aliases

Define aliases in your config file:

[aliases]
ll = "ls -la"
gs = "git status"

Variable expansion

export NAME=world
echo "hello $NAME"
echo "path is ${HOME}/bin"

Glob expansion

ls *.txt
cat src/**/*.rs