Imagine you have a file named report.txt in your Documents folder. You want to organize your files by putting report.txt into a folder named Work.
Which of the following best describes the difference between copying and moving this file?
Think about whether the original file stays where it is after the operation.
Copying creates a duplicate file in the new location while keeping the original file unchanged. Moving transfers the file to the new location and removes it from the original place.
Consider this sequence of actions on a computer:
- Create a file named
data.csvin the Downloads folder. - Move
data.csvto the Desktop. - Delete
data.csvfrom the Desktop.
What is the state of data.csv after these steps?
Remember what happens to a file when you delete it from its current location.
Moving the file transfers it from Downloads to Desktop, so it no longer exists in Downloads. Deleting it from Desktop removes it completely from the computer.
Below are four command-line instructions for copying a file named notes.txt from the folder Projects to Archives. Which command correctly copies the file without deleting the original?
Recall which command is used to copy files and which is used to move or delete.
cp copies the file keeping the original intact. mv moves (copies then deletes original). rm deletes files. Commands combining rm and cp may fail if the file is deleted before copying.
Which of the following commands will cause an error when trying to delete a file named summary.docx?
Consider common commands used in Windows, Linux, and PowerShell.
delete is not a valid command in common shells. del works in Windows CMD, rm in Linux/Unix shells, and Remove-Item in PowerShell.
Given the following sequence of file operations:
1. Copyimage.pngfromPicturestoBackup.
2. Moveimage.pngfromPicturestoWork.
3. Deleteimage.pngfromBackup.
Where does image.png exist after these steps?
Trace each step carefully and consider what happens to the file in each folder.
Step 1 copies the file to Backup (original remains in Pictures). Step 2 moves the original from Pictures to Work (so Pictures no longer has it). Step 3 deletes the copy in Backup. Final location is only Work.