Results 1 to 6 of 6

Thread: How does directories in Linux works

  1. #1
    Join Date
    Nov 2009
    Posts
    955

    How does directories in Linux works

    Hi,
    How does a directory system works in Linux. I am using a Ubuntu laptop. Here in My computer I can see a single folder as the primary storage system. I can create folders here and save multiple files. But this is somewhat very much different to Windows where you can navigate in different drive for separate folder. There it is quiet easy but about Ubuntu in those case.

  2. #2
    Join Date
    Jan 2008
    Posts
    3,388

    Re: How does directories in Linux works

    By the command ls, and you can have the list of files and directories in current directory. For example the command is ls [OPTION]... [FILE]. To know the Current directory use the pwd command. In the similar way to view hidden files - ls-a. For details: ls-l gives you the file type, owner, rights, and if it is a link, the target. Tip: ls-l myfile gives the characteristics of a single file.

  3. #3
    Join Date
    May 2008
    Posts
    4,085

    Re: How does directories in Linux works

    If you want to differentiate between different kinds of files then you can give ls - color. Here you get file in different colors. And if you want that, during this session, your ls is still in color, alias ls = ls - color. and if you want to your alias to be enabled for all sessions then you just need to put / etc / file c in it. And to fit the content to the screen you can ls | less or ls | more command.

  4. #4
    Join Date
    Apr 2008
    Posts
    3,267

    Re: How does directories in Linux works

    You can say that a linux directory is a kind of special file that can act as a box or container for other files and directories. For this it is possible to create or hold a group of relative files. This gives a nice alternative instead of keeping files in a very large directories instead of multiple directories. The file system in linux acts as a cabinet to the other files and folders.

  5. #5
    Join Date
    Apr 2008
    Posts
    3,522

    Re: How does directories in Linux works

    A file system in Linux shows an upside down tree format. This is very much similar to what you see in DOS directory structure. Here the first and topmost level is described as / and there fore it is called as the root directory. There are several system related directories already available in it like bin, dev, etc. This all appear below the root directory.

  6. #6
    Join Date
    Apr 2008
    Posts
    3,295

    Re: How does directories in Linux works

    Here are some example of linux folder commands. The first is /b which has special device file. This file is used to respond the hardware of the system also called as slash dev. The other one is /etc. This file have all configuration settings for Linux and the software installed in it. This is called as slash-et-see. The other one is /home where the home directories lies for each user.

Similar Threads

  1. Replies: 3
    Last Post: 16-07-2011, 03:03 AM
  2. Does mobile broadband USB 3G works on Linux
    By dgekson879 in forum India BroadBand
    Replies: 1
    Last Post: 14-05-2011, 05:46 PM
  3. Difficulties with reciprocal access to file directories in Linux
    By Ander K in forum Networking & Security
    Replies: 4
    Last Post: 19-01-2011, 04:48 PM
  4. Does Proteus works under linux
    By kolton in forum Windows Software
    Replies: 5
    Last Post: 13-11-2010, 12:44 AM
  5. Does Microsoft office works on Linux
    By Elbanco in forum Windows Software
    Replies: 5
    Last Post: 07-01-2010, 12:07 AM

Tags for this Thread

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
  •  
Page generated in 1,714,020,860.70688 seconds with 17 queries