Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

what is the command to create a file?

Status
Not open for further replies.

q4s72534

MIS
Joined
Aug 19, 2003
Messages
59
Location
US
thanks
 
You have the choice, depending of what you need ...

To create an empty file :
touch file
File with datas :
echo "First line" > file
echo "Second line" >> file
Copying file to another :
cp source_file file
Create file with editor :
vi file

and much of other possibilities . . .

Jean Pierre.
 
.... two which are:

> file

or

cat /dev/null > file

vlad
+----------------------------+
| #include<disclaimer.h> |
+----------------------------+
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top