LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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


Closed Thread
  Search this Thread
Old 11-30-2013, 04:02 AM   #1
Tauatioti
LQ Newbie
 
Registered: Oct 2013
Posts: 18

Rep: Reputation: Disabled
how to delete directory in a existing directory with single command


Hi

I had created directory using single command
Code:
mkdir -p a/{b,c,d/e/f,g}
, and my questions is how can i delete the directory 'b,c,d and g' only with the single command.

i already try this command

Code:
rmdir -p a/{b,c,g}
rm -f a/{b,c,g}
with no luck

Thanks
 
Old 11-30-2013, 04:04 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389
Cross-posting is against the LQ rules. Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place.

Continue in the other/original thread: https://www.linuxquestions.org/quest...nd-4175486323/

Reported for closure.
 
  


Closed Thread


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] how to create directory in an existing directory with single command Tauatioti Linux - Newbie 21 08-05-2014 10:15 PM
how to create directory in an existing directory with single command Tauatioti Linux - Newbie 2 11-30-2013 02:17 AM
[SOLVED] create many directory with single command Tauatioti Linux - Newbie 3 11-29-2013 05:36 PM
Is there a way to make a new directory and then cd into with single command ? mynameisthomas Linux - Newbie 4 09-13-2009 01:29 PM


All times are GMT -5. The time now is 03:27 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