Today in this video you will learn how to edit and save a file using PuTTy.
Suppose you want to edit a file whose location is /home/root/public_html/etc/hosts then how to edit hosts file using PuTTy.
Follow the steps given below to edit and save a file using PuTTy:
Step::1 Login to PuTTy
Step::2 Begin by entering vi command to edit the file followed by the path as given below:
---------------------------
vi /etc/hosts
---------------------------
Step::3 After running this command in PuTTy you will reach out to the hosts file
Step::4 Enter "i" to insert and then make the changes to the hosts file you want
Step::5 After finishing editing press ESC button to come out of insert mode
Step::6 Now to save the changes enter the command given below:
:wq!
That's it!!!
This is how you edit and save file using PuTTy.
If you enjoyed this tutorial, please consider following us on Facebook and Twitter.
Facebook Page- / redserverhost
Twitter Page- / redserverhost.com
Official website- https://redserverhost.com
If you have any query, feel free to let us know via the comments section below.