Miscellaneous
  Home arrow Miscellaneous arrow Page 5 - 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

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

    Table of Contents:
  • UNIX File Systems
  • File Types
  • The File System and Important Directories
  • Working with Directories and Files
  • Devices

  • 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


    UNIX File Systems - Devices


    (Page 5 of 5 )

    In the section on file types, I talked about devices. Now it is time to take a more detailed look at them. You can find all of the devices inside the /dev directory. There are three types of devices. Block devices are the physical ones, like a hard drive or a partition. Character devices contain only a character stream, like the terminal.

    Finally, there are pseudo devices. This are not proper devices; they just act like them. One example is /dev/null, which will "eat up" whatever data you throw at it. This is perfect if you want to throw away some text. Just send it to this device and you will never see it again.

    A good example of the character device is the /dev/console. As for the block devices, their names are built upon the following rule. The first letter signals the type of the connection. With a hard drive, this is h, or for a device connecting through the serial IDE or SCSI, the letter is s. This is followed by the letter d. The third letter will represent the number of the device, and letters are used.

    If you have two devices the, first is a, while the second is b, and so on. At the end of the named device is the number of the partition. Therefore, the /dev/hda1 will point to the first hard drive, and for that, the first partition. The /dev/sdb4 points to the second device, connecting through the serial IDE or SCSI, and on that, the fourth partition.

    This will be all for today. Next week we will continue with the right management system, and afterward we will return to file systems and learn even more. There is much more to know, so make sure you do not miss it. If you read my article you can also rate it and put up any questions you may have here on the blog. Thank you for your attention and 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.

       · Good article; clear, simple, kind of beautiful!One error: In section 4, "Working...
       · Why do you say that Windows NT is object-based filesystem, and NOT hierarchical like...
     

    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 3 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek