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

Explain command to show the space allocation of files?

629


How do I find previous commands in unix?

592


What do chmod command do?

602


What does pipe () return?

592


What is the search command in unix?

599






What is a command and examples?

583


What is the use of sed command in unix?

597


How do you grep recursively?

555


Why is awk called awk?

577


Who wrote grep?

579


How do I delete files from command prompt?

549


What is $0 bash?

646


How can you see the command line history?

582


What are the differences among a system call, a library function, and a unix command?

567


Is ‘du’ a command? If so, what is its use?

633