?
Solved

where is my  /home

Posted on 2004-04-14
6
Medium Priority
?
260 Views
Last Modified: 2012-05-04
How can I known /home stay on wich partition I use command fdisk -l  out put is below

Thank



[root@localhost staff]# fdisk -l

Disk /dev/ide/host0/bus1/target0/lun0/disc: 40.0 GB, 40020632064 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

                                Device Boot    Start       End    Blocks   Id  S
ystem
/dev/ide/host0/bus1/target0/lun0/part1   *         1       764   6136798+  83  L
inux
/dev/ide/host0/bus1/target0/lun0/part2           765      4865  32941282+   5  E
xtended
/dev/ide/host0/bus1/target0/lun0/part5           765       827    506016   82  L
inux swap
/dev/ide/host0/bus1/target0/lun0/part6           828      4865  32435203+  83  L
inux
[root@localhost staff]#
0
Comment
Question by:teera
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 1

Assisted Solution

by:hal3000
hal3000 earned 120 total points
ID: 10829855
Hi teera,
try the following command

    df .



Good luck
0
 

Author Comment

by:teera
ID: 10829995
Thank  hal3000
what is the difference between df and fdisk -l
0
 
LVL 8

Assisted Solution

by:da99rmd
da99rmd earned 280 total points
ID: 10830871
df - diskfree tool checks how much space file/dirs take
fdisk - hardisk partitioning tool, used to make and maintain partitions.

/Rob
0
NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

 
LVL 8

Assisted Solution

by:da99rmd
da99rmd earned 280 total points
ID: 10830885
Sry change the line
df - diskfree tool checks how much space file/dirs take
to
du - diskusage tool checks how much space file/dirs take( use the -sh to get sums and Gb)
and add the line
df - diskfree tool checks how much space is left on each partition.(use the -h to ge Mb Gb)

/Rob
0
 
LVL 3

Assisted Solution

by:captainmish
captainmish earned 160 total points
ID: 10841560
Hi teera
use " cat /etc/fstab " to find out where home is mounted
you can also get more info on your mounted stuff with mount -l
to go straight to your home directory use " cd ~ "
Hope that helps
0
 
LVL 10

Accepted Solution

by:
Mercantilum earned 240 total points
ID: 10848484
Simply "df -k /home"
0

Featured Post

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month11 days, 7 hours left to enroll

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question