From 2799ee8c5200e994ea2c8a9a7343785f52fd53fd Mon Sep 17 00:00:00 2001 From: RealStickman Date: Thu, 7 Jul 2022 08:35:48 +0200 Subject: [PATCH] (Grav GitSync) Automatic Commit from RealStickman --- pages/04.other/16.useful-commands/default.en.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pages/04.other/16.useful-commands/default.en.md b/pages/04.other/16.useful-commands/default.en.md index 8a674f5..86f89b3 100644 --- a/pages/04.other/16.useful-commands/default.en.md +++ b/pages/04.other/16.useful-commands/default.en.md @@ -10,4 +10,11 @@ title: 'Useful Commands' ``` -density: adjusts the quality of the resulting pdf. Higher values look better, but take longer to process -crop 50x100%: this splits the pdf into "left" and "right". 100x50% would split into "top" and "bottom" -``` \ No newline at end of file +``` + +## Find +### Change filtered permissions +Using find with its `exec` switch one can set different permissions based on the usual find filters. +One example would be only changing file or directory permissions. +`$ find (directory) -type f -exec chmod 744 {} +` +Replacing `-type f` with `-type d` would execute the `chmod` for directories instead.