Command to view folder subfolder and its capacity


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Command to view folder subfolder and its capacity
# 1  
Old 02-02-2009
Command to view folder subfolder and its capacity

Can any one tell how to view folder and subfolder with its capacity
df -k will cannot be used it shows only the parent folder
while du -k will show all subfolder and files but not show the capacity and also i dont want view any files


Thank you!!!!
# 2  
Old 02-02-2009
A folder has so much capacity left as the filesystem has, it is on. So df on the directory you want to know will show the free capacity left for the filesystem and so with all of the directories that belong to that filesystem.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Request for Shell script to move files from Subfolder to Parent folder and delete sub folder

Hi Team, I am new to shell script and there is a requirement where files should be moved from Subfolder to parent folder. Eg: parent folder --> /Interface/data/test/IN Sub folder -->/Interface/data/test/IN/Invoice20180607233338 Subfolder will be always with timestamp... (6 Replies)
Discussion started by: srivarun15
6 Replies

2. Shell Programming and Scripting

Need help in finishing a bash script for listing subfolder by size in a large folder

Greetings everyone. I have seen that you do wonders here. I have a large folder on a Ubuntu linux. Organization main folder, inside 20 000 subfolders, and inside those subolders many other like 5-6 folders and files. I am interested to create an output to a txt file under the bash... (2 Replies)
Discussion started by: ultimo
2 Replies

3. Shell Programming and Scripting

List of files in a folder inclusive subfolder

Hi, I need to list the names of existing files in a specific folder. I have written a script for that, but the problem is, it is also picking up name of a subfolder that is there in that folder. I need only the list of files and not that subfolder. How to go about that ? Can anyone plz help... (2 Replies)
Discussion started by: Subhasis
2 Replies

4. Shell Programming and Scripting

Create subfolder within folder in one command

suppose if i am checking folder g as shown below path a/b/c/d/e/f/g ,and some directory c,d,e,f,g not present then is there anyway to create directory in one command or i need to use mkdir for everyfolder (3 Replies)
Discussion started by: lalitpct
3 Replies

5. UNIX for Dummies Questions & Answers

Can I view an 'at' command?

Hi, One of our users has loads of jobs scheduled. When I do at -l I get a long list of tasks which end in .a Is there anyway I can view what these commands will do? Also, What's the relationship between the 'at' function and the crontab? I can't see any entries in crontab....Cheers (4 Replies)
Discussion started by: Grueben
4 Replies

6. Shell Programming and Scripting

Link multiple files from different subfolder to a new subfolder

Hi, I have the following subfolder with files: /data/a/1/xxx.txt /data/b/2/yyy.txt /data/c/3/zzz.txt And i have a set of new folders which have exactly the same structure as above but different disk without the files: /data_02/a/1/ /data_02/b/2/ /data_02/c/3/ Now i would like to... (6 Replies)
Discussion started by: total_ysf
6 Replies

7. Shell Programming and Scripting

Last modified time of the folder is changing when I view the file inside the directory

Hi., Last modified time of the folder is changing when I view the file inside the directory. Here is the test on sample directory. I believe that ls -l commands gives the time detail w.r.t last modified time. Pl. suggest. bash-3.2$ mkdir test bash-3.2$ cd test bash-3.2$ touch myfile.txt... (2 Replies)
Discussion started by: IND123
2 Replies

8. Shell Programming and Scripting

How to read a subfolder one by one in parent folder?

Hi friends, I am getting some trubles in folder reading. I am having 10 subfolders inside server7 folder. i wanna to read a subfolder name first and check if the foldername gets started with "http". if so , i need to read a file inside that folder. This willl continue for... (1 Reply)
Discussion started by: kamatchirajan
1 Replies

9. HP-UX

View command was typed

Hello All, I Am A New Member To This Group. Could you show me how to view all command was typed the same Redhat. Every I type arrow up and down to show the command was type but nothing to see. I must type it again. it is very slow. Thanks hoavn (4 Replies)
Discussion started by: hoavn
4 Replies

10. UNIX for Dummies Questions & Answers

How can I view a Windows 2003 folder in Unix?

Is it possible to do something like this? Have a folder shared on a Windows machine and then be able to view it under a Unix server? Sort of like a reverse Samaba share? (5 Replies)
Discussion started by: LordJezo
5 Replies
Login or Register to Ask a Question