编写一个shell脚本将root用户主目录下以字母D开头的所有文件打包成targz
#!/bin/bash tar -cvzf D_files.tar.gz /root/D* echo "D files in root directory have been compressed to D_files.tar.gz"
原文地址: https://www.cveoy.top/t/topic/coL4 著作权归作者所有。请勿转载和采集!
安全问答是一个知识全球问答,包含丰富的问答知识
#!/bin/bash tar -cvzf D_files.tar.gz /root/D* echo "D files in root directory have been compressed to D_files.tar.gz"
原文地址: https://www.cveoy.top/t/topic/coL4 著作权归作者所有。请勿转载和采集!