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 ~/音樂/

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

1 Answer 1

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 and acknowledge that you have read and understand our privacy policy and code of conduct.

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