in unix how to change old name to new name
Answer Posted / javed
mv <oldfilename> <newfilename>
eg:-
[root@localhost]# touch file1 //created a file named file1
[root@localhost]# ls //displays the file created
file1
[root@localhost]# mv file1 file2 //command to rename file1
[root@localhost]# ls //displays the renamed file
file2
| Is This Answer Correct ? | 14 Yes | 0 No |
Post New Answer View All Answers
What is p command?
What is the command to calculate the size of a folder?
How commands work in linux?
What Command used to lock user password?
Write a command that will look for files with an extension "c", and has the occurrence of the string "apple" in it.
How do I stress test my cpu?
How do you run a command for a limited time?
Which command is used to terminate a process?
What does chmod do in linux?
How do I check storage on linux?
What is du command in linux?
What does free command do in linux?
What are the basic commands in command prompt?
What is help command in linux?
What is kill 9 in linux?