I am using terminal in linux. Now I am in the current folder. I want to take the file in this folder, which I am currently entering, and copy it in the same folder, and I also want to rename it.
Which command should be used?
The copy command works well.
cp /currentfolder/filename /currentfolder/newfilename
If you want to copy the file as a .cpp file, it is very easy to use:
cp filename.cpp destination
Source: https://habr.com/ru/post/1502433/More articles:How to dynamically create a new site in Multisite using a PHP script? - wordpresshttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1502429/should-i-and-how-to-add-methods-to-int-in-python&usg=ALkJrhh31pLiz2sBPoLv3KJ-c5W9CMRXsgIs C ++ 0x / TR1 safe to use when portability is important? - c ++AngularJS - options in css files - angularjsHow to get the largest number from a list in clojure - clojureHow to get the signal strength of a connected WiFi android? - androidSQL Server Update Permissions - sqlHide group without child - ExpandableListView - javaMagento random sort option - magentoLine breaks with WCF, JSON, and a non-Windows client - jsonAll Articles