From 524ddb8968cf8167166de154e36e811b3b7bb582 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 16 Nov 2024 14:04:50 +0100 Subject: [PATCH] cor,cou --- shell/alias/chmod.sh | 4 ++-- shell/alias/chown.sh | 22 ++++++++++++---------- 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/shell/alias/chmod.sh b/shell/alias/chmod.sh index c523a11..89b8bd7 100644 --- a/shell/alias/chmod.sh +++ b/shell/alias/chmod.sh @@ -1,11 +1,11 @@ -# change mode as directory +# change mode to directory cmd() { chmod \ "755" \ "${@}" } -# change mode as file +# change mode to file cmf() { chmod \ "644" \ diff --git a/shell/alias/chown.sh b/shell/alias/chown.sh index 5a51942..f7bbef9 100644 --- a/shell/alias/chown.sh +++ b/shell/alias/chown.sh @@ -1,11 +1,13 @@ -# change owner as root -alias cor="\ -chown \ -\"0:0\" \ -" +# change owner to root +cor() { + chown \ + "0:0" \ + "${@}" +} -# change owner as user -alias cou="\ -chown \ -\"1000:1000\" \ -" +# change owner to user +cou() { + chown \ + "1000:1000" \ + "${@}" +}