[PLUG] Linux question - Device of the CWD

Randal L. Schwartz merlyn at stonehenge.com
Thu Mar 12 13:27:47 UTC 2009


>>>>> "Roderick" == Roderick A Anderson <raanders at cyber-office.net> writes:

Roderick> 	df . | grep ^/dev | cut -d ' ' -f 1

Beware... I've seen df wrap the first column on a long device name, like:

/dev/
   somereallylongmountpoint

:)

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn at stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion




More information about the PLUG mailing list