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

What daemon is used for scheduling of the commands?

0 Answers  


What is the command to list ALL (hidden also) files of current directory & it’s subdirectories?

6 Answers  


Working in Linux/Unix platform, if any command dose not work, say # ls reports as command not found. what to do?

5 Answers  


What does mkdir mean?

0 Answers  


Explain about communication features in UNIX?

0 Answers  






What would be the result of the command paste -s dog cat?

0 Answers  


Did you work with linux? What flavors and versions?

5 Answers   HP,


What is iptables command in linux?

0 Answers  


Diff b/w C-shell and Born-shell

2 Answers   HP,


In a company there are 3 groups i.e Finance, HR and Marketing. Each groups having 3 members. There is a file named as file1.txt. The permission set for the above file is rwx-rw----x. Now the question is only the members of Hr and Marketing group can view and edit the file. But the file is not accessible to the members of Finance Group. Can anyone tell me what would be the exact command for linux.root@localhost#<type the exact linux command>

3 Answers   Six Sigma,


What is clang llvm?

0 Answers  


You are required to restore the file memo.ben. It was backed up in the tar file MyBackup.tar. Which command would you use to do it?

0 Answers  


Categories