Moving large number of files

find /source/directory -mindepth 1 -maxdepth 1 -name '*' -print0 | xargs -0 mv -t /target/directory;
if you want to move with command mv large list of files than you would get following error /bin/mv: Argument list too long alternavite with exec: find /source/directory -mindepth 1 -maxdepth 1 -name '*' -exec mv {} /target/directory \;
Sample Output
 

2
By: aysadk
2020-11-17 12:30:45

What Others Think

use xargs instead of -exec
nordri · 22 weeks and 2 days ago
@nordri command updated, thank you.
aysadk · 22 weeks and 2 days ago
a hit freelancers swear by exercises — washing your face, putting on real garments and placing smartphone boundaries — and those recommendations increase to ingesting. dietary therapist and longtime paintings-from-homer wilma macdonald told huffpost that snacking right here and there's the largest mistake she sees new far flung workers make. she recommends setting up your day like all everyday working day, with a lunch wreck, a few smaller breaks and a focus at the most important meal: breakfast. https://www.webcontentonline.com
webcontentonline · 22 weeks and 1 day ago
https://www.webcontentonline.com [url=https://www.webcontentonline.com]https://www.webcontentonline.com[/url]
webcontentonline · 22 weeks and 1 day ago
System error code 200 means "The code segment cannot be greater than or equal to 64K." This error code may also display as "ERROR_RING2SEG_MUST_BE_MOVABLE" or as the value 0xC8. https://wikipagemaker.com/
brandonisaac · 21 weeks and 6 days ago
Do you know the methods for moving large number of files in a simple way? If you don’t know the steps then this website details will be helpful for that. Anyway thank you so much for providing this programming language for us bmw auto repair shops
leonamargret · 21 weeks and 3 days ago
thanks for this man. exactly what i needed. fencingspokanewa.com
looneyhans · 21 weeks and 2 days ago
thanks for this nice article! bathroomremodeldesmoinesia.com
Killersmile · 20 weeks and 6 days ago
Your website is very good. Your article has aroused a lot of positive attention. Read more for more info.
keywave110 · 20 weeks ago
Thanks for sharing such a great article with us.Thanks a lot https://incracked.com/utorrent-pro-crack/
sara · 19 weeks and 1 day ago
Have this problem pretty often when I can't move files. I guess doesn't really matter when I can use my usb stick but no o convenient lately. I'm using resume writing service and sometimes my resume takes lots of storage so I need to find an alternative
ira34 · 18 weeks and 3 days ago
love this kitchen remodel
looneyhans · 18 weeks and 2 days ago
learned alot here dothan fence company
looneyhans · 18 weeks and 1 day ago
Will this work for an rs gold site?
charlesmax23 · 18 weeks ago
Thanks for sharing,It's useful for me https://www.dreambloger.com
jojokoko · 17 weeks and 6 days ago
https://www.dreambloger.com [url=https://www.dreambloger.com]https://www.dreambloger.com[/url]
jojokoko · 17 weeks and 6 days ago
How about ketodiets ? https://healthfood.wiki/zdorovie-post/sryv-na-keto-diete-kto-vinovat-i-chto-delat . Its really cool and nice diet. I like it.
val11 · 17 weeks ago
??? ?????? ?????????? ???? ?????? ? ?????? ??????? ??? ???? ??????? ????? ???????? ? ???? ?????. ??????, ???? ??? ???????. ? ?????? ????????? ?? ? ???????? ?? 20 ?? ?? 2 ??????.
val11 · 17 weeks ago
i really liked your article. Thanks for sharing such a wonderful post. septic tank
idasanka · 16 weeks and 6 days ago
This is just the information I am finding everywhere. Thanks for your blog, I just subscribe your blog. This is a nice blog.. Click here
bojokey283 · 16 weeks and 5 days ago
Interesting post. I Have Been wondering about this issue, so thanks for posting. Pretty cool post.It 's really very nice and Useful post.ThanksClick here
xoheko1229 · 16 weeks and 2 days ago
I was surfing net and fortunately came across this site and found very interesting stuff here. Its really fun to read. I enjoyed a lot. Thanks for sharing this wonderful information. https://abonnenten24.de
bojokey283 · 15 weeks and 5 days ago
I was looking at some of your posts on this website and I conceive this web site is really instructive! Keep putting up.. Domótica
bojokey283 · 15 weeks and 4 days ago
Great write-up, I am a big believer in commenting on blogs to inform the blog writers know that they’ve added something worthwhile to the world wide web!.. digital marketing
bojokey283 · 15 weeks and 3 days ago
There was once a blind man who had so fine a sense of touch that, when any animal was put into his hands, he could tell what it was merely by the feel of it. One day the cub of a wolf was put into his hands, and he was asked what it was. He felt it for some time, and then said, "Indeed, I am not sure whether it is a wolf's cub or a fox's: but this I know -- it would never do to trust it in a sheepfold." Evil tendencies are early shown. website seo
freesite · 15 weeks and 2 days ago
senior care corpus christi Can you tell me a bit more, please?
yeoyeo · 15 weeks ago
I can see that you are an expert at your field! I am launching a website soon, and your information will be very useful for me.. Thanks for all your help and wishing you all the success in your business. alquiler de carros cartagena
bojokey283 · 13 weeks and 5 days ago
I can see that you are an expert at your field! I am launching a website soon, and your information will be very useful for me.. Thanks for all your help and wishing you all the success in your business. bridgend house clearance
bojokey283 · 13 weeks and 4 days ago
Thanks for taking the time to discuss this, I feel strongly about it and love learning more on this topic. hartlepool removals
bojokey283 · 13 weeks and 4 days ago
Great write-up, I am a big believer in commenting on blogs to inform the blog writers know that they’ve added something worthwhile to the world wide web!.. Hausautomation
bojokey283 · 13 weeks and 1 day ago
Great write-up, I am a big believer in commenting on blogs to inform the blog writers know that they’ve added something worthwhile to the world wide web!.. tree surgeon colchester
bojokey283 · 13 weeks and 1 day ago
Great information. Thank you for this we can move our file in an easy way and much faster. An article like this should reach more people. arborists Lancaster pa
keywave110 · 13 weeks ago
Superbly written article, if only all bloggers offered the same content as you, the internet would be a far better place.. covid holbox
bojokey283 · 12 weeks and 5 days ago
This program gives the code to move a large number of files to a location specified there. This is a good platform CBD oil for learning linux commands and the students are really blessed with these kinds of platforms for learning. Expecting more such commands from here.
Alyssalauren · 12 weeks and 1 day ago
I'm happy to see the issue is now solved. My AARP Medicare
Monserrate · 12 weeks ago
Thank you for sharing it! jigsaw puzzles
html5 · 12 weeks ago
thank you for this! really appreciate you doing this circle
sammm · 11 weeks and 6 days ago
I know your expertise on this. I must say we should have an online discussion on this. Writing only comments will close the discussion straight away! And will restrict the benefits from this information. sikerdíjas" rel="nofollow">http://www.fokuszpalyazat.hu/'>sikerdíjas pályázatírás Debrecen
bojokey283 · 9 weeks ago
very interesting post.this is my first time visit here.i found so many interesting stuff in your blog especially its discussion..thanks for the post! buy onlyfans subscribers
xoheko1229 · 8 weeks and 4 days ago
this is really nice to read..informative post is very good to read..thanks a lot! best cenotes in riviera maya
xoheko1229 · 8 weeks and 4 days ago
Thanks for sharing this information. I really like your blog post very much. You have really shared a informative and interesting blog post with people.. rumah pintar
bojokey283 · 8 weeks and 1 day ago
I’ve been searching for some decent stuff on the subject and haven't had any luck up until this point, You just got a new biggest fan!.. használt kombájn szállítás
bojokey283 · 7 weeks and 2 days ago
Your blog provided us with valuable information to work with. Each & every tips of your post are awesome. Thanks a lot for sharing. Keep blogging.. best food in cozumel
xoheko1229 · 7 weeks and 2 days ago
I am happy to find this post Very useful for me, as it contains lot of information. I Always prefer to read The Quality and glad I found this thing in you post. Thanks best food in cozumel
xoheko1229 · 7 weeks and 2 days ago
I just couldn't leave your website before telling you that I truly enjoyed the top quality info you present to your visitors? Will be back again frequently to check up on new posts. nightlife in Cozumel
xoheko1229 · 7 weeks ago
I high appreciate this post. It’s hard to find the good from the bad sometimes, but I think you’ve nailed it! would you mind updating your blog with more information? yucateco food
xoheko1229 · 6 weeks and 4 days ago
This is a smart blog. I mean it. You have so much knowledge about this issue, and so much passion. You also know how to make people rally behind it, obviously from the responses. top hotels tulum
xoheko1229 · 6 weeks and 4 days ago
Great Article it its really informative and innovative keep us posted with new updates. its was really valuable. thanks a lot. top restaurants tulum
xoheko1229 · 6 weeks and 3 days ago
This is a smart blog. I mean it. You have so much knowledge about this issue, and so much passion. You also know how to make people rally behind it, obviously from the responses. playa del carmen luxury hotels
xoheko1229 · 6 weeks and 1 day ago
I gotta favorite this website it seems very helpful . restaurants holbox
xoheko1229 · 5 weeks and 5 days ago
Thank you for another great article. Where else could anyone get that kind of information in such a perfect way of writing? I have a presentation next week, and I am on the look for such information. treatnheal
xoheko1229 · 4 weeks and 3 days ago
Thanks for the nice blog. It was very useful for me. I'm happy I found this blog. Thank you for sharing with us,I too always learn something new from your post. Automatyka domowa
xoheko1229 · 3 weeks and 4 days ago
IMMANUEL IMMIGRATIONS is India’s Immigration & Visa Consultant and Established in 2020.http://spectraing.in/canadavisapoint/canada-super-visa-for-parents/">Canada Family Visa Hyderabad
saichinni · 3 weeks and 2 days ago
IMMANUEL IMMIGRATIONS is India’s Immigration & Visa Consultant and Established in 2020.http://spectraing.in/canadavisapoint/canada-super-visa-for-parents/">Canada Family Visa Hyderabad
saichinni · 3 weeks and 2 days ago
Wow! I did not know you can use ipad that way! This is interesting private investigator reno
aegyjingoo · 2 weeks and 6 days ago
Great write-up, I am a big believer in commenting on blogs to inform the blog writers know that they’ve added something worthwhile to the world wide web!.. luxury bathroom vanity
bojokey283 · 2 weeks and 4 days ago
Your website is very good. Your article has aroused a lot of positive attention. Read more for more info. PrepaidGiftBalance
Cameron · 2 weeks and 2 days ago
Is it okay to post part of this on my website basically post a hyperlink to this webpage? 5 star resort tulum
xoheko1229 · 1 week and 4 days ago
Is it okay to post part of this on my website basically post a hyperlink to this webpage? all inclusive hotel in tulum
xoheko1229 · 1 week and 4 days ago
I can see that you are an expert at your field! I am launching a website soon, and your information will be very useful for me.. Thanks for all your help and wishing you all the success in your business. coronavirus mexico
bojokey283 · 1 week and 3 days ago
Wow, cool post. I’d like to write like this too – taking time and real hard work to make a great article… but I put things off too much and never seem to get started. Thanks though. best trails taroko
xoheko1229 · 1 week and 1 day 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: