Creating A Text File In Linux Shell
creating a text file in linux shell
creating, a, text, file, in, linux, shell
Creating A Text File In Linux Shell
Post Description: creating a text file in linux shell
POST# 1311
Posted On: Thu Apr 24, 2008 7:54 pm
rajeev32
Topic: Creating A Text File In Linux Shell
hello sir

can you show me how i can create a file in linux

i just want to make a simple file for example

thank you
Page# 1


Thu Apr 24, 2008 7:56 pm
1
Web Hosting Support
Reply #1990
here you go

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:
cat > index.html


2. Type the following:
Hello, I am creating index.html file


3. Now hit Control-D, to exit

4. Enter
ls
to list the files in the current directory, you will see [i:cdc522c5d9]index.html[/i:cdc522c5d9] in the list.

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

6. you should see something like this:
Hello, I am creating index.html file
* 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