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
How many types of commands are there in linux?
What is the difference between diff and cmp command in unix?
You want to know how many lines in the kickoff file contains ‘prize’. Which of the following commands will produce the desired results?
What is the export command used for?
Who whoami linux?
Who am I command in linux?
What are the basic command in linux?
What is lsof command in linux?
How do I check cores in linux?
What are different command to check ram, process and hdd of linux machine?
What are the basic dos commands?
What is env command in linux?
How compile c++ program in cmd?
What language is a makefile written in?
What is devops model?