The Linux Programming Bible: The Complete Guide to Learn Linux Commands, Linux Operating System and Shell Scripting Step-by-Step by Nicholas Ayden

The Linux Programming Bible: The Complete Guide to Learn Linux Commands, Linux Operating System and Shell Scripting Step-by-Step by Nicholas Ayden

Author:Nicholas Ayden [Ayden, Nicholas]
Language: eng
Format: epub
Published: 2019-11-27T00:00:00+00:00


Create a file with the cat command

Using the cat command you can create a file quickly and add text. To do that, use the ">" operator to redirect the text in the file.

cat > filename.txt

This is how the file is created and you can start filling it with text. To add several lines of text, simply press Enter at the end of each line. When you are done, press CTRL + D to exit the file.

To verify that the file in effect has been created by the previous command, simply use the following ls command in the terminal:

ls -l



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.