Advertisement
Guest User

1462062

a guest
Jul 21st, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.27 KB | None | 0 0
  1. root@demo:~# { find "$(pwd)" -type d -print0 | xargs -0 echo chmod 755 ; find "$(pwd)" -type f -print0 | xargs -0 echo chmod 644 ; } | wc -l
  2. 107
  3. root@demo:~# { find "$(pwd)" -type d -exec echo chmod 755 {} + ; find "$(pwd)" -type f -exec echo chmod 644 {} + ; } | wc -l
  4. 107
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement