Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Chmod permission of specific file extension under a folder via SSH [closed]

Tags:

chmod

ssh

My folder is /images/. There are .png, .gif and .jpg images in this folder. How do I change permissions of specific file extension .jpg to 644 under the folder via SSH?

like image 716
richard Avatar asked Dec 25 '12 21:12

richard


1 Answers

Connect to the remote computer with ssh and then execute this command may work:

find /images/. -name "*.jpg" | xargs chmod 644

like image 106
Guillaume Avatar answered Oct 31 '22 05:10

Guillaume