Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Linux: how to copy a file with a new name into the same directory?

Tags:

linux

I have a file under /usr/share/applications/eclipse.desktop and I want to copy and rename it, creating a new file /usr/share/applications/eclipse_clean.desktop.

What is the simplest way to do this?

like image 557
modulitos Avatar asked Dec 26 '22 13:12

modulitos


1 Answers

cp /usr/share/applications/eclipse.desktop /usr/share/applications/eclipse_clean.desktop
like image 82
CodeBird Avatar answered Dec 29 '22 01:12

CodeBird