Results 1 to 4 of 4

Thread: everything is as file in linux???

  1. #1

    everything is as file in linux???

    what does it means when they say eveything in the linux is considered as file.
    specially i am talking about the device(pcimci card etc.)
    can anyone tell me how this files are associated with all this things
    bye
    bhupee

  2. #2

    Re:everything is as file in linux???

    Everything under linux is accessed as if it was a file.
    There is no gegistry, like in windows, to keep track of things.
    For example, the first master hard disk under linux is accessed by accessing the file /dev/hda. the first partition under this drive is accessed by accessing /dev/hda1.
    My scanner can be accesed under /proc/bus/usb/002/002.
    The information of my cpu can be accessed by accesing /proc/cpuinfo.
    Application settings are kept in files (no registry.)
    And so on.

  3. #3

    Re:everything is as file in linux???


  4. #4

    Re:everything is as file in linux???

    Are you familiar with the concept of memory-mapped I/O? It means that all devices, all input, all output...everything, is accessed as a file somewhere. For example, my hard drive is represented as /dev/hda. I can access it with the "mount" command. When I want to plug in my mp3 player and access it, I issue a "mount /dev/sda1 /mnt/lyra" and that makes /mnt/lyra my access point to my mp3 player (/dev/sda1 being the file that corresponds to the mp3 player). "umount /mnt/lyra" will make it safe to unplug the mp3 player again.

Similar Threads

  1. trouble with Apache File Permissions Script
    By Ed McCorduck in forum Programming
    Replies: 13
    Last Post: 03-13-2010, 10:17 AM
  2. does linux support music, file sharing, etc.
    By julieashley in forum Linux - Software, Applications & Programming
    Replies: 4
    Last Post: 04-04-2003, 03:57 PM
  3. Preorder your Linux for PS2 now!
    By rick420 in forum Linux - General Topics
    Replies: 4
    Last Post: 04-05-2002, 05:47 PM
  4. Top 5 reasons NOT to use Linux
    By boblucci in forum General Chat
    Replies: 16
    Last Post: 03-24-2002, 03:06 PM
  5. Best File Sharing Program In linux
    By gmoreno in forum Linux - Software, Applications & Programming
    Replies: 27
    Last Post: 01-03-2002, 11:12 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •