LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-01-2013, 01:47 AM   #1
Tauatioti
LQ Newbie
 
Registered: Oct 2013
Posts: 18

Rep: Reputation: Disabled
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.
 
Old 12-01-2013, 03:17 AM   #2
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,423

Rep: Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823
What have you tried and where are you stuck?
 
Old 12-01-2013, 04:39 AM   #3
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
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?
 
Old 12-02-2013, 03:57 PM   #4
Tauatioti
LQ Newbie
 
Registered: Oct 2013
Posts: 18

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


Thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off




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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration