50
Using the backslash (
asterisk, but you are instead looking for a file with an asterisk in the name.
If the file is called
sneak*.txt
sneak\*.txt
Here is a brief list of wildcards and regular expressions:
— Matches all characters
•
*
— Matches one character
•
?
— Matches the * character
•
\*
— Matches the ? character
•
\?
— Matches the ) character
•
\)
4.3.4.5. Useful Keystrokes
While working from the command line, there are a few useful keystrokes that can help you with your
session.
The following keystrokes are useful shortcuts at a shell prompt.
Keystroke
[Ctrl]-[K]
[Ctrl]-[D]
[Ctrl]-[R]
[Ctrl]-[Z]
[Ctrl]-[C]
[Ctrl]-[L]
Table 4-1. Useful shell prompt keystrokes
4.3.4.6. Clearing and Resetting the Terminal
The terminal window begins to look crowded very quickly. You can always exit from the terminal
window and open a new one, but there is a quicker and easier way to remove the contents displayed
in the terminal.
To clear the terminal, enter the command
terminal, leaving only a new shell prompt at the top of the window.
You can also clear the screen using the keystroke [Ctrl]-[L].
), you can specify that you do not want to search out everything by using the
\
, type:
Action
While editing a command on the command line, this key combination
deletes everything that has been typed in from the cursor's current
position forward.
Pressing this key combination once ends the current application or
process. Pressing it twice exits the shell.
At the command line, [Ctrl]-[R] searches through the command history to
find the entry that starts with the letters you type.
Suspends the current application. Entering bg after [Ctrl]-[Z] causes a
program to run in the background.
"Kills" a program. This should be a last resort. Try stopping a program
with other methods first.
Clears the terminal window.
clear
Chapter 4. Shell Prompt Basics
at the shell prompt. The
command clears the
clear
Need help?
Do you have a question about the ENTERPRISE LINUX 4 - STEP BY STEP GUIDE and is the answer not in the manual?
Questions and answers