Prev | Current Page 181 | Next

Christopher Negus

"Linux Bible, 2008 Edition: Boot up to Ubuntu, Fedora, KNOPPIX, Debian, openSUSE, and 11 Other Distributions"


Ctrl+U Cut beginning of line Cut text to the beginning of the line.
Ctrl+W Cut previous word Cut the word located behind the cursor.
Alt+D Cut next word Cut the word following the cursor.
Ctrl+Y Paste recent text Paste most recently cut text.
Alt+Y Paste earlier text Rotate back to previously cut text and paste it.
Ctrl+C Delete whole line Delete the entire line.
Command-Line Completion
To save you a few keystrokes, the bash shell offers several different ways of completing partially
typed values. To attempt to complete a value, type the first few characters, and then press Tab.
Here are some of the values you can type partially:
 Environment variable??”If the text you type begins with a dollar sign ($), the shell
completes the text with an environment variable from the current shell.
 Username??”If the text you type begins with a tilde (~), the shell completes the text with
a username.
 Command, alias, or function??”If the text you type begins with regular characters, the
shell tries to complete the text with a command, alias, or function name.
 Hostname??”If the text you type begins with an at (@) sign, the shell completes the text
with a hostname taken from the /etc/hosts file.
To add hostnames from an additional file, you can set the HOSTFILE variable to the
name of that file.


Pages:
169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193