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

What is pid?

4 Answers  


what are the differences between CUI and GUI interfaces?

52 Answers   College School Exams Tests, HCL, HP, IBM, IBMR, NIIT, Talco, Wipro,


How do I find previous commands in unix?

0 Answers  


What is the pipe command?

0 Answers  


What is file system in unix??

10 Answers   Symphony,






what does a process mean?

7 Answers   Infosys,


what is the shell for dos,nt operating systems?

1 Answers  


Describe the zip/unzip command using gzip.

0 Answers  


Which RAID Levels supported by LVM?

5 Answers  


what are filters?

6 Answers  


what is telnet?

6 Answers  


what will be the output of ls ~/..

27 Answers   ABC,


Categories