I'm running the following command:
sudo cp /srv/site/pro/config/test.env /srv/site/.env
However, if the file /srv/site/.env already exists it does not seem to overwrite.
How can I make sure the command overwrites the existing file?
I'm running the following command:
sudo cp /srv/site/pro/config/test.env /srv/site/.env
However, if the file /srv/site/.env already exists it does not seem to overwrite.
How can I make sure the command overwrites the existing file?
cp --force or cp -f
Please read the man page for cp as well: http://unixhelp.ed.ac.uk/CGI/man-cgi?cp