On Sun, Sep 22, 2002 at 06:49:06PM +0200, Michael Pahle wrote: > Hi! > > 'df' is for disks !? > 'du' is for directories !?
You can use du for files too. > How can I get the size of a particular file? > I want to write the size of a particular file in a $variable. wc -c ? ie cat $file |wc -c Though the value might be a little different than what du reports (ie byte count vs disk utilization). -- Hal Burgiss -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list