How do you move or rename a file or directory?
The mv command serves the dual purpose of moving and renaming files or directories. To rename a file, mv old_filename new_filename is used. Similarly, to move a file to a different directory, the format is mv filename target_directory/. The same logic applies to directories. It’s a versatile command that aids in organising and re-structuring file locations and names.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is “chmod” command?
What is the use of cut command in unix?
What command will bring user back to their home directory in UNIX?
which command is used to stop a running process in unix?
How to get the last ten lines of a file using awk utility?
What are bash commands?
What does this command do? Cat food 1 > kitty
what is the use of "grep" command?
What is a Unix signal, and how do you handle them?
If we want to see first 35 lines of a file which command we have to use?
which script will invoke first ,when /etc/init.d starts
What command a user use to view a long text file one page at a time in UNIX?