Tips

Tip. Information for most commands is found using the options -h or --help.

ls --help

Tip. Use the up arrow to access recently used commands.

Tip. Use history to view recently used commands. Run a command in this list with !<num>, where <num> is its index in this list.

Tip. Use !<cmd> to run the most recently used line that started with the command <cmd>. And, use !<cmd>:p to preview it.

grep -ri pattern

!grep # Rerun `grep -ri pattern`

Tip. Use the tab key to automatically complete commands. This will complete the command or file name if it is unique. If it is not unique, then it will show a list of possible completions.

Completion in the shell.

Tip. Try Starship Prompt.

Tip. Try VIM or another terminal editor for quick edits.

Tip. Use ** to match any directory depth. If this is not setup by default, add shopt -s globstar to the file ~/.bashrc.

Tip. Make and use keyboard shortcuts to make and navigate between tabs in the shell.