How to set image path in linux command line?

2019-09-05 16:59发布

问题:

How to set image path in linux command line ?

I tried to use this image path

/home/testuser/public_html/img/test.jpg

With this code in linux command line (putty)

jpegoptim --max=75 /home/testuser/public_html/img/test.jpg

But not work, How can i do that ?

回答1:

Make sure the file exists and that it is readable. The directory should be writable too.

Try

sudo chmod 666 /home/testuser/public_html/img/test.jpg

and

sudo chmod 777 /home/testuser/public_html/img


标签: linux