space in perticular folder in unix


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers space in perticular folder in unix
# 1  
Old 06-05-2006
Error space in perticular folder in unix

can any one tell me how to know the free space in perticular folder in unix.
size in bytes/MB.

thanks in adv.

spandu
# 2  
Old 06-05-2006
It doesn't work that way - unless the folder is it's own filesystem. Otherwise all of the free space can be used by any folder in the filesystem, just like free space on a Windows disk.

df </path> will give your free space information
# 3  
Old 06-06-2006
Well, I do not agree jim_mcnamara...
You could use "du" command (man du)

Regards.
# 4  
Old 06-06-2006
Quote:
Originally Posted by grial
Well, I do not agree jim_mcnamara...
You could use "du" command (man du)

Regards.
Well du gives the Disk Usage of the directory.. df will give the space allocated to the file system and usage. Any directory under that file system can use the space allocated to the file system.. just like partitions on WINDOWS..
# 5  
Old 06-06-2006
filesystems work on the freespace they have, not on the basis of freespace in directories. Directories do not have free disk space.

If what grial said were true, then he should be able to show us a unix system call that finds free space in a directory - like statvfs or fstavfs do for filesystems.
# 6  
Old 06-06-2006
Quote:
Originally Posted by spandu
can any one tell me how to know the free space in perticular folder in unix.
size in bytes/MB.

thanks in adv.

spandu
Does your admin/do you have disk quotas?
# 7  
Old 06-06-2006
Code:
quota -v

will tell you if quotas are enabled for you in your current directory.
[quote]
/tmp > quota -v
Filesystem usage quota limit timeleft files quota limit timeleft
/home 46636 102400 112640 3043 0 0
[/code]
means the /home filesystem has quota set for you
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

How to list todays file in perticular folder?

How to list todays file in perticular folder Moved thread to appropriate forum (9 Replies)
Discussion started by: pspriyanka
9 Replies

2. Shell Programming and Scripting

Move files from Space Folder to other folder

I want to move a folder with spaces from one folder to another. I have two folders like this, 1).RT_032-222 -4444-01/ 2). RT_032-555 -7777-01/ I want to move files from 2 to 1 through shell script.Here I want to assign this like a user defined variable like as Source branch... (2 Replies)
Discussion started by: kannansoft1985
2 Replies

3. HP-UX

Which Folder occupies more space?

Hi, What are the correct parameters to list folders size in MBs under a particular directory in HP-UX ? I know and commands but cannot get the output of folder sizes in MBs. (4 Replies)
Discussion started by: mohtashims
4 Replies

4. UNIX for Dummies Questions & Answers

Copy multiple files with space to folder

Please help , I am in an urgent need, Please help nawk '{for(i=1;i<=NF;i++){printf("%s\n",$i)}}' filename | sed 's/.*com//' | nawk '/pdf/ {printf("F:%s\n",$0)}' | while read line; do mv $line /images/; done the above script works for without spaces but,My path is also having some space... (3 Replies)
Discussion started by: umapearl
3 Replies

5. Solaris

Space problem writing to Solaris Folder

Hello, I've got a process failure which says it may be caused by insufficient space in the directory. Is there a way I can tell what the maximum allowable size is? I've done df -k and there are no file systems over 45% so if it is a space problem it's confined to the sub directory. (4 Replies)
Discussion started by: Grueben
4 Replies

6. Shell Programming and Scripting

find the folder with space in name.

A solaris server with SAMBA share folder. The PC users created many folders with space on it, I want to find them out, but not list its subfolders. For example, I have below folders Copy of ABC/efg/xy sa/Test again/xyt If I use command: find . -type d |grep " " I will list 6 folders, but... (2 Replies)
Discussion started by: rdcwayx
2 Replies

7. Windows & DOS: Issues & Discussions

How can I upload a zip folder on a unix path from my windows folder?

Hello, I am an amature at UNIX commands and functionality. Please could you all assist me by replying to my below mentioned querry : How can I upload a zip folder on a unix path from my windows folder? Thanks guys Cheers (2 Replies)
Discussion started by: ajit.yadav83
2 Replies

8. UNIX for Dummies Questions & Answers

Creating space in root folder

Hi , I was wondering if anyone knows any great ways for creating space in your Root Folder. My root folder was created with only 247.7MB & I found out that its now full & I was initially wondering how important the "thumbnails Folder" was & if it was alright to delete their contenses as I noticed... (2 Replies)
Discussion started by: Browser
2 Replies

9. Shell Programming and Scripting

space in folder name

hi my folder name is below FTP_DIR="/DATA/TEMP/PA Mthly and Qrty files" But when i am using the varaible in my ftp shel script i am getting the error '/DATA/TEMP/VA: The system cannot find the path specified please advice. thanks in advance sam (2 Replies)
Discussion started by: sam99
2 Replies

10. Shell Programming and Scripting

Trick to ignore space in folder name

Hello All, I am getting error while passing a folder name that has space to the cmd line argument. sh log_delete2.sh "/home/kumarpua/TESTARTIFACTS/atf-chix/ATF-subversion-dev/ssenglogs/A RM" log_delete2.sh: line 17: cd: /home/kumarpua/TESTARTIFACTS/atf-chix/ATF-subversion-dev/ssenglogs/A:... (3 Replies)
Discussion started by: pulkit
3 Replies
Login or Register to Ask a Question