This is guide, howto create (or append to) text file without text editor on Linux shell / command line.
Create Text File Without Text Editor on Command Line
# Create file
$ cat > /tmp/temp_file_name.txt
some content
more content
and even more content
# View file content
$ cat /tmp/temp_file_name.txt
some content
more content
and even more content
Append to Temporary File Without Editor on Command Line
# Append to file
$ cat >> /tmp/temp_file_name.txt
append content
append more content
append even more content
# View file content
$ cat /tmp/temp_file_name.txt
some content
more content
and even more content
append content
append more content
append even more content
2 comments on “Linux: Create Text File on Linux Shell / Command Line”