How To Crate Text Files In Linux Shell Command
how to crate text files in linux shell command
how, to, crate, text, files, in, linux, shell, command
How To Crate Text Files In Linux Shell Command
Post Description: how to crate text files in linux shell command
POST# 921
Posted On: Fri Feb 29, 2008 12:01 pm
unix
Topic: How To Crate Text Files In Linux Shell Command
Often you want to create a text file. In my example, i will be creating a simple index.html file

1. Enter the cat command:

     Code:
cat > index.html


2. Type the following:

     Code:
Hello, I am creating index.html file


3. Now hit Control-D, to exit

4. Enter
     Code:
ls
to list the files in the current directory, you will see index.html in the list.

5. To display the contents of index.html, send this command:

     Code:
cat index.html

6. you should see something like this:

     Code:
Hello, I am creating index.html file


No Repies
(0) Comments for How To Crate Text Files In Linux Shell Command

What do you think?

* name:  

* email:  

* Please enter comments:


Receive Replies on my Comments
(An email will be sent to you when someone replies to your comments)

Add image to comments
yes no             upload