create an uncompressed tar file of each child directory of the current working directory

find . -maxdepth 1 -mindepth 1 -type d -exec tar cvf {}.tar {} \;
First, use find to find directories exactly one level below current directory, then create a tar file using the directory as the basename.

1
2020-06-21 14:34:44

What Others Think

I had trouble writing an essay and had a terrible headache until I found an essay sample on this website. There are so many free templates of academic papers.
nicollemeyer · 1 week and 4 days ago
You shared a useful post and thanks for sharing this to us. Roblox Robux Hack Generator Generate unlimited number of Roblox Robux with our one of a kind generator tool and never lose a single game. Get free robux working free Roblox robux generator 2020 without human verification.
pennman · 1 week and 2 days ago
Hello Mate - This is amazing piece of work and give me informative insights about subject matter. I would love to read more about your work to enhance my knowledge. Further, to get best Promo code for stadium goods , please visit out website www.uttercoupons.com.
adam062 · 1 day ago
Hello Mate - This is amazing piece of work and give me informative insights about subject matter. I would love to read more about your work to enhance my knowledge. Further, to get best TSplus Coupon Code , please visit out website www.uttercoupons.com.
adam062 · 1 day ago
Hello Mate - This is amazing piece of work and give me informative insights about subject matter. I would love to read more about your work to enhance my knowledge. Further, to get best Carter's Coupon Codes , please visit out website www.uttercoupons.com.
adam062 · 1 day ago
A lot of times I try to create this file, but I cannot create this. Can you tell me more about this in-depth so I can not do this and create this because Spalding 66291 basketball hoop reviews is very important for me?
Elie77 · 3 hours 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: