How to rename files and folders?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the comma to display different lines that are found when compare two files?

595


What is grep and how do you use it?

581


What is a command and examples?

589


What does this command do,"$more readme.txt“?

693


Why is shebang used?

599






What is the use of find command in unix?

588


Name the general commands in using unix os for a beginner?

625


How do you grep a case insensitive?

544


What does pipe () return?

598


What does this command do? Cat food 1 > kitty

980


Is command prompt unix?

586


What is the nmap command?

586


What is grep command in unix with examples?

612


How do I search for a file in unix command?

550


What is the significance of the 'tee' command?

600