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

Briefly, how do you install Oracle software on UNIX.

2 Answers  


what is virtual machine?

2 Answers   Infosys,


Why is grep called grep?

0 Answers  


what is the use of ls -l command & what is the information it gives about user ?

5 Answers  


Is it inbetween or in between?

0 Answers  






What is the difference between Shell Programming and Shell scripting?

10 Answers   HCL, TCS, Wipro,


what does the command 'wc' do?

4 Answers  


what is the difference between commmands cmp and diff?

9 Answers   iNautix,


What UNIX command will control the default file permissions when files are created?

4 Answers  


How do I run a whois command?

0 Answers  


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

8 Answers  


what is the difference between npar and vpar in HP-UX?

1 Answers   CSC,


Categories