The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > The Lounge > What's on Your Mind?
Google UNIX.COM


What's on Your Mind? Come inside and relax a while. Maybe play a few Video Arcade Games if you have free time.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Use of set Command in UNIX DilipPanda UNIX for Dummies Questions & Answers 1 02-06-2008 01:44 AM
unix command lalith_lallu Shell Programming and Scripting 4 05-01-2007 08:28 PM
How to use more than one MPE command STREAM with Unix command in a single shell? bosskr HP-UX 1 10-16-2006 01:16 PM
How to use more than one MPE command STREAM with Unix command in a single shell? bosskr Shell Programming and Scripting 0 09-19-2006 06:44 PM
wc command help.... and other unix command....... urgent dashi2k UNIX for Dummies Questions & Answers 1 01-20-2005 02:39 PM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-15-2007
Registered User
 

Join Date: Aug 2007
Posts: 2
Thumbs up Whatr is the Unix command ?

Hello everybody i am a new member of this community

I just wanted to know that what is the unix command to empty the content of a file.

Thank You All.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 08-15-2007
Technorati Master
 

Join Date: Mar 2005
Location: Large scale systems...
Posts: 2,448
Welcome to the forum !

Code:
cp /dev/null filename
cat /dev/null > filename
Many other commands based on the shell that you are using

You can use the search facility of the forum.
There are ' n ' number of threads discussing the same.

Welcome again !
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 01:19 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0