du display the actual file space usage.. you can use du.. just look for option like -g or -h to get the desired output.. read man page I am sure it has go some option..
the
command drills down all sub-directories which I do not want. I just want to see all directories in the parent directory and not drill further down. Also, it does not show me in MBs.
We have SCO Unix (realease 5.0.5b),
Please advise which files can be safely deleted on the system root folder / to create space? These are mainly spool/message/history etc log files. Where they located and can they be deleted using rm?
The server has been operational for the past 4 years.
... (17 Replies)
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)
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)
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)
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)
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)
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)
I have a folder that contains many sub folders and files. This tree has to be backed up to an archive system. According to the tech support, one of the archives is failing to back up due to the possibility of trailing spaces on file and folder names. Therefore, I would like to have a script... (16 Replies)
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
LEARN ABOUT OPENDARWIN
du
DU(1) BSD General Commands Manual DU(1)NAME
du -- display disk usage statistics
SYNOPSIS
du [-H | -L | -P] [-I mask] [-a | -s | -d depth] [-c] [-h | -k] [-x] [file ...]
DESCRIPTION
The du utility displays the file system block usage for each file argument and for each directory in the file hierarchy rooted in each direc-
tory argument. If no file is specified, the block usage of the hierarchy rooted in the current directory is displayed. If the -k flag is
specified, the number of 1024-byte blocks used by the file is displayed, otherwise getbsize(3) is used to determine the preferred block size.
Partial numbers of blocks are rounded up.
The options are as follows:
-H Symbolic links on the command line are followed, symbolic links in file hierarchies are not followed.
-L Symbolic links on the command line and in file hierarchies are followed.
-I mask
Ignore files and directories matching the specified mask.
-P No symbolic links are followed. This is the default.
-a Display an entry for each file in a file hierarchy.
-h "Human-readable" output. Use unit suffixes: Byte, Kilobyte, Megabyte, Gigabyte, Terabyte and Petabyte
-r Generate messages about directories that cannot be read, files that cannot be opened, and so on. This is the default case. This
option exists solely for conformance with X/Open Portability Guide Issue 4 (``XPG4'').
-s Display an entry for each specified file. (Equivalent to -d 0)
-d depth
Display an entry for all files and directories depth directories deep.
-c Display a grand total.
-k Display block counts in 1024-byte (1-Kbyte) blocks.
-x File system mount points are not traversed.
The du utility counts the storage used by symbolic links and not the files they reference unless the -H or -L option is specified. If either
the -H or -L options are specified, storage used by any symbolic links which are followed is not counted or displayed.
Files having multiple hard links are counted (and displayed) a single time per du execution.
ENVIRONMENT
BLOCKSIZE If the environment variable BLOCKSIZE is set, and the -k option is not specified, the block counts will be displayed in units of
that size block. If BLOCKSIZE is not set, and the -k option is not specified, the block counts will be displayed in 512-byte
blocks.
SEE ALSO df(1), fts(3), symlink(7), quot(8)HISTORY
A du command appeared in Version 1 AT&T UNIX.
BSD April 1, 1994 BSD