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

Where can I find bash in linux?

0 Answers  


What is the best cpu stress test?

0 Answers  


How to root mirror in linux?

0 Answers  


Suppose I lost a root password and I need to give it, I treid to change it through single usermode even though I am not get a password, then what is the otherprocedure to give a root password?

0 Answers  


What are the options of wc command?

0 Answers  


in unix how to change old name to new name

7 Answers   Google,


How use linux command line?

0 Answers  


What happens to hard link when file is deleted?

0 Answers  


What are two subtle differences in using the more and the pg commands?

2 Answers   Airtel,


in unix how to change old name to new name

7 Answers   Google,


How do you execute more than one command or program from a single command line entry?

0 Answers  


How to schedule cron backup to run on 4th saturday of month??

11 Answers   HCL,


Categories