find the free space of a particular directory


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting find the free space of a particular directory
# 1  
Old 07-06-2009
find the free space of a particular directory

Hi Guys,

I want to find the free space of a particular directory,,

Regards,
Magesh
# 2  
Old 07-06-2009
The free space is for file systems...
It is true that sometimes it seem transparent for the name of the directory is the mount point of the filesystem... but not always...
# 3  
Old 07-06-2009
so we cant check for the free space of a directory as we do in windows???
# 4  
Old 07-06-2009
I suppose windows does the same: it gives the free space in the "partition"

That said your directory must be in a filesystem, so you will have to find the free space for that latter, and like in windows the free space is valid at that exact moment for the directory, but also for all other directories within that filesystem...

---------- Post updated at 16:29 ---------- Previous update was at 16:28 ----------

do a man df
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Find command fails when a space is in the directory path variable

I have a script like this running under OS X 10.8. The problem arises when the find command encounters a space in the path name. I need the "dir" variable as I'll be extending the script to more general use. #!/bin/bash CFS=$IFS IFS=$(echo) set dir = "/Users/apta/Library/Mail\... (3 Replies)
Discussion started by: apta
3 Replies

2. Fedora

Need to incrwase PHYSICAL VOLUME space on hard drive with free space on it

Hi, I run Fedora 17. I created a physical volume of 30GB on a disk with 60GB of space so there is 30GB of free space. On the physical volume, I created my volume group and logical volumes. I assigned all the space in the physical volume to my volume group. I need to add the 30GB of free space... (1 Reply)
Discussion started by: mojoman
1 Replies

3. Red Hat

On CentOS, moving space from large free directory to another

Hi. My "/usr" folder is running out of space. My "/home" folder is quite large and has a lot of free space. As follows: Filesystem Type Size Used Avail Use% Mounted on ... /dev/sda5 ext3 9.7G 2.6G 6.7G 28% / /dev/sda7 ext3 152G 16G 128G 11% /home /dev/sda3 ... (7 Replies)
Discussion started by: pkiula
7 Replies

4. Solaris

No space left on device but free space and inodes are available...

hi guys, me again ;) i recently opened a thread about physical to zone migration. My zone is mounted over a "bigger" LUN (500GB) and step is now to move the old files, from the physical server, to my zone. We are talking about 22mio of files. i used rsync to do that and every time at... (8 Replies)
Discussion started by: beta17
8 Replies

5. Red Hat

How do i find free space in my unix?

Hello, I wanted to calculate free space in my unix file system. Here is my direction. I can use df -h command to get the below output. Filesystem Size Used Avail Use% Mounted on =================================================== /dev/vx/dsk/edcdg/data01vol ... (9 Replies)
Discussion started by: govindts
9 Replies

6. Shell Programming and Scripting

Calculate total space, total used space and total free space in filesystem names matching keyword

Good afternoon! Im new at scripting and Im trying to write a script to calculate total space, total used space and total free space in filesystem names matching a keyword (in this one we will use keyword virginia). Please dont be mean or harsh, like I said Im new and trying my best. Scripting... (4 Replies)
Discussion started by: bigben1220
4 Replies

7. UNIX for Dummies Questions & Answers

free space, used space in ftp

Is possible to see how much available space there is on a ftp server and how much is used through ftp ? how ? free space: used space: thanks (1 Reply)
Discussion started by: aneuryzma
1 Replies

8. Shell Programming and Scripting

for i in `find *` breakdown since the directory name has space

hey, somebody can help me on this broken script? for i in `find . -name index.html`;do echo "$i" awk '{print $0}' $i done the path to index.html has space in it. For example, ./10 October/index.html then echo "$i" will gives two lines instead of one: ./10 October/index.html how do... (3 Replies)
Discussion started by: patiobarbecue
3 Replies

9. UNIX for Dummies Questions & Answers

How to find the free space & usage of the particular directory in Hp-Unix?

How to find the free space & usage of the particular directory in Hp-Unix? I want to see the usage in % (2 Replies)
Discussion started by: bobprabhu
2 Replies

10. Solaris

command to find free disk space on solaris

In linux df is the command to find free space what is the equivalent command in the Solaris (2 Replies)
Discussion started by: harishankar
2 Replies
Login or Register to Ask a Question