You are not logged in.

#1 2009-11-02 17:50:16

kielliott
Member
Registered: 2009-11-02
Posts: 3

College Student Linux assignment help

Create a file called a1.A in ~/uli101.a1, containing Unix commands which
   will create a directory structure as shown on the following tree diagram:

.
`-- temp
    `-- music

This is the question i am having difficulty with. I have created the a1.A file in the uli101.a1 directory, although I am having trouble being able to get into the file and write the intructions to make this tree. Can anyone help?

Offline

#2 2009-11-02 18:05:39

rebugger
Member
From: Germany
Registered: 2007-10-28
Posts: 229

Re: College Student Linux assignment help

i'm not really sure what it has to the with the .A file, but you are looking for:

mkdir -p temp/music

this will create the full given path

Offline

#3 2009-11-02 18:08:58

kielliott
Member
Registered: 2009-11-02
Posts: 3

Re: College Student Linux assignment help

Yes that is the command aswell i believe but i need to put that inside the a1.A file, that is what i am having difficulty doing.

Offline

#4 2009-11-02 18:24:08

dartagnan
Member
Registered: 2009-05-31
Posts: 7

Re: College Student Linux assignment help

Hello, I think it is better not answer homwerk questions explicitly, so I will just direct you to the right sources:

type the command

man cat

in the terminal, and try to find the relevant parts.

You can also do a Google search for "linux output redirection".

HTH

Edit: you can also use an editor, like nano, vim, ... (nano is easier to use) to type the commands into the file.

Last edited by dartagnan (2009-11-02 18:25:39)

Offline

#5 2009-11-02 18:32:42

kielliott
Member
Registered: 2009-11-02
Posts: 3

Re: College Student Linux assignment help

Normally I will use VI because that is what we use at school, and the command is correct although everytime I put it in it creates in inside the uli101.a1 directory instead of the a1.A file.

Please anyone give there ideas if they have any!

Last edited by kielliott (2009-11-02 19:34:08)

Offline

#6 2009-11-02 19:37:21

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: College Student Linux assignment help

Sorry but we don't do home work assignments. Read the forum rules smile.

Welcome to the forums BTW - but I hope you didn't just register because of this wink.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

Board footer

Powered by FluxBB