rwx/sh/alias/chmod.sh

16 lines
244 B
Bash
Raw Normal View History

2024-11-16 13:04:50 +00:00
# change mode to directory
2024-11-19 13:42:11 +00:00
cmd() { a__change_mode_directory "${@}"; }
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-19 13:42:11 +00:00
cmf() { a__change_mode_file "${@}"; }
a__change_mode_file() {
2024-11-16 13:03:13 +00:00
chmod \
"644" \
"${@}"
}