LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Please just have a look and help (https://www.linuxquestions.org/questions/linux-newbie-8/please-just-have-a-look-and-help-4175486424/)

Tauatioti 12-01-2013 12:47 AM

Please just have a look and help
 
Hi everyone

I have a excesise question and i answer 3 of them but im bit confuse with the last question number 4

thanks

1 Create and go inside directory name a
Code:

- mkdir a
- cd a

2 Create files 'b' and 'c' with few paragraphs of text in both of them.
Code:

cat> a (press enter)
enter text
ctrl D (quit)

Code:

cat> b (press enter)
enter text
ctrl D (quit

)

3 Create directories '1' '2' '3' with single command where directory '3' is inside directory '2' and directory '2' is inside directory '1'
-
Code:

mkdir -p 1/2/3
2 Move file 'b' to directory '2'
-
Code:

mv b 1/2
3 Move file 'c' to directory '3'
-
Code:

mv  c 1/2/3
4 Copy files 'b' and 'c' to each directory inside directory 'a' where they already do not exist.

grail 12-01-2013 02:17 AM

What have you tried and where are you stuck?

shivaa 12-01-2013 03:39 AM

You mentioned that you created files b and c in diretcory a, but in commands mentioned in your question, you have created files named a and b. So once check your question again. Also, as Grail said, where're you stuck?

Tauatioti 12-02-2013 02:57 PM

Sorry, my typing mistake but the correction is there is no file 'a' only file 'b' and 'c'.......im stuck at question 4


Thanks


All times are GMT -5. The time now is 11:55 PM.