Computer Science - Unix - Discussion
Discussion Forum : Unix - Section 2 (Q.No. 3)
3.
Which of the following commands is used to rename a file?
Discussion:
6 comments Page 1 of 1.
Bhaiya Gaikwad said:
8 years ago
MV command has 1 inode number if u move a file on location to another location u can rename this file but inode number is same only rename the file.
Right answer is MV.
Right answer is MV.
Manjeet said:
9 years ago
How can we rename it?
I think ren command is used for renaming a file.
I think ren command is used for renaming a file.
Nilesh S. said:
9 years ago
If you use mv command on file in the same directory then it works as rename.
If you have a file the name of that file is one.txt you use mv command then $mv one.txt two.txt then here one.txt file name changed to the two.txt.
If you have a file the name of that file is one.txt you use mv command then $mv one.txt two.txt then here one.txt file name changed to the two.txt.
Dinesh said:
1 decade ago
If you have filename as: file1.
Let's change its name to myfile using mv:
$mv file1 myfile.
That's it simple!
Let's change its name to myfile using mv:
$mv file1 myfile.
That's it simple!
Abhilasha said:
1 decade ago
Is the mv command rename the file? how?
Karthika said:
1 decade ago
mv cmd used for moving/renaming files.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers