Miscellaneous
  Home arrow Miscellaneous arrow Page 5 - In Detail: UNIX File Systems
Codewalker Forums 
  Tutorials  
Database Articles  
Miscellaneous  
Navigation Usability  
PEAR Articles  
Programming Basics  
Server Administration  
XML Tutorials  
  Reviews  
Database Book Reviews  
Linux Book Reviews  
Miscellaneous Reviews  
PHP Book Reviews  
PHP Software Reviews  
Server Admin Reviews  
SQL Tool Reviews  
  Code Gallery  
Content Management Code  
Contest Code  
Counters Code  
Database Code  
Date Time Code  
Discussion Board Code  
Email Code  
File Manipulation Code  
GUI Code  
Link Farm Code  
Miscellaneous Code  
Search Code  
Site Navigation Code  
User Management Code  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Download TestComplete 
Forums Sitemap 
Weekly Newsletter 
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
MISCELLANEOUS

In Detail: UNIX File Systems
By: Gabor Bernat
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 3
    2009-04-01

    Table of Contents:
  • In Detail: UNIX File Systems
  • Mounting file systems
  • Links in UNIX
  • The standard files and directions
  • File names on the shell command line

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    In Detail: UNIX File Systems - File names on the shell command line


    (Page 5 of 5 )

     

    On the command line, we can select or generalize the file names to which we refer. We can achieve this with the help of the fact that some characters mean other things to the shell than what they mean on their own. These are meta-characters.  

    For example, the * represents every file and directory inside the current working directory. Of course, we can use it in combination with other characters also. We can represent a single character with the question mark or form a group of letters with the [] syntax. Inside the [] we can enumerate the characters or add a sequence of characters, like from a to z with the a-z syntax.  

    #print back all the files content

    cat *

     

    #print back the content of all txt files

    cat *.txt

     

    #print the content of all files containing a single character

    cat ?

     

    #print the content of files with a single letter

    cat [a-z]

     

    #print the content of files with a single digit

    cat [0-9]

     

    #print the content of files with name a.txt,b.xt or c.txt

    cat [abc].txt

    If inside the file there are meta-characters such as an empty space, we can use them by adding a before them.  

    # print e content of UNIX File System * file.

    cat echo UNIX File System *

    With this, we've reached the end of my articles about the UNIX file system. Now you should know enough to understand how files work and you should be able to use the capabilities offered by it to your advantage. Thank you for reading my article and I would also like to ask you to rate it. If you have any questions, do not hesitate to ask them here on the blog, I will answer gladly. Next week I will continue with the UNIX shell so make sure you come back if you are interested. Live With Passion!


    DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

     

    MISCELLANEOUS ARTICLES

    - Using PHP to Stream MP3 Files and Prevent Il...
    - 10 Must Have Firefox Improvements
    - All About OpenOffice 3.0
    - Shell Script Writing
    - Loops in the UNIX Shell
    - The Test in the UNIX Shell
    - Data Streams and the UNIX Shell
    - Control Mechanisms of the UNIX Shell
    - Variables Within the UNIX Shell
    - The Shell and UNIX
    - In Detail: UNIX File Systems
    - Rights Management in UNIX
    - UNIX File Systems
    - The Terminal in UNIX
    - Operating Systems and UNIX





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 1 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek