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


Please Help Members By Posting Answers For Below Questions

Information technology is widely used in

1662


How is grep so fast?

750


Who whoami linux?

754


What is Data Command?

782


What is mkdir?

729


What is shell scripting commands?

782


What is file and example?

814


If the programmer wishes to execute an instruction at the specified time. Which command is used?

1185


Why we use pwd command in linux?

743


Why makefile is used in linux?

741


What is the symbol of linux?

771


State and explain about features of UNIX?

765


What are grep commands?

744


What are the linux commands used in devops?

750


What is the difference between find and locate command in linux?

741