Tricks and Shortcuts

Overview

Teaching: 10 min
Exercises: 0 min
Questions
  • How can I do things more quickly?

Objectives
  • Now few tricks and shortcut to do things faster

Sometimes it can be boring to type again and again the same command or we don’t remember the command we use before, bash offers a lot of shortcuts to increase the way we work.

Find and reuse previous command

By pressing the arrow "up" on your keyboard you can navigate through the history of bash and find/reuse previous command.

Stop a command

By pressing Ctrl-c it will stop the running command and give you access to the command line.

Autocomplete

You can autocomplete command, path, filename … by pressing Tab, Bash will autocomplete what it can find.

Keyboard shortcut

If you want to find more : Bash Tricks and : Keyboad Shortcuts

Key Points

  • Arrow up will scroll through command history

  • Pressing Tab will autocomplete

  • Ctrl-c stops the running command