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. file transfer in linux
    By jagadish in forum Linux - Software, Applications & Programming
    Replies: 8
    Last Post: 05-28-2005, 04:23 AM
  2. problem with linux to linux file transfer...
    By neknek in forum Linux - Hardware, Networking & Security
    Replies: 1
    Last Post: 04-18-2005, 02:43 AM
  3. file transfer from linux to linux
    By neknek in forum Linux - Software, Applications & Programming
    Replies: 1
    Last Post: 04-18-2005, 02:32 AM
  4. Copying file from Linux to Linux through SSH
    By datamike in forum Linux - General Topics
    Replies: 5
    Last Post: 06-18-2003, 05:11 PM
  5. file encryption on linux
    By gsanand in forum Linux - General Topics
    Replies: 3
    Last Post: 12-16-2002, 11:14 PM

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
  •