How to rename files and folders?

Answers were Sorted based on User's Feedback



How to rename files and folders?..

Answer / shami.r

mv filename newfilename

Is This Answer Correct ?    130 Yes 10 No

How to rename files and folders?..

Answer / mahfooz

mv file/folder newfile/newfolder

Is This Answer Correct ?    31 Yes 8 No

How to rename files and folders?..

Answer / shiva

mv <old filename> <new filename>

mv <old foldername> <new foldername>

Is This Answer Correct ?    22 Yes 5 No

How to rename files and folders?..

Answer / siva

example:
if u wanna convert "old" into "new"
then....

command:

rename old new old


hint:
type ur "new name" between "old name".

Is This Answer Correct ?    14 Yes 6 No

How to rename files and folders?..

Answer / n k reddy

mv oldfilename newfilename

Is This Answer Correct ?    1 Yes 0 No

How to rename files and folders?..

Answer / rahul rai

$:>cat > first
this is my first file.
my name is rahul rai.
i am doing MCA.

To rename file "first" with the name "second" we can use
the following command .

$:>rename first second first

$:>cat second
this is my first file.
my name is rahul rai.
i am doing MCA.

Is This Answer Correct ?    5 Yes 7 No

How to rename files and folders?..

Answer / murali

also we can use this command

"rn file1 file1"

Murali
dharanmu@yahoo.com

Is This Answer Correct ?    17 Yes 82 No

Post New Answer

More Unix Commands Interview Questions

If we want to see first 35 lines of a file which command we have to use?

8 Answers  


A file has 1000 lines and i want to display only 1st line how to do it? pls ..tel me

7 Answers   CTS,


How do I search for a file in unix command?

0 Answers  


How to open a Database using Unix Command Please Do Reply

9 Answers   Cognizant, CTS,


Can you enlist some commonly used network commands?

0 Answers  






How we will execute previous command in vi editor?

8 Answers   Infosys,


how many types of file in unix?

34 Answers   MNC, TCS,


What is grep and how do you use it?

0 Answers  


How to get a particular string as your prompt ? Give syntax of that command?

3 Answers  


What does #!/ Bin sh do?

0 Answers  


in UNIX ,What is the command to view contents of a large error log file?

7 Answers  


What is the size of time_t?

0 Answers  


Categories