LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   CLI: get the df -h for the disk of the $HOME (https://www.linuxquestions.org/questions/linux-general-1/cli-get-the-df-h-for-the-disk-of-the-%24home-946033/)

patrick295767 05-20-2012 01:56 PM

CLI: get the df -h for the disk of the $HOME
 
Hi, I would like to know the free space available (and other info) for the disk of the user ($HOME) in a robust method, such as taking consideration of the file /etc/passwd which tells us where is the $HOME directory of a given user.

Thanks a lot !

catkin 05-20-2012 10:40 PM

What have you tried so far? Do you have a specific question?

patrick295767 05-21-2012 02:00 AM

Quote:

Originally Posted by catkin (Post 4683596)
What have you tried so far? Do you have a specific question?

quota ; not working since not used


Well, I plan to code a bash/ksh script that would look into /etc/fstab /etc/password with the $USER and mount and some df ... likely. It will work but I would like something from linux core system (if possible)... to avoid this maybe non necessary coding, since already possible with Linux.

Thanks

I wish you a nice day!

pan64 05-21-2012 02:13 AM

df -h ~username will automatically mount user's home if you are allowed to cd into.


All times are GMT -5. The time now is 01:27 PM.