The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
cat /dev/null freakydancer UNIX for Dummies Questions & Answers 4 09-10-2008 04:34 PM
compare null with non-null nitin Shell Programming and Scripting 8 11-04-2006 07:58 PM
Null Value Khoomfire UNIX for Advanced & Expert Users 1 04-10-2006 10:55 AM
Q1 :/dev/null Q2 -A big123456 UNIX for Advanced & Expert Users 4 11-10-2005 02:16 AM
>/dev/null piltrafa UNIX for Dummies Questions & Answers 1 10-26-2001 06:46 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-03-2008
webmunkey23 webmunkey23 is offline
Registered User
  
 

Join Date: Jun 2008
Posts: 3
/dev/null what is the use of it?

when do you use the path /dev/null
  #2 (permalink)  
Old 07-03-2008
pppswing pppswing is offline
Registered User
  
 

Join Date: Jun 2008
Posts: 14
To empty a file.

cat /dev/null > myfileToEmpty.txt
  #3 (permalink)  
Old 07-03-2008
Yogesh Sawant's Avatar
Yogesh Sawant Yogesh Sawant is offline Forum Staff  
Part Time Moderator and Full Time Dad
  
 

Join Date: Sep 2006
Location: Rossem, Tazenda
Posts: 1,086
when you don't want to see errors:
Code:
find / -type f -name '*yogesh*' 2>/dev/null

read this for more details

Last edited by Yogesh Sawant; 07-03-2008 at 08:43 AM.. Reason: added the link
  #4 (permalink)  
Old 07-03-2008
Roman Voznyuk Roman Voznyuk is offline
Registered User
  
 

Join Date: Jun 2008
Posts: 19
Or to see errors only

make >/dev/null
Closed Thread

Bookmarks

Tags
dev, devnull, null

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 11:39 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0