How can my script change my hosts file and fetch the password in a txt file i have
I am trying to change my /etc/hosts with /etc/hosts.template
the command i'm running is sudo echo "/etc/hosts.template" > /etc/hosts < password.txt I keep getting /etc/hosts : permission denied Any help will be very appreciated. Thanks |
You can rename it.
Quote:
Quote:
Please do not create duplicate threads. http://www.linuxquestions.org/questi...pt-4175504914/ |
looks like duplicate of http://www.linuxquestions.org/questi...pt-4175504914/
|
Quote:
I wouldn't rename that file, personally |
Quote:
Code:
sudo cp /etc/hosts.template /etc/hosts |
Thanks everyone for the suggestions.
Quote:
Tmtkobedmx8 |
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate of https://www.linuxquestions.org/quest...pt-4175504914/.
|
All times are GMT -5. The time now is 02:01 PM. |