cancel
Showing results for 
Search instead for 
Did you mean: 

/dev/full

 
SOLVED
Go to solution
Highlighted
singvey
Frequent Advisor

/dev/full

what is the function of /dev/full?
which device does /dev/full connect to?
when the system will assign the /dev/full?
6 REPLIES 6
DCE
Honored Contributor

Re: /dev/full

do you mean /dev/null?


I use /dev/null to zero out a log file that is in use. If a log file is too big, and needs to be reduced, you have to shut downthe application using it before reducing the size. /dev/null lets you get around that. It resets the file size to zero, and allows te logiing to continue. You do this via the following command

cat /dev/null > filename.log
singvey
Frequent Advisor

Re: /dev/full

# ll f*
crw-rw-rw- 1 bin sys 3 0x000003 Aug 17 12:37 full
#

it is true /dev/full
Patrick Wallek
Honored Contributor

Re: /dev/full

/dev/full is not something that is standard HP-UX. I just checked a couple of my machines and I don't have it.

DCE
Honored Contributor

Re: /dev/full

I have worked on literally several hundred hp systems and never seen a /dev/null device file
Robert-Jan Goossens
Honored Contributor
Solution

Re: /dev/full

Hi,

Check this page.

http://www.faqs.org/faqs/hp/hpux-faq/section-294.html

--
A device file with slightly similar behavior to /dev/zero can be created
on 10.x as follows:

# mknod /dev/full c 3 3

Reading from this device will always succeed and report that the
requested number of bytes were read. However, no data will actually be
copied to the read buffer.
--

Regards,
Robert-Jan
Ron Irving
Trusted Contributor

Re: /dev/full

/dev/null I have used frequently, to id drives in an array, (jamaica, sc10, fc10.)

# dd if=/dev/dsk/c2t2d0 of=/dev/null
it lights up the drive, without creating ginormous files. c to end it. Very handy utility.
Should have been an astronaut.