Skip to content
WJunction - Webmaster Forum

How to Copy images

Status
Not open for further replies.
I have a folder with lots of sub folder, there are many images and other files within those subfolder. i want to move all those images to another folder with a command in shell. how to do that

folder1
----------------
mydocs
good
pro


above folder 1 is main folder. mydocs,good,pro are subfolders in folder1. there are image with extension .jpg and other files. I want to copy only those images to folder2. i dont have GUI, so i need a search and copy command which will do that. the output must be all image file in root of folder 2


some please help
 

7 comments

# cp -r /path_to_folder_where_are_images/*.jpg /path_to_folder_where_you_want_to_copy_those_images

alternatively just copy everything in the folders
# cp -r /path_to_folder_where_are_images/* /path_to_folder_where_you_want_to_copy_those_images
 
Status
Not open for further replies.

About the author

C
Active Member · Joined
1,387
Messages
121
Reactions
63
Points

Advertise on WJunction

Reach 1000's of webmasters, hosts & affiliates. Banner & sponsored-thread slots available.

Contact us
Back
Top Bottom