linux

User Login

User Name
Password
   
Forgot Password                  Sign Up

What's up ?

We value your feedbacks,ideas and your articles.Please navigate to the following links.

  • Feedback
  • I have an Idea
  • Advertise
  • The Article

    Would you like to post an article on this web site, then please navigaet here to do that.

    Submit an article

    Newletter SignUp

    Please register to receive a Newsletter.

    Register Here

    Linux Wildcard Characters

    Wildcards are place holders used to allow users to search for or use multiple files with similar names. The subject of wildcards is part of the larger subject of regular expressions in linux. Two of the most common wildcards are "*" and "?".

    The asterisk, "*", represents any character or string of characters. The entry a*.txt could refer to apple.txt as well as array.txt.

    The question mark represents a single character. The entry a?.txt could refer to ab.txt and ab.txt, but not array.txt.

    For example, to find a file called "sneaksomething.txt," enter: ls sneak*.txt

    The linux shell lists every file that matches that pattern: sneakers.txt

    Regular expressions are more complex than the straightforward asterisk or question mark.

    Here are wildcards and regular expressions:

    * — Matches all characters

    ? — Matches one character

    \* — Matches the * character

    \? — Matches the ? character

    \) — Matches the ) character