---
title: "How to Create a New File"
description: "When creating your website, you will often need to create additional page files. These may be display file such as html or php, or text files used for reference or configuration. Although a popular..."
url: https://www.inmotionhosting.com/support/website/create-new-file/
date: 2013-02-01
modified: 2023-02-03
author: "Scott Mitchell"
categories: ["Website"]
type: post
lang: en
---

# How to Create a New File

When creating your website, you will often need to create additional page files. These may be display file such as html or php, or text files used for reference or configuration.

Although a popular method is to create the folder on your local machine and upload the file to your hosting account, you can also use your File manager or FTP client to log into the account and create the file directly on the server. Below are instructions for simply creating a new file using the cPanel File Manager, the Filezilla FTP client, and the NotePad++ file editor.

- [Which Option Should I Choose?](#choose)
- [Using the cPanel File Manager](#cpanel)
- [Using FileZilla FTP Client](#filezilla)
- [Using NotePad++ File Editor](#notepad)
- [Using Command Line Interface (CLI)](#cli)

## Which Option Should I Choose?

If you are brand new to website building, you may not have the [Filezilla](https://filezilla-project.org/download.php?type=client) or [Notepad++](https://notepad-plus-plus.org/download/) software on your computer so the cPanel may be the way to go. Using the cPanel File Manger requires no additional download or configuration, however the FTP and Notepad++ software is better overall as you gain more experience and work with more than one file at a time.

## Using the cPanel File Manager

![How to Create a File or Folder in cPanel (Paper Lantern)](https://i.ytimg.com/vi_webp/_42H0hQXQyw/maxresdefault.webp)

1. [Log into the cPanel](/support/edu/cpanel/how-to-log-into-cpanel/)
2. Click the [File Manager](/support/edu/cpanel/using-file-manager-in-cpanel/) button, then [navigate to the folder](/support/website/where-to-upload-files/) where you want to create the file.[![](https://www.inmotionhosting.com/support/wp-content/uploads/2012/03/cpanel_file-manager-paper-lantern.png)](/support/wp-content/uploads/2012/03/cpanel_file-manager-paper-lantern.png)
3. Click the **+File** icon found in the top-left of the toolbar.[![](https://www.inmotionhosting.com/support/wp-content/uploads/2013/02/cpanel_create-file.png)](/support/wp-content/uploads/2013/02/cpanel_create-file.png)
4. After clicking the icon, a popup box will appear for you to name the file. For our example, we name the file test.html. Click on the **Create New File** button once you name the file.[![](https://www.inmotionhosting.com/support/wp-content/uploads/2013/02/cpanel_creating-new-file.png)](/support/wp-content/uploads/2013/02/cpanel_creating-new-file.png)

## Using Filezilla FTP client

1. Open your Filezilla FTP program and [connect to your hosting account](/support/website/ftp/configuring-your-site-in-filezilla/).
2. Navigate to the correct folder in the right hand panel. If you are unsure which folder you should be in, use [this article](/support/website/where-to-upload-files/) to help you decide.
3. Using the lower-most right hand panel, right-click anywhere in the whitespace and a popup menu will appear. Select the **Create New File** option.[![create file in filezilla](https://www.inmotionhosting.com/support/wp-content/uploads/2013/02/edu_howto_website_create-file_4-filezilla-create-file.png)](/support/wp-content/uploads/2013/02/edu_howto_website_create-file_4-filezilla-create-file.png)
4. This brings a popup where you will need to name the file. After naming your file, click on the **OK** button to save it on the server.[![name new file in filezilla](https://www.inmotionhosting.com/support/wp-content/uploads/2013/02/edu_howto_website_create-file_5-filezilla-name-file.png)](/support/wp-content/uploads/2013/02/edu_howto_website_create-file_5-filezilla-name-file.png)

## Using NotePad++ File Editor

1. Open your NotePad++ program in your desktop.
2. [Connect to the server](/support/website/ftp/connect-ftp-notepad-plus/) using FTP function.
3. Right click in whitespace of the upper FTP panel and click on the **Create New File** option.[![create new file](https://www.inmotionhosting.com/support/wp-content/uploads/2013/02/edu_howto_website_create-file_6-npp-create.png)](/support/wp-content/uploads/2013/02/edu_howto_website_create-file_6-npp-create.png)
4. You will be prompted to name the file with a popup. Name the file and click on the **OK** button to save it.[![name and save file](https://www.inmotionhosting.com/support/wp-content/uploads/2013/02/edu_howto_website_create-file_7-npp-name.png)](/support/wp-content/uploads/2013/02/edu_howto_website_create-file_7-npp-name.png)

## Using Command Line Interface (CLI)

There are many ways to create a file using the Linux command line, but the **touch** command is one of the easiest.

1. [Connect to your server via SSH](https://www.inmotionhosting.com/support/server/ssh/how-to-login-ssh/).
2. Navigate to the folder location you want to create the file in.cd public_html
3. You can then create a file using the touch command.touch test.html
4. If you want to verify the file was created, use the “ls -l” command or simply “ll”.llYou will then see your files in a long list and should see your new file included.![View if new file created with Linux command line interface](https://www.inmotionhosting.com/support/wp-content/uploads/2023/02/new-file-listed-in-command-line.png)
5. You can then open the file using your preferred editor such as Emacs, Vim, or Nano. Here is an example of using Nano:nano test.html![Viewing new file in the nano editor](https://www.inmotionhosting.com/support/wp-content/uploads/2023/02/Selection_1741.png)

Congratulations! You have just created a new file! Obviously, these steps only created a blank file. You may want to check out our article on [how to edit a file](/support/website/how-to-edit-a-file/) so you can add some content to your website.
