You want to write a shell script that: Creates a directory called backup, if it doesn't already exist, and Copies all .txt files from the current directory into the backup directory.   Which of the following code snippets (if any) will achieve this?多项选择题

A

None of the other answers is correct

B

mkdir -p backup cp *.txt backup/

C

if [ ! -d "backup" ]; then   mkdir backup fi cp *.txt backup/

D

mkdir backup cp *.txt backup/

E

if [ -d "backup" ]; then   mkdir backup fi cp *.txt backup/

登录即可查看完整答案

我们收录了全球超50000道真实原题与详细解析,现在登录,立即获得答案。

更多留学生实用工具

加入我们,立即解锁 海量真题独家解析,让复习快人一步!