How to create a File and Folder via SSH

How to create a file via SSH

To create a file via SSH use touch command.
Like I want to create a file lophost.text in /home, I will use below command

touch /home/lophost.txt

This will be a blank file, which we can edit later.

How to create a folder / directory via SSH

Use command mkdir to create a new folder / directory. Like I want to create a folder lophost in /home

mkdir /home/lophost

[dedicated_hosting]

Our Top Rated Host

Related Posts