move contents of the current directory to the parent directory, then remove current directory.

mv * .[0-9a-Z]* ../; cd ..; rm -r $OLDPWD
I think this is less resource consuming than the previous examples

2
By: Elisiano
2010-11-12 11:03:58
cd mv rm

2 Alternatives + Submit Alt

What Others Think

I'm affraid a-Z is not doing what you think it does, as a is after Z in the ASCII order. Second problem with your command is that you don't test for the resultst of 'mv'. If, for a reason or another the move fails, you end up deleting all the files you wanted to move in the first place.
Baramin · 629 weeks and 3 days ago
Even if you correct the glob to [0-9a-zA-Z]*, that still leaves a lot of possible filenames that would not be moved... what about a file named '.~foo'? or '. foo'? (dot space foo)?
bartonski · 624 weeks and 5 days ago
I discovered your blog post site on google and appearance many of your early posts. Always maintain on the really good operate. I just now extra increase your Feed to my MSN News Reader. Seeking forward to reading much more within you down the road!… http://alberguesweb.com/cream-chargers-make-whipped-cream-two-hassle-free-affordable/">Cream chargers delivery in Manchester
nakav51247 · 32 weeks and 1 day ago
This particular is usually apparently essential and moreover outstanding truth along with for sure fair-minded and moreover admittedly useful My business is looking to find in advance designed for this specific useful stuffs… standing desk
KayGasaway · 32 weeks and 1 day ago
Took me time to read all the comments, but I really enjoyed the article. It proved to be Very helpful to me and I am sure to all the commenters here! It’s always nice when you can not only be informed, but also entertained! ????
KayGasaway · 32 weeks ago
You have outdone yourself this time. It is probably the best, most short step by step guide that I have ever seen. trash chute spring
KayGasaway · 31 weeks and 5 days ago
We notion it really is a good idea to publish could anyone was initially having issues searching for however , My organization is a bit of dubious just have always been allowed to insert leaders together with contact regarding at this point. http://www.ironandrailings.ca">Toronto Iron Railings
goxah55535 · 31 weeks and 1 day ago
We notion it really is a good idea to publish could anyone was initially having issues searching for however , My organization is a bit of dubious just have always been allowed to insert leaders together with contact regarding at this point. Toronto Iron Railings
goxah55535 · 31 weeks and 1 day ago
I really loved reading your blog. It was very well authored and easy to understand. Unlike other blogs I have read which are really not that good.Thanks alot! ??? ???
KayGasaway · 31 weeks and 1 day ago
You understand your projects stand out of the crowd. There is something unique about them. It seems to me all of them are brilliant. Nft games
KayGasaway · 26 weeks and 2 days ago
I admire this article for the well-researched content and excellent wording. I got so involved in this material that I couldn’t stop reading. I am impressed with your work and skill. Thank you so much. wilkinson chutes
Audrey10 · 25 weeks and 6 days ago
Thanks, that was a really cool read! nft projects
Audrey10 · 25 weeks and 1 day ago
This article was written by a real thinking writer. I agree many of the with the solid points made by the writer. I’ll be back. ACCT2288 Assessment 3
KayGasaway · 24 weeks and 6 days ago
Thanks for posting this info. I just want to let you know that I just check out your site and I find it very interesting and informative. I can't wait to read lots of your posts. small business cybersecurity consulting
KayGasaway · 24 weeks and 6 days ago
What a fantabulous post this has been. Never seen this kind of useful post. I am grateful to you and expect more number of posts like these. Thank you very much. ????
Audrey10 · 24 weeks and 5 days ago
Really a great addition. I have read this marvelous post. Thanks for sharing information about it. I really like that. Thanks so lot for your convene. Top Cambridge Attractions
fomajob · 24 weeks and 5 days ago
I found that site very usefull and this survey is very cirious, I ' ve never seen a blog that demand a survey for this actions, very curious... Buy Whisky online free delivery
Audrey10 · 24 weeks and 1 day ago
Wow i can say that this is another great article as expected of this blog.Bookmarked this site.. ugly cartoon characters
Audrey10 · 23 weeks and 4 days ago
Merely a smiling visitant here to share the love (:, btw outstanding style. Harga Beton Ready Mix Depok
KayGasaway · 23 weeks and 3 days ago
This article gives the light in which we can observe the reality. This is very nice one and gives indepth information. Thanks for this nice article. https://frenchchateauforsale.co.uk/chateau-for-sale-in-charente-france/
KayGasaway · 23 weeks and 2 days ago
I'm glad to see the great detail here!. https://startupo.fr/question/21/dans_quel_domaine_devenir_auto_entrepreneur/
KayGasaway · 23 weeks ago
It is a fantastic post – immense clear and easy to understand. I am also holding out for the sharks too that made me laugh. what dinosaur has 500 teeth
KayGasaway · 23 weeks ago
I admire this article for the well-researched content and excellent wording. I got so involved in this material that I couldn’t stop reading. I am impressed with your work and skill. Thank you so much. https://mookasports.com/
KayGasaway · 18 weeks and 2 days ago
You know your projects stand out of the herd. There is something special about them. It seems to me all of them are really brilliant! ???????????????????
KayGasaway · 18 weeks and 2 days ago
I just want to let you know that I just check out your site and I find it very interesting and informative.. more info
KayGasaway · 18 weeks and 2 days ago
This is my first time i visit here. I found so many interesting stuff in your blog especially its discussion. From the tons of comments on your articles, I guess I am not the only one having all the enjoyment here keep up the good work annoyed1heal.com
goxah55535 · 14 weeks and 2 days ago
This is my first time i visit here. I found so many interesting stuff in your blog especially its discussion. From the tons of comments on your articles, I guess I am not the only one having all the enjoyment here keep up the good work baddiebossbeauty.net
goxah55535 · 14 weeks and 2 days ago
Pug Puppies for Sale Near Me pugs puppies for sale teacup pugs for sale pug puppies for sale by owner pug puppies ohio PUG PUPPY FOR SALE NEAR ME PUG PUPPIES FOR SALE pug puppies for sale in kentucky Pug Puppies for Sale Under $500 Near Me pug puppies for sale in texas pug puppies for sale $200 pugs for sale near me under $500 pugs for sale under $400 near me pugs for sale near me puppies for sale near me under $500 pug puppies for sale under $1,000 near me pug for sale pug puppies for sale under $300 Brindle Pug Pitbull Pug Mix Pugs for sale cheap Cheap pug affordable pug puppies for sale near me black pugs for sale near me White Pugs for sale pug dog for sale free pug puppies pug puppies for sale in my area mn pug breeders pug puppies indiana pugs for sale michigan PUG PUPPY ADOPTION Pug puppies for sale Pug puppies for sale near me Pug puppies near me Pug Puppies for Sale Under $500 Near Me Cute Pug Puppies Black pug puppies Black pug puppies for sale pug puppies for adoption black pug puppies for sale near me chihuahua pug mix puppies how much is a pug puppy teacup pug puppies baby pug puppies pictures of pug puppies pug puppies for sale in Ohio pug puppies price pug mix puppies teacup pug puppies for sale best food for pug puppy newborn pug puppies pug puppies craigslist pug puppies for sale craigslist adorable pug puppies how much does a pug puppy cost Pitbull pug mix puppies pug pit mix puppy pug puppies for sale $200 pug puppies for sale in NJ Pug puppies for sale in Wisconsin pug puppy cost pug puppy food royal canin pug puppy royal canin pug puppy food fawn pug puppy pug puppies for sale florida pug puppies for sale in Indiana pug puppies for sale in KY pug puppies for sale in NC pug dog puppy AKC Registered Pug Puppies For sale cheap pug puppies for sale near me cheap pug puppies for sale in California cheap pug puppies for sale in nj Black Pug Puppies for sale pugs puppies for sale
rahimhh21 · 14 weeks ago
Outstanding report not to mention very easy towards fully understand explanation. How do I just do receiving permission towards submit component of this page with my future news letter? Giving suitable consumer credit rating back to you typically the article author not to mention hyperlink in the web site would not be considered trouble. content creation facebook
STEPHEN007 · 14 weeks ago
learning hypnosis is great, i used it to hypnotize myself so that i can relax` https://www.simplybuzzes.com/angel-number-1016-meaning/
STEPHEN007 · 13 weeks and 3 days ago
Pug Puppies for Sale Near Me pugs puppies for sale teacup pugs for sale pug puppies for sale by owner pug puppies ohio PUG PUPPY FOR SALE NEAR ME PUG PUPPIES FOR SALE pug puppies for sale in kentucky Pug Puppies for Sale Under $500 Near Me pug puppies for sale in texas pug puppies for sale $200 pugs for sale near me under $500 pugs for sale under $400 near me pugs for sale near me puppies for sale near me under $500 pug puppies for sale under $1,000 near me pug for sale pug puppies for sale under $300 Brindle Pug Pitbull Pug Mix Pugs for sale cheap Cheap pug affordable pug puppies for sale near me black pugs for sale near me White Pugs for sale pug dog for sale free pug puppies pug puppies for sale in my area mn pug breeders pug puppies indiana pugs for sale michigan PUG PUPPY ADOPTION Pug puppies for sale Pug puppies for sale near me Pug puppies near me Pug Puppies for Sale Under $500 Near Me USA USA USA USA USA USA Cute Pug Puppies Black pug puppies Black pug puppies for sale pug puppies for adoption black pug puppies for sale near me chihuahua pug mix puppies how much is a pug puppy teacup pug puppies baby pug puppies baby pug puppies for sale pictures of pug puppies pug puppies for sale in Ohio pug puppies price pug mix puppies teacup pug puppies for sale best food for pug puppy newborn pug puppies pug puppies craigslist pug puppies for sale craigslist adorable pug puppies how much does a pug puppy cost Pitbull pug mix puppies pug pit mix puppy pug puppies for sale $200 pug puppies for sale in NJ Pug puppies for sale in Wisconsin pug puppy cost pug puppy food royal canin pug puppy royal canin pug puppy food fawn pug puppy pug puppies for sale florida pug puppies for sale in Indiana pug puppies for sale in KY pug puppies for sale in NC pug dog puppy AKC Registered Pug Puppies For sale cheap pug puppies for sale near me cheap pug puppies for sale in California cheap pug puppies for sale in nj Black Pug Puppies for sale pugs puppies for sale
Perfecthomepugs · 5 weeks ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: