Linux Create File

RSS
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/linux-create-file/
PINTEREST
PINTEREST
INSTAGRAM

Sometimes creating a file empty or with a little content can be important. In this post we will look how to create a file from command line interface. Here is alternative ways to create files.

Touch

Touch command is the first coiche for creating empty file with the current user ownership.

Echo

Echo command is very usefull command to put stringg into the standard output. I we redirect our output to a file new file will be created.

We can provide some text data to put into newly created file.

Cat

Cat is a command especially created for concatenate files and print on the standard output.

After putting command we should press CTRL+d to exit from input mode.

RSS
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/linux-create-file/
PINTEREST
PINTEREST
INSTAGRAM

Leave a Reply

Your email address will not be published.

Enjoy this blog? Please spread the word :)