Created
October 10, 2013 08:58
-
-
Save alcedo/6915257 to your computer and use it in GitHub Desktop.
Unix notes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 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