Knowledge Base

Get Expert Website Hosting

Choose website reliability and expertise with SiteGround!

Home / Advanced Site Tools / SSH / How to edit files with SSH?

How to edit files with SSH?

Last update: Feb 06, 2020

To create files (e.g. file named .htaccess), use the touch command as shown below:

touch .htaccess

To open the .htaccess file for editing with nano, use:

nano .htaccess

Share this article