+1 vote
922 views
in Programming by (1.9k points)
i want to know which command can be used to rename a file in Linux.?

3 Answers

0 votes
by
The move command mv is typically used for this purpose.
+1 vote
by
Just move it by command mv to the same directory but with your desired name
+1 vote
by Expert (5.1k points)

You need to use the mv command. It is used to rename and move files and directories. The general syntax is as follows:

 
mv old-file-name  new-file-name
mv [options] old-file-name  new-file-name
mv file1 file2
 
 

Not a Member yet?

Ask to Folks Login

My Account

Your feedback is highly appreciated