“Linux mengatur izin selama salinan” Kode Jawaban

Linux mengatur izin selama salinan

# Basic syntax:
install -m 755 /source/file.txt /destination
# Where:
#	- -m specifies the permission assigned to file.txt upon copy
# Note, install seemingly can't copy directories and files recursively, would
#	probably need to come up with some sort of "find...exec" command for that

# For ease of use, you can put this function in your bashrc file:
function ccp() {
	install -m 755 $1 $2
}
Charles-Alexandre Roy

Salin dengan Izin Linux

sudo cp -rp /source /destination
Concerned Caiman

Jawaban yang mirip dengan “Linux mengatur izin selama salinan”

Pertanyaan yang mirip dengan “Linux mengatur izin selama salinan”

Lebih banyak jawaban terkait untuk “Linux mengatur izin selama salinan” di Shell/Bash

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya