- Forums
- Tutorial and Guides
- How To Create A Text File In Linux
This Page Contains information about How To Create A Text File In Linux By Webune Tutorials in category Tutorial and Guides with 0 Replies. [723], Last Updated: Mon Jun 24, 2024
Webune Tutorials
Wed Oct 07, 2009
0 Comments
482 Visits
hi, welcome to Webune Forums. We specialize in Web Hosting and Web Design for your web sites. if you are interested in web hosting, please check out our low priced web hosting packages.
today we are going to show you how you can make a simple text file from the command line in the linux shell.
once you have logged into your linux server or if you are at home, be sure to open a shell session.
for the purpose of this turtorial, we are going to be creating a file called webune.txt
at the shell prompt enter:
cat > webune.txt
next enter this:
Hello, I am creating a simple file with Webune
now hit Control-D to end the file
now enter this command:
ls
you will see webune.txt in your list, now view the contents of webune.txt by sending this command:
cat webune.txt
thats it, as you can see, it has the message you entered.
ok.. how about if you want to edit it?
well, you can use a text editor like VI to edit. but for this tutorial we are going to keep things simple, we are going to be using nano. nano comes free with fedora so enter this command to edit our file:
nano webune.txt
there you can make the changes you want and save them.
done