rwx/sh/alias/chmod.sh
2024-11-18 16:13:13 +01:00

15 lines
256 B
Bash

# change mode to directory
cmd() { sh_a__change_mode_directory "${@}"; }
sh_a__change_mode_directory() {
chmod \
"755" \
"${@}"
}
# change mode to file
cmf() { sh_a__change_mode_file "${@}"; }
sh_a__change_mode_file() {
chmod \
"644" \
"${@}"
}