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