You have a /tmp/data directory containing the files .file, file1, and file2. You want to copy the file1 and file2 files only to the /data-old directory that already exists. In a terminal window, which command acomplishes this?
A. cp /tmp/data/? /data-old
B. cp /tmp/data /data-old
C. cp /tmp/data/. /data-old
D. cp /tmp/data/* /data-old
Answer:D
You have a /tmp/data directory containing the files .file, file1, and file2. You want to copy the file1 and file2 files only to the /data-old directory that already exists. In a terminal window, which command acomplishes this?
A. cp /tmp/data/? /data-old B. cp /tmp/data /data-old C. cp /tmp/data/. /data-old D. cp /tmp/data/* /data-old