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

How do I check my system performance?

0 Answers  


What command you use for cpio to create a backup called backup.cpio of all the users’ home dirs?

2 Answers  


why is the tar command used?

0 Answers  


What is DISM command?

0 Answers  


1.I want to change runlevel but the Users shall not be disturbed?how? 2.Disk have 5gb disk utilization even though files unable to create, why? 3.what are the internal and external command in linux? 4.sar command o/p? 5.how list the open files? 6.what is kernel compiling? 7.How do u See complete configuration in ur system? 8.how will u make a daily updates with cron daily? 9.which port is associated with ttys0? 10.specific some problems linux admin(if u are linux admin)faced and how did u overcome it?

10 Answers   IBM, TCS,






how to create SAMBA server in fedora 9 linux ?

6 Answers   Wipro,


What is command line in unix?

0 Answers  


How do find hard disk revolutions speed?

1 Answers   ACL, HP,


The command ‘umask -S’

0 Answers  


Who whoami linux?

0 Answers  


What are vim commands?

0 Answers  


How do you create a file in linux?

0 Answers  


Categories