in unix how to change old name to new name

Answers were Sorted based on User's Feedback



in unix how to change old name to new name..

Answer / anil.gaurav

mv Command:

Use this command to change the name of file and
directories.

% mv foo foobar

The file that was named foo is now named foobar

Is This Answer Correct ?    9 Yes 0 No

in unix how to change old name to new name..

Answer / v.balaviswanathan

$ mv name1.txt name2.txt

Where name1 is the old name

name2 is the new name

Is This Answer Correct ?    4 Yes 0 No

in unix how to change old name to new name..

Answer / saeed

mv oldfliename newfilename

Is This Answer Correct ?    2 Yes 0 No

in unix how to change old name to new name..

Answer / k.v.ramayya

one file and directory is moove one place to another places
and drectories in any places

Is This Answer Correct ?    1 Yes 1 No

in unix how to change old name to new name..

Answer / ravi prakash

for renaming in red hat linux

command is

for example we have to rename folder Hello to Hi

then command is

$ rename Hello hi Hello

so by this Hello rename to hi..

Is This Answer Correct ?    0 Yes 0 No

in unix how to change old name to new name..

Answer / jaswant

#mv oldname newname

or
#ren oldname newname

Is This Answer Correct ?    0 Yes 0 No

in unix how to change old name to new name..

Answer / redhadon

I think we should use the following command

#ren <oldname path> <newnamepath>

eg

#ren Desktop/file1 file2

{ here we change the old name FILE1 to new name FILE2

Is This Answer Correct ?    2 Yes 4 No

Post New Answer

More Linux Commands Interview Questions

Please send Security on linux related questions and answers.

0 Answers   Linux,


How do I stress test my cpu?

0 Answers  


What are grep patterns called?

0 Answers  


What is the difference between rmdir and rm r?

0 Answers  


In order to improve your system’s security you decide to implement shadow passwords. What command should you use?

0 Answers  






How would you find whether a remote server is up or not?

8 Answers   HP,


Is cmake only for c++?

0 Answers  


What command should you use to check the number of files and disk space used and each user’s defined quotas?

0 Answers  


How will retrieves incoming mails from different web sites

2 Answers   HCL, HP,


What does in makefile do?

0 Answers  


You have a tab delimited file called phonenos and want to change each tab to four spaces. What command can you use to accomplish this?

0 Answers  


Explain about the command elm?

0 Answers  


Categories