[PLUG] Linux question - Device of the CWD

Eric Wilhelm scratchcomputing at gmail.com
Tue Mar 10 05:50:25 UTC 2009


# from William A Morita
# on Monday 09 March 2009 20:23:

>Does anyone know how to determine which device the Current Working
> Directory is on?

I think there's a correlation between `stat -c %D .` and the major/minor 
numbers in /proc/partitions.

--Eric
-- 
"Beware of bugs in the above code; I have only proved it correct, not
tried it."
--Donald Knuth
---------------------------------------------------
    http://scratchcomputing.com
---------------------------------------------------



More information about the PLUG mailing list