cor,cou
This commit is contained in:
parent
97389ceef7
commit
524ddb8968
2 changed files with 14 additions and 12 deletions
|
@ -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" \
|
||||
|
|
|
@ -1,11 +1,13 @@
|
|||
# change owner as root
|
||||
alias cor="\
|
||||
# change owner to root
|
||||
cor() {
|
||||
chown \
|
||||
\"0:0\" \
|
||||
"
|
||||
"0:0" \
|
||||
"${@}"
|
||||
}
|
||||
|
||||
# change owner as user
|
||||
alias cou="\
|
||||
# change owner to user
|
||||
cou() {
|
||||
chown \
|
||||
\"1000:1000\" \
|
||||
"
|
||||
"1000:1000" \
|
||||
"${@}"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue