Writers' Community!
Home Page Two Columnists Submit an Article FAQs Contact Author Login
Article Submission
We Need YOUR Articles!
We'll Promote Them for FREE!

Author Login

New Authors
Register Here


Now Serving 5,557 Authors
50,508 Quality Articles
& 3,680 Current Users Online!
Featured Authors
David Pekrul (972)
Robert Melaccio, Sr. (6,253)
Nicole Beurkens (184)
Mogama (11,388)
Jane Bullard (3,855)
Terry Mitchell (2,643)
Susan Thom (9,047)
Rodney Biamby (90)
Michael Ramzy (156)
Aaron Taylor (1,129)
Ronyae (1,286)
Joel Hendon (10,717)
Mike Fak (9,928)
Joel Hirschhorn (857)

View All Featured Authors
Most Recent
How to Set Up an Email through Microsoft Outlook

Microsoft Exchange Server Is It Right for You?

Microsoft Exchange to Email or Not to Email?

Learn more about Microsoft Dynamics CRM

Various Types of CRM Packages

An Overview of CRM Packages

An Introduction to Microsoft Dynamics CRM

Reasons why Microsoft CRM is the solution for my business?

How to improve quality Mp3 and Wav files

Who should attend an Excel VBA Programming class

Home » Categories » Computers & Networking » Software » Easy Linux Training for New Linux Users - Linux Tips on How to Use Linux Command "Patterns" » Printer Friendly

Clyde Boom

Easy Linux Training for New Linux Users - Linux Tips on How to Use Linux Command "Patterns"

Rated 3.5 out of 5
No Reader Ratings Available ?
Rate It  /  View Comments  /  View All Articles submitted by Clyde Boom
Submitted Thursday, May 03, 2007
Clyde Boom (2,970)
Clyde Boom

Lancom Technologies
Log in to become a member of Clyde Boom's Fan Club!


Linux GUI utilities provide an easy "point-and-click" method of doing Linux administration tasks, but they are time-consuming and awkward to use. You can run a simple Linux command to do the equivalent task in a fraction of the time it would take to use a Linux GUI utility.

When you get Linux training, be sure that it is focused on how to use Linux commands. Also, if you are interested in getting Linux certification, you need to know how to use Linux commands to be able to pass, not Linux GUI utilities.

Linux Tips - How to Use Linux "Patterns" (Linux Wildcard characters)

Some Linux documentation uses the term "pattern" to refer to Linux wildcard characters.

Wildcard characters are used in a "pattern" to cause a Linux command to work on multiple items, such as multiple directories and files in the Linux file system.

The two Linux wildcard characters are the * (asterisk) and ? (question mark).

Using an * (asterisk) with a Linux Command

An * (asterisk) is used in a pattern to represent "all" characters of an item (directory or file).

The Linux command below shows an example of the using the cp (copy) command to copy all (because of the * without any other letters or numbers) files in the current directory into the directory named memos.

     ]#   cp  *  memos

Linux Tips: Keep in mind that Linux commands are "case sensitive". Always type the letters in upper or lower case, as shown.

Linux Tips: Also, be sure to use spaces where they are shown. For example, in the Linux command above, you need a space (just a single space) between cp and the * and you need a single space between the * and memos.

The * (Linux wildcard character) can be combined with one or more letters at the front of it or after it.

The following Linux command is an example of the using the cp (copy) command to copy all files in the current directory beginning with the letter r into the directory named memos.

     ]#   cp  r*  reports

The Linux command below copies all files ending in "sxw" into the directory named weekly.

     ]#   cp  *.sxw  weekly

The next Linux command copies all files containing "mem" (anywhere in the file name) into the directory named monthly.

     ]#   cp  *mem*  monthly

Using a ? (question mark) with a Linux Command

The ? (question mark) is used in a pattern to represent a single character.

The Linux command below shows an example of the using the mv (move) command to move files that have a single character and end in "cfg" into the directory named june.

     ]#   mv  ?.cfg  june

The following Linux command moves all files beginning with "month", and having two characters after "month", and ending in "sxw", into the folder named years.

     ]#   mv  month??.sxw  years

To learn how to use Linux commands the easy way, you can watch Linux video tutorials. When you work with Linux videos, you can actually see Linux commands being run and hear a detailed description of why you need to run a certain Linux command.

Another benefit is that you can also see the output of the Linux command and hear a description of what the output means.

After seeing how to use Linux commands, you can run them yourself - to get practical Linux training.


Watch Free Sample I Learn Linux Video Tutorials now at http://www.iLearnLinux.com and get over the steep Linux learning curve.

Sign up for Free I Learn Linux News to receive technical tips, info on new video samples and important updates on Linux (swa).

Clyde Boom, Author and Expert Trainer with 20+ Years of Training Successes. Explains intricate technical matters in an easy-to-understand, non-technical manner, with tens of thousands of software and hardware learners into masters.






Reprint Rights

Log in to become a member of Clyde Boom's Fan Club!

Comments on this article:
No comments yet.


Was this article helpful to you? Leave a Public Comment or Question:

 

This Article has been viewed 226 times.
Article added to SearchWarp.com on Thursday, May 03, 2007
View other articles written by Clyde Boom (2,970)
Clyde Boom

Subscribe to 'I Learn Linux News'


If you found this article interesting, you may want to check out:

Disclaimer:  All information on this site is provided for informational purposes only! By no means is any information presented herein intended to substitute for the advice provided to you by any health care or other professional or organization.


Today's Most Popular
Improve PC Performance - 6 Tips You Must Know.

How To Export A Microsoft Access Report as a PDF

Multiversion Concurrency Control (MVCC)- How PostgreSQL attain data consistency

Linux Commands Tutorials - Using the ls Command with Examples of Options - A Hands-On Tutorial Help

Internet Explorer 7 (IE7) As a Ftp Client-Does Not Work

Lenticular and Holograms 3D Printing Software Buzz

What's the Best Background Check Company?

Recover Deleted Email Messages in Vista Windows Mail

What's the Best Background Check Software?

Beneifts of ERP Software in Garment and Apparel Industry

Home  |  Page Two  |  FAQ's  |  Contact  |  Terms of Service  |  Article Submission Guidelines  |  Writers' Contests  |  Privacy  |  Mission / About
Copyright © 1999-2009 SearchWarp.com, All Rights Reserved - SearchWarp.com is an IcoLogic, Inc. Company