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
 

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

What Others Think

use xargs instead of -exec
nordri · 14 weeks and 5 days ago
@nordri command updated, thank you.
aysadk · 14 weeks and 4 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 · 14 weeks and 4 days ago
https://www.webcontentonline.com [url=https://www.webcontentonline.com]https://www.webcontentonline.com[/url]
webcontentonline · 14 weeks and 4 days 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 · 14 weeks and 2 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 · 13 weeks and 6 days ago
thanks for this man. exactly what i needed. fencingspokanewa.com
looneyhans · 13 weeks and 5 days ago
thanks for this nice article! bathroomremodeldesmoinesia.com
Killersmile · 13 weeks and 2 days ago
Your website is very good. Your article has aroused a lot of positive attention. Read more for more info.
keywave110 · 12 weeks and 3 days ago
Thanks for sharing such a great article with us.Thanks a lot https://incracked.com/utorrent-pro-crack/
sara · 11 weeks and 4 days 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 · 10 weeks and 5 days ago
love this kitchen remodel
looneyhans · 10 weeks and 5 days ago
learned alot here dothan fence company
looneyhans · 10 weeks and 4 days ago
Will this work for an rs gold site?
charlesmax23 · 10 weeks and 2 days ago
Thanks for sharing,It's useful for me https://www.dreambloger.com
jojokoko · 10 weeks and 2 days ago
https://www.dreambloger.com [url=https://www.dreambloger.com]https://www.dreambloger.com[/url]
jojokoko · 10 weeks and 2 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 · 9 weeks and 3 days ago
??? ?????? ?????????? ???? ?????? ? ?????? ??????? ??? ???? ??????? ????? ???????? ? ???? ?????. ??????, ???? ??? ???????. ? ?????? ????????? ?? ? ???????? ?? 20 ?? ?? 2 ??????.
val11 · 9 weeks and 3 days ago
i really liked your article. Thanks for sharing such a wonderful post. septic tank
idasanka · 9 weeks and 2 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 · 9 weeks 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 · 8 weeks and 5 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 · 8 weeks 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 · 7 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!.. digital marketing
bojokey283 · 7 weeks and 5 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 · 7 weeks and 5 days ago
senior care corpus christi Can you tell me a bit more, please?
yeoyeo · 7 weeks and 3 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. alquiler de carros cartagena
bojokey283 · 6 weeks and 1 day 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 · 6 weeks ago
Thanks for taking the time to discuss this, I feel strongly about it and love learning more on this topic. hartlepool removals
bojokey283 · 5 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!.. Hausautomation
bojokey283 · 5 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!.. tree surgeon colchester
bojokey283 · 5 weeks and 4 days 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 · 5 weeks and 2 days 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 · 5 weeks 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 · 4 weeks and 3 days ago
I'm happy to see the issue is now solved. My AARP Medicare
Monserrate · 4 weeks and 3 days ago
Thank you for sharing it! jigsaw puzzles
html5 · 4 weeks and 3 days ago
thank you for this! really appreciate you doing this circle
sammm · 4 weeks and 2 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 · 1 week and 3 days 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 · 1 week ago
this is really nice to read..informative post is very good to read..thanks a lot! best cenotes in riviera maya
xoheko1229 · 6 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 · 4 days 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: