Alternatively, you can type cd / to navigate to the Root directory, or type cd ~ to navigate to your Home/User directory. [1] X Research source You can also type cd ~ followed by the path relative to your Home/User folder to navigate to a directory. For example, type cd ~/Documents and press enter to navigate to “/home/user/Documents” directory. Type pwd and press Enter to see what directory you are currently in. Type mkdir followed by the directory name to create a new directory in the directory you are currently in.

Alternatively, you can type cd / to navigate to the Root directory, or type cd ~ to navigate to your Home/User directory. [1] X Research source You can also type cd ~ followed by the path relative to your Home/User folder to navigate to a directory. For example, type cd ~/Documents and press enter to navigate to “/home/user/Documents” directory. Type pwd and press Enter to see what directory you are currently in. Type mkdir followed by the directory name to create a new directory in the directory you are currently in.

Add multiple filenames after the “touch” command to create multiple files (i. e. “touch file_1 file_2 file_3”). Alternatively, you can create a file in any directory you want by adding the directory path after the “touch” command (i. e “touch /home/username/Documents/blank_file. txt”) You can create a file in multiple directories by adding the directory names after the touch command. For example touch category/file1. txt subcategory/blank_file. txt or touch {category,subcategory}/blank_file. txt. [2] X Research source If the file you are trying to create already exists in the directory, the time stamp for that file will be updated instead.

Alternatively, you can type cd / to navigate to the Root directory, or type cd ~ to navigate to your Home/User directory. [3] X Research source You can also type cd ~ followed by the path relative to your Home/User folder to navigate to a directory. For example, type cd ~/Documents and press enter to navigate to “/home/user/Documents” directory. Type pwd and press Enter to see what directory you are currently in. Type mkdir followed by the directory name to create a new directory in the directory you are currently in.

Alternatively, you can type cd / to navigate to the Root directory, or type cd ~ to navigate to your Home/User directory. [3] X Research source You can also type cd ~ followed by the path relative to your Home/User folder to navigate to a directory. For example, type cd ~/Documents and press enter to navigate to “/home/user/Documents” directory. Type pwd and press Enter to see what directory you are currently in. Type mkdir followed by the directory name to create a new directory in the directory you are currently in.

Alternatively, you can use the command cat » to append an existing file. If no file exists with the specified file name, a new file will be created. If a file by that name already exists, then the text you add will be appended to the end of the file instead of replacing the existing text. [4] X Research source

To view the text in the file, simply type “cat” (without the “>” symbol) followed by the file name and press Enter (i. e. cat README. txt). This displays the text in the Terminal.

Alternatively, you can type cd / to navigate to the Root directory, or type cd ~ to navigate to your Home/User directory. [5] X Research source You can also type cd ~ followed by the path relative to your Home/User folder to navigate to a directory. For example, type cd ~/Documents and press enter to navigate to “/home/user/Documents” directory. Type pwd and press Enter to see what directory you are currently in. Type mkdir followed by the directory name to create a new directory in the directory you are currently in.

Alternatively, you can type cd / to navigate to the Root directory, or type cd ~ to navigate to your Home/User directory. [5] X Research source You can also type cd ~ followed by the path relative to your Home/User folder to navigate to a directory. For example, type cd ~/Documents and press enter to navigate to “/home/user/Documents” directory. Type pwd and press Enter to see what directory you are currently in. Type mkdir followed by the directory name to create a new directory in the directory you are currently in.

Nano may not be available on all Linux distributions. To install Nano, type sudo apt install nano and press Enter to install Nano on Ubuntu/Debian. Type sudo yum install nano and press Enter to install Nano on CentOS/Fedora. You can also specify which directory you want to create the file in by entering the path of the directory after the “vi” command (i. e nano /home/username/Documents/website/main. php).

Alternatively, you can type cd / to navigate to the Root directory, or type cd ~ to navigate to your Home/User directory. [6] X Research source You can also type cd ~ followed by the path relative to your Home/User folder to navigate to a directory. For example, type cd ~/Documents and press enter to navigate to “/home/user/Documents” directory. Type pwd and press Enter to see what directory you are currently in. Type mkdir followed by the directory name to create a new directory in the directory you are currently in.

Alternatively, you can type cd / to navigate to the Root directory, or type cd ~ to navigate to your Home/User directory. [6] X Research source You can also type cd ~ followed by the path relative to your Home/User folder to navigate to a directory. For example, type cd ~/Documents and press enter to navigate to “/home/user/Documents” directory. Type pwd and press Enter to see what directory you are currently in. Type mkdir followed by the directory name to create a new directory in the directory you are currently in.

Alternatively, you can add » at the end of the text. This will create a new file if no file by the file name specified exists. If a file by that name already exists, the text will be appended to the end of the existing file text.

Alternatively, you can type cd / to navigate to the Root directory, or type cd ~ to navigate to your Home/User directory. [7] X Research source You can also type cd ~ followed by the path relative to your Home/User folder to navigate to a directory. For example, type cd ~/Documents and press enter to navigate to “/home/user/Documents” directory. Type pwd and press Enter to see what directory you are currently in. Type mkdir followed by the directory name to create a new directory in the directory you are currently in.

Alternatively, you can type cd / to navigate to the Root directory, or type cd ~ to navigate to your Home/User directory. [7] X Research source You can also type cd ~ followed by the path relative to your Home/User folder to navigate to a directory. For example, type cd ~/Documents and press enter to navigate to “/home/user/Documents” directory. Type pwd and press Enter to see what directory you are currently in. Type mkdir followed by the directory name to create a new directory in the directory you are currently in.

Alternatively, you can use the vim in place of the {[kbd|vi}} command. This opens the VIM text editor, which is a newer and more user-friendly version of VI. VIM may not be available on all Linux distributions. If VIM is not installed on your Linux distribution, type sudo apt install vim and press Enter to install VIM on Ubuntu/Debian. Type sudo yum install vim and press Enter to install VIM on CentOS/Fedora. . You can also specify which directory you want to create the file in by entering the path of the directory after the “vi” command (i. e. , “vi /home/username/Documents/Website/index. html”).