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" \ + "${@}" +}