Which of the following commands is used to copy a file wb from the programs directory into a file called wbx in the misc directory? A. copy programs/wb misc/wbx B. cp programs/wb misc/wbx C. tar programs/wb misc/wbx D. copy a:programs/wb b:misc/wbx E. None of the above

copy programs/wb misc/wbx
cp programs/wb misc/wbx
tar programs/wb misc/wbx
copy a:programs/wb b:misc/wbx E. None of the above

The correct answer is: B. cp programs/wb misc/wbx

The cp command is used to copy files. The syntax is cp source destination. In this case, the source is programs/wb and the destination is misc/wbx.

The copy command is a Windows command that is used to copy files. The syntax is copy source destination. In this case, the source is a:programs/wb and the destination is b:misc/wbx.

The tar command is used to create archives of files. The syntax is tar czf archive.tar files. In this case, the files to be archived are programs/wb and misc/wbx.

The a: and b: drives are not valid file paths.

Therefore, the correct answer is: B. cp programs/wb misc/wbx

Exit mobile version