2

This is how it happened:

julian@JulianNB:~$ sudo chmod 644 ~/音樂/* 
[sudo] password for julian: 
julian@JulianNB:~$ sudo chmod 755 ~/音樂/*/
julian@JulianNB:~$ sudo chmod 644 ~/音樂/*/*
sudo: unable to execute /bin/chmod: Argument list too long

I just want to set 755 to every folder and 644 to every music files in the ~/音樂/

  • This is because of the Chinese character. It is a bug in chmod and not elementary OS – Suici Doga May 21 '16 at 10:35
1

You can try this

find ~/音樂/ -type d -exec chmod 755 {} \; && find ~/音樂/ -type f -exec chmod 644 {} \;

I have set this as alias in my ~/.bashrc

alias fixpermissions="find . -type d -exec chmod 755 {} \; && find . -type f -exec chmod 644 {} \;"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.