07-11-2013
df display filesystem disk usage
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..
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
can any one tell me how to know the free space in perticular folder in unix.
size in bytes/MB.
thanks in adv.
spandu (7 Replies)
Discussion started by: spandu
7 Replies
2. SCO
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)
Discussion started by: othman
17 Replies
3. Shell Programming and Scripting
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
4. Shell Programming and Scripting
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
5. UNIX for Dummies Questions & Answers
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
6. Shell Programming and Scripting
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. Solaris
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
8. UNIX for Dummies Questions & Answers
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
9. Shell Programming and Scripting
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)
Discussion started by: vipertech
16 Replies
10. Shell Programming and Scripting
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
QUOT(8) BSD System Manager's Manual QUOT(8)
NAME
quot -- display disk space occupied by each user
SYNOPSIS
quot [-acfhknv] [filesystem ...]
DESCRIPTION
The quot utility is used to gather statistics about the disk usage for each local user.
The following options are available:
-a Include statistics for all mounted file systems.
-c Display three columns containing number of blocks per file, number of files in this category, and aggregate total of blocks in files
with this or lower size.
-f For each user, display count of files and space occupied.
-h Estimate the number of blocks in each file based on its size. Despite that this does not give the correct results (it does not
account for the holes in files), this option is not any faster and thus is discouraged.
-k Force the numbers to be reported in kilobyte counts. By default, all sizes are reported in 512-byte block counts.
-n Given a list of inodes (plus some optional data on each line) in the standard input, for each file print out the owner (plus the
remainder of the input line). This is traditionally used in the pipe:
ls -i | sed -e 's,^ *,,' | sort -k 1n | quot -n filesystem
to get a report of files and their owners.
-v In addition to the default output, display the number of files not accessed within 30, 60 and 90 days.
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.
SEE ALSO
df(1), quota(1), getmntinfo(3), fstab(5), mount(8)
HISTORY
This implementation of quot is by Wolfgang Solfrank / TooLs GmbH.
BUGS
ncheck (which would be a lot more useful than ls -i in the example above) does not exist in FreeBSD.
BSD
February 8, 1994 BSD