alias/chmod,chown
This commit is contained in:
parent
201ab282b1
commit
7276d4cfbc
2 changed files with 4 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
|||
# change mode to directory
|
||||
cmd() { a__change_mode_directory "${@}"; }
|
||||
#= cmd
|
||||
a__change_mode_directory() {
|
||||
chmod \
|
||||
"755" \
|
||||
|
@ -7,7 +7,7 @@ a__change_mode_directory() {
|
|||
}
|
||||
|
||||
# change mode to file
|
||||
cmf() { a__change_mode_file "${@}"; }
|
||||
#= cmf
|
||||
a__change_mode_file() {
|
||||
chmod \
|
||||
"644" \
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# change owner to root
|
||||
cor() { a__change_owner_root "${@}"; }
|
||||
#= cor
|
||||
a__change_owner_root() {
|
||||
chown \
|
||||
"0:0" \
|
||||
|
@ -7,7 +7,7 @@ a__change_owner_root() {
|
|||
}
|
||||
|
||||
# change owner to user
|
||||
cou() { a__change_owner_user "${@}"; }
|
||||
#= cou
|
||||
a__change_owner_user() {
|
||||
chown \
|
||||
"1000:1000" \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue