Sponsored Content
Top Forums UNIX for Dummies Questions & Answers space in perticular folder in unix Post 302075746 by Ambikesh on Tuesday 6th of June 2006 02:19:22 PM
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..
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
du(1)							      General Commands Manual							     du(1)

NAME
du - summarize disk usage SYNOPSIS
type] [name]... DESCRIPTION
The command gives the number of 512-byte blocks allocated for all files and (recursively) directories within each directory and file speci- fied by the name operands. The block count includes the indirect blocks of the file. A file with two or more links is counted only once. If name is missing, the current working directory is used. By default, generates an entry only for the name operands and each directory contained within those hierarchies. By default, when a symbolic link is encountered on the command line or in the file hierarchy, will count the size of the symbolic link rather than the file referenced by the link, and will not follow the link to another portion of the file hierarchy. Options The command recognizes the following options: Print entries for each file encountered in the directory hierarchies in addition to the normal output. For each name operand that is a directory for which file system swap has been enabled, print the number of blocks the swap system is currently using. If a symbolic link is specified on the command line, will count the size of the file or file hierarchy referenced by the link. Unlike the option, it will not follow sym- bolic links encountered during the traversal of the directory hierarchy. Gives the block count in 1024-byte blocks. If a symbolic link is specified on the command line or encountered during the traversal of a file hierarchy, will count the size of the file or file hierarchy referenced by the link. Print messages about directories that cannot be read, files that cannot be accessed, and so on. is normally silent about such conditions. Print only the grand total of disk usage for each of the specified name operands. Restrict reporting to file systems of the specified type. (Example values for type are and so on.) Multiple options can be specified. Disk usage is normally reported for the entire directory hierarchy below each of the given name operands. Restrict reporting to only those files that have the same device as the file specified by the name operand. Disk usage is normally reported for the entire directory hierarchy below each of the given name operands. According to the standards, specifying more than one of the mutually-exclusive options and will not be considered an error. The last option specified will determine the behavior of the utility. EXAMPLES
Display disk usage for the current working directory and all directories below it, generating error messages for unreadable directories: Display disk usage for the entire file system except for any or mounted file systems: Display disk usage for files on the root volume only. No usage statistics are collected for any other mounted file systems: WARNINGS
Block counts are incorrect for files that contain holes. SEE ALSO
df(1M), bdf(1M), quot(1M), standards(5). STANDARDS CONFORMANCE
du(1)
All times are GMT -4. The time now is 04:04 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy