Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to copy a specific file in a folder using terminal

Tags:

linux

command

I am using terminal on linux. I am in my current folder now. I want to take a file in this folder that I am currently in and copy it in the exact same folder and I also want to rename it.

What command should I use?

like image 736
Jack Avatar asked Sep 16 '13 15:09

Jack


1 Answers

Copy command works well.

cp /currentfolder/filename /currentfolder/newfilename
like image 188
SriniV Avatar answered Oct 21 '22 13:10

SriniV