CHAPTER 17 COOL (Anonymous web server) SHELL TRICKS Figure 17-1.
CHAPTER 17 COOL SHELL TRICKS Figure 17-1. Autocompletion makes using BASH much easier. Using Keyboard Shortcuts Your other good friends when using BASH are the Ctrl and Alt keys. These keys provide shortcuts to vital command-line shell functions. They also let you work more efficiently when typing by providing what most programs call keyboard shortcuts. Shortcuts for Working in BASH Table 17-1 lists the most common keyboard shortcuts in BASH (there are many more; see BASH s man page for details). If you ve explored the Emacs text editor, you might find these shortcuts familiar. Such keyboard shortcuts are largely the same across many of the software packages that originate from the GNU Project. Often, you ll find an option within many Ubuntu software packages that lets you use Emacs-style navigation, in which case, these keyboard shortcuts will most likely work equally well. Table 17-1. Keyboard Shortcuts in BASH Shortcut Description Navigation Left/right cursor key Move left/right in text Ctrl+A Move to beginning of line Ctrl+E Move to end of line Ctrl+right arrow Move forward one word Ctrl+left arrow Move left one word