How To Crate Text Files In Linux Shell Command



How To Crate Text Files In Linux Shell Command
 (381) dminister a web business
How To Crate Text Files In Linux Shell Command
Post Description:
Post Tags: how, to, crate, text, files, in, linux, shell, command
This Post Has Been Viewed 1269 Times Since Sat Aug 26, 2006 12:53 am Posted By unix with 1 replies
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

Leave Your Comments     [ dejar commentarios ]
  * Name     [nombre]

  * eMail (will not be published)     [coreo electronico]

* Enter Your Reply or Comments:    [commentarios]


Add Picture To Comments         [incluir foto]
YES NO             upload
Receive Replies on my Comments (An email will be sent to you when someone replies to your comments)

     

Comments and replies About How To Crate Text Files In Linux Shell Command




:: 1 :: #46785 - Reply By SIRA NDIOKHO On Sun Mar 23, 2008 4:49 pm
this web was very helpful for me and iwill recommend to my other friends.
thanks