Hey there! any question in your mind? Ask It Now!.

Popular Categories





How to rename a file in Linux?

+1 vote
300 views
asked in Programming by Eathen (1,930 points)
i want to know which command can be used to rename a file in Linux.?

3 Answers

0 votes
answered by anonymous
The move command mv is typically used for this purpose.
+1 vote
answered by pawel10
Just move it by command mv to the same directory but with your desired name
+1 vote
answered by amit_pammu Expert (5,030 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
 
 

Related Questions

+9 votes
1 answer 52 views
+3 votes
2 answers 116 views
+4 votes
3 answers 900 views
0 votes
1 answer 338 views
0 votes
0 answers 108 views
0 votes
1 answer 388 views
+6 votes
2 answers 1,521 views
+4 votes
5 answers 713 views
+2 votes
1 answer 141 views

Not a Member yet?

Ask to Folks Login

My Account
1071 Folks are online
68 members and 1003 guest online
Your feedback is highly appreciated