488889
218
Zoom out
Zoom in
Previous page
1/284
Next page
FunctionWild Card
Matches exactly one arbitrary charac-
ter
?
Matches any number of characters
*
Matches one of the characters from
the group specied inside the square
[
set
]
brackets, which is represented here
by the string
set
.
17.6.1 Examples For Using History, Completion and Wildcards
The following examples illustrate how to make use of these convenient features of
Bash.
Procedure 17.6: Using History and Completion
If you already did the example Section 17.3.1, “Examples for Working with Files
and Directories” (page 197) your shell buer should be lled with commands which
you can retrieve using the history function.
1
Press [] repeatedly until cd ~ appears.
2 Press [Enter] to execute the command and to switch to your home directory.
By default, your home directory contains two subdirectories starting with the
same letter, Documents and Desktop.
3
Enter cd D and press [→|].
Nothing happens since Bash cannot identify to which one of the subdirectories
you want to change.
4 Press [→|] again to see the list of possible choices:
tux@knox:~> cd D Desktop/ Documents/ tux@knox:~> cd D
5 The prompt still shows your initial input. Type the next character of the subdi-
rectory you want to go to and press [→|] again.
Bash now completes the path.
6 You can now execute the command with [Enter].
206 Start-Up
218


Need help? Post your question in this forum.

Forumrules


Report abuse

Libble takes abuse of its services very seriously. We're committed to dealing with such abuse according to the laws in your country of residence. When you submit a report, we'll investigate it and take the appropriate action. We'll get back to you only if we require additional details or have more information to share.

Product:

For example, Anti-Semitic content, racist content, or material that could result in a violent physical act.

For example, a credit card number, a personal identification number, or an unlisted home address. Note that email addresses and full names are not considered private information.

Forumrules

To achieve meaningful questions, we apply the following rules:

Register

Register getting emails for Suse openSUSE 12.2 at:


You will receive an email to register for one or both of the options.


Get your user manual by e-mail

Enter your email address to receive the manual of Suse openSUSE 12.2 in the language / languages: English as an attachment in your email.

The manual is 14 mb in size.

 

You will receive the manual in your email within minutes. If you have not received an email, then probably have entered the wrong email address or your mailbox is too full. In addition, it may be that your ISP may have a maximum size for emails to receive.

Others manual(s) of Suse openSUSE 12.2

Suse openSUSE 12.2 User Manual - English - 530 pages


The manual is sent by email. Check your email

If you have not received an email with the manual within fifteen minutes, it may be that you have a entered a wrong email address or that your ISP has set a maximum size to receive email that is smaller than the size of the manual.

The email address you have provided is not correct.

Please check the email address and correct it.

Your question is posted on this page

Would you like to receive an email when new answers and questions are posted? Please enter your email address.



Info