rwx/sh/alias/chmod.sh

16 lines
256 B
Bash
Raw Normal View History

2024-11-16 13:04:50 +00:00
# change mode to directory
2024-11-18 15:13:13 +00:00
cmd() { sh_a__change_mode_directory "${@}"; }
sh_a__change_mode_directory() {
2024-11-16 13:03:13 +00:00
chmod \
"755" \
"${@}"
}
2023-05-09 20:02:34 +00:00
2024-11-16 13:04:50 +00:00
# change mode to file
2024-11-18 15:13:13 +00:00
cmf() { sh_a__change_mode_file "${@}"; }
sh_a__change_mode_file() {
2024-11-16 13:03:13 +00:00
chmod \
"644" \
"${@}"
}