Jack Jack - 2 years ago 94
Linux Question

How to copy a specific file in a folder using terminal

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?

Answer Source

Copy command works well.

cp /currentfolder/filename /currentfolder/newfilename
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download