Linux Stall
  • Home
  • Android
  • How to
  • Perl
  • Tips
  • Tutorials
No Result
View All Result
Linux Stall
No Result
View All Result
Home How to

How to find the partition of hard disk belonging to a specific file?

Ayush Goyal by Ayush Goyal
January 5, 2012
in How to
43 2
0
How to find the partition of hard disk belonging to a specific file?
15
SHARES
750
VIEWS
Share on FacebookShare on Twitter

How to check to which partition a particular file belongs?

Following procedure will guide you to discover that partition on which a “file” resides.

We do this with the help of df command. It is used get a report of space utilized on disk and also mentions files/directories.

This command is used as follows:

$ df
$ df /etc/TestDirectory
$ df /etc/TestFile

df can be followed by any path to desired location. Lets understand with an example, we are here finding out location of /etc/gtk-2.0/

$ df -T /etc/gtk-2.0/

This command generates an output which looks like following:

Filesystem   Type 1K-blocks Used    Available Use% Mounted on
/dev/sda7    ext4 18141972  9862580 8095148   55%  /

 

 

Tags: df commandhow to
Next Post

How to install RPM package on Ubuntu?

Ayush Goyal

Ayush Goyal

Yet another geek!

Related Posts

The three-dimensional network topology infographics with ip addresses 3d illustration
How to

Identifying and Resolving IP Address Conflicts with Linux

July 23, 2020
procmon
How to

Microsoft releases ProcMon (Process Monitor) utility for Linux

July 21, 2020
searching file
How to

How to find files by size in Linux

July 12, 2020
Blue padlock icon computer security system vector
How to

How To Enable TLS Encryption On Postfix

July 12, 2020
Blue padlock icon computer security system Encryption
How to

Running Commands Automatically Over SSH

July 12, 2020
sar command output
How to

How to Install And Enable SAR (SYSSTAT) On Linux Servers

July 12, 2020
Next Post
install rpm on ubuntu

How to install RPM package on Ubuntu?

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

  • Terms and Conditions
  • Contact Us
  • About Us

© 2012 - 2020 Linux Stall - A place for all your Linux needs.

No Result
View All Result
  • Home
  • Android
  • How to
  • Perl
  • Tips
  • Tutorials

© 2012 - 2020 Linux Stall - A place for all your Linux needs.

Welcome Back!

Login to your account below

Forgotten Password?

Create New Account!

Fill the forms bellow to register

All fields are required. Log In

Retrieve your password

Please enter your username or email address to reset your password.

Log In