Thread: How do you create Directory sturctures?

  1. #1
    Registered User
    Join Date
    Jan 2013
    Posts
    23

    Red face How do you create Directory sturctures?

    A book that i bought is saying to use mkdir and touch to create a directory called "Unix1b" within my home directory with the structure at the following

    Code:
    Unix1b
    `-- Unix1
        |-- admin
        |-- street
        |   |-- annex
        |   |-- building1
        |   `-- parking
        |-- faculty
        |-- history.exe
        |-- markham
        |   |-- outline.doc
        |   |-- programming
        |   |   `-- systems.pdf
        |   `-- security
        |-- course
        |   |-- gen_ed
        |   `-- lib_arts
        |       |-- english.txt
        |       `-- match.doc
        `-- mall
            |-- cafeteria
            |-- library
            `-- security
                |-- annex
                |-- building
                `-- parking
    i did "mkdir -p Unix1b/Unix1"
    then i did" cd Unix1"
    username@matrix:~/Unix1> mkdir street
    username@matrix:~/Unix1> mkdir admin
    username@matrix:~/Unix1> cd street
    username@matrix:~/Unix1/street> touch annex
    username@matrix:~/Unix1/street> touch building1
    now here is my question, what should i do for the for the parking in street directory.... what does that " `-- parking " mean?

    am i even doing this right?
    Last edited by blackendstars; 02-08-2013 at 04:16 PM.

  2. #2
    Registered User
    Join Date
    Jan 2013
    Posts
    23
    why when i "tree Unix1b"
    " `-- Unix1 " doesn't show up
    instead " |-- Unix1 " shows up
    the same thing with parking

  3. #3
    Registered User
    Join Date
    Jan 2013
    Posts
    23
    okay guy never mind...i managed to fix it. but can any one please tell me what that green folder "history.exe" is?
    is it a directory? why is it green?
    when I use mkdir , it turns out blue
    what can i do to turn it into green?

    thanks in advance

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    All the "|--" stuff is just ASCII art for the picture, nothing more (I guess you figured that out).

    Well the name suggests that it is executable.

    To mark a file as executable, do
    chmod u+x history.exe
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Couldn't create project directory
    By Liondancer in forum C Programming
    Replies: 4
    Last Post: 12-12-2010, 07:16 PM
  2. create and populate create bidimensional array
    By darkducke in forum C Programming
    Replies: 0
    Last Post: 12-03-2010, 07:06 AM
  3. Replies: 6
    Last Post: 04-30-2010, 06:13 PM
  4. directory help
    By thinice16 in forum C Programming
    Replies: 2
    Last Post: 08-09-2008, 02:29 PM
  5. How to create copy of Directory?
    By shwetha_siddu in forum C Programming
    Replies: 4
    Last Post: 04-23-2008, 06:31 AM