chown directory code example Example 1: ubuntu change directory owner sudo chown -R $USER ~/.blabla Example 2: chown directory sudo chown -R $USER ~/.blabla