Skip to content

Instantly share code, notes, and snippets.

@alcedo
Created October 10, 2013 08:58
Show Gist options
  • Save alcedo/6915257 to your computer and use it in GitHub Desktop.
Save alcedo/6915257 to your computer and use it in GitHub Desktop.
Unix notes
### How to change permissions of all files in a dir using XARGS
[root@abc installers]# ls | xargs -Ifile chmod 777 file
[root@abc installers]# ls -rlt
total 446676
-rwxrwxrwx 1 abc abc 30537780 Oct 8 08:18 hcatalog-0.11.0.1.3.2.0-111.tar.gz
-rwxrwxrwx 1 abc abc 14492759 Oct 8 08:20 Python-2.7.5.tgz
[root@abc installers]# ls | xargs -I{} chmod 777 {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment