#Introduction
In this tutorial, How to use Bash create file command terminal?
How to use Bash to create a file command terminal
use the touch command to create an empty text file with foo.txt
$ touch foo.bar
$ > foo.bar

To make a text file using the cat command line on Linux. press ctrl+c to quit and save the file.
$ cat > foo.txt

shell command
$ echo 'This is my blog: devopsroles.com' > foo.txt
Append text to an existing file
$ echo 'yet another line: huuphan.com' >> foo.txt

You can use the vi/vim command to create the text file.
Conclusion
You have to use the Bash create file command terminal. I hope will this your helpful. Thank you for reading the DevopsRoles page!