[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 277
  • Last Modified:

where is my /home

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
teera
Asked:
teera
5 Solutions
 
hal3000Commented:
Hi teera,
try the following command

    df .



Good luck
0
 
teeraAuthor Commented:
Thank  hal3000
what is the difference between df and fdisk -l
0
 
da99rmdCommented:
df - diskfree tool checks how much space file/dirs take
fdisk - hardisk partitioning tool, used to make and maintain partitions.

/Rob
0
NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

 
da99rmdCommented:
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
 
captainmishCommented:
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
 
MercantilumCommented:
Simply "df -k /home"
0

Featured Post

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!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now