Linux Commands: Moving Files in Linux

How can a technician move a file called widget.txt from the current directory to /home/fred in Linux?

Which of the following commands would the technician use?

A. ed widget.ext /home/fred

B. move widget.xt/home/fred

C. mv widget.ext /home/fred

D. Op widget.txt /home/fred

The command that the technician will use to carry out the moving of the file is:

Option C: mv widget.txt /home/fred

In Linux, if you want to move files, you can use the "mv" command. This command is similar to the "cp" command, but with "mv" the file is physically moved from one place to another, while "cp" duplicates the file.

Since the technician wants to move the file called widget.txt from the current directory to /home/fred, the appropriate command to use is "mv widget.txt /home/fred". This command will move the file to the specified destination.

← Copying collapsed subtotals in excel The pros and cons of antonia s sole proprietorship business →