LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-20-2012, 01:56 PM   #1
patrick295767
Member
 
Registered: Feb 2006
Distribution: FreeBSD, Linux, Slackware, LFS, Gparted
Posts: 664

Rep: Reputation: 138Reputation: 138
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 !
 
Old 05-20-2012, 10:40 PM   #2
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
What have you tried so far? Do you have a specific question?
 
Old 05-21-2012, 02:00 AM   #3
patrick295767
Member
 
Registered: Feb 2006
Distribution: FreeBSD, Linux, Slackware, LFS, Gparted
Posts: 664

Original Poster
Rep: Reputation: 138Reputation: 138
Quote:
Originally Posted by catkin View Post
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!
 
Old 05-21-2012, 02:13 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,692

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
attaching another disk to /home mahmoodn Ubuntu 8 03-14-2011 01:32 AM
Appending another disk to /home mahmoodn Ubuntu 10 12-08-2010 02:22 AM
Disk usage for /home partition? digger95 Slackware 6 04-13-2008 04:31 PM
How to view/mount separate disk -- move /home to second disk Spearhead40 Ubuntu 12 11-03-2007 03:37 PM
How to Add a new disk to /home? beelzebub888 Linux - General 4 12-24-2002 12:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration