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 to recover /etc/passwd file and /etc/shadow file?
What does mkdir mean in linux?
What is the syntax of mkdir?
What are grep commands?
You want to know how many lines in the kickoff file contains ‘prize’. Which of the following commands will produce the desired results?
How can I check the exit status of my previous command in Linux operating system?
How do I check disk space in linux?
What is mkdir?
What does c mean in linux?
What is the pwd command?
What is bash linux?
What is a simple command?
What does chmod 644 do?
How do I find the process id in linux?
What is the difference between rmdir and rm r?