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 difference between Shell Programming and Shell scripting?
10 Answers HCL, TCS, Wipro,
Which command is used to delete all files in the current directory and all its sub-directories?
what are the different commands used to view the contents of a file?
Why we are using UNIX OS when we are doing the testing in our application?
What does find command return in unix?
What is command substitution?
how unix kernel distinguishes between a normal file and device file ?
7 Answers Google, IBM, McAfee, Vodafone,
How to check whether some services are running in another server or not? Suppose i am currently in a server named A.I want to check whether some services are running in server B without logging into the server B.
3 Answers Amazon, MBA, Syntel, TCS, Unisys,
Which unix command lists files/folders in alphabetical order?
what is the default signal kill in unix?
What do chmod, chown, chgrp commands do?