06-09-2008
df would give you total space allocated to the filesystem, used space and % of free space.
Whereas du would give you space listings directory wise.
df command should be enough to find out spcae details about a file system, unless you want it directory wise.
Hope it helps.
Thanks!
nua7
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi there,
When I run top on my machine it says I have 497M swap space in use, and 380M swap space free,
but I have only allocated 512M swap space to the machine!!!!
Does anyone know how swap used is calculated in the top command?
Thanks... (1 Reply)
Discussion started by: chorgan
1 Replies
2. UNIX for Dummies Questions & Answers
hi guys im new here, would like to ask what is the syntax or how could i check the total allocated external disk in HP-UX???
ive check the allocated size using SAM, but in some servers the SAM hangs when checking the disk space. So i would like to know using command line.
thanks (3 Replies)
Discussion started by: gob23g
3 Replies
3. Solaris
i am working with solaris 9 and my disk usages are
# df -k
Filesystem kbytes used avail capacity Mounted on
/dev/dsk/c0t0d0s0 2148263 1902721 202577 91% /
/proc 0 0 0 0% /proc
mnttab 0 0 0 ... (3 Replies)
Discussion started by: smartgupta
3 Replies
4. Solaris
Hey guys,
I am somewhat new to Solaris - and very new when it comes to mounts.
My problem is that when I installed Solaris, I allocated way too little diskspace to my / mount (it first became obvious now, however, because of new needs).
bash-3.00# df -h
Filesystem size ... (25 Replies)
Discussion started by: brightstorm
25 Replies
5. Solaris
How swap is getting 12GB as its size as per the below output:
Filesystem size used avail capacity Mounted on
/dev/md/dsk/d0 7.9G 2.1G 5.7G 27% /
/devices 0K 0K 0K 0% /devices
ctfs 0K 0K 0K 0% /system/contract
proc 0K 0K 0K 0% /proc
mnttab 0K 0K 0K 0% /etc/mnttab
swap 12G 1.2M 12G 1%... (3 Replies)
Discussion started by: ramnagaraj
3 Replies
6. Shell Programming and Scripting
Good afternoon! Im new at scripting and Im trying to write a script to
calculate total space, total used space and total free space in filesystem names matching a keyword (in this one we will use keyword virginia). Please dont be mean or harsh, like I said Im new and trying my best. Scripting... (4 Replies)
Discussion started by: bigben1220
4 Replies
7. UNIX for Dummies Questions & Answers
Hello,
I need to find the total allocated disk space for the home directory.
How can i find that in unix?(in GB).
Thanks. (4 Replies)
Discussion started by: kailash19
4 Replies
8. Linux
Hi All,
I am writing a block driver for a 2GB SD card where i get the total amount of data per request as follows:
struct request *req;
uint card_addr,total_bytes;
struct request_queue *rq = BlkDev->queue;
req = elv_next_request(rq);
..
..
card_addr = req->sector*512;... (1 Reply)
Discussion started by: amio
1 Replies
9. AIX
A file system has reached 100%. I have tried adding space using chfs -a size=+100 command to that file system. However, the % used is not decreasing from 100%. Is there a way to add more space?
Also, can someone suggest a script to send a mail alert when a file system is reaching 90%.
G (4 Replies)
Discussion started by: ggayathri
4 Replies
10. Shell Programming and Scripting
Hi ,
I Would like to know the space allocated by adding up all the allocated space to group of filesystems ..
example ,
df -h|grep /db | awk '{ print $4 }' ---> giving me all the used space on the filesystem but need to know the total used space by adding up all the values (3 Replies)
Discussion started by: nsankineni
3 Replies
LEARN ABOUT REDHAT
attr_remove
ATTR_REMOVE(3) XFS Compatibility API ATTR_REMOVE(3)
NAME
attr_remove, attr_removef - remove a user attribute of a filesystem object
C SYNOPSIS
#include <attr/attributes.h>
int attr_remove (const char *path, const char *attrname, int flags);
int attr_removef (int fd, const char *attrname, int flags);
DESCRIPTION
The attr_remove and attr_removef functions provide a way to remove previously created attributes from filesystem objects.
Path points to a path name for a filesystem object, and fd refers to the file descriptor associated with a file. If the attribute attrname
exists, the attribute name and value will be removed from the fileystem object. The flags argument can contain the following symbols bit-
wise OR'ed together:
ATTR_ROOT
Look for attrname in the root address space, not in the user address space. (limited to use by super-user only)
ATTR_DONTFOLLOW
Do not follow symbolic links when resolving a path on an attr_remove function call. The default is to follow symbolic links.
attr_remove will fail if one or more of the following are true:
[ENOATTR] The attribute name given is not associated with the indicated filesystem object.
[ENOENT] The named file does not exist.
[EPERM] The effective user ID does not match the owner of the file and the effective user ID is not super-user.
[ENOTDIR] A component of the path prefix is not a directory.
[EACCES] Search permission is denied on a component of the path prefix.
[EINVAL] A bit was set in the flag argument that is not defined for this system call.
[EFAULT] Path points outside the allocated address space of the process.
[ELOOP] A path name lookup involved too many symbolic links.
[ENAMETOOLONG] The length of path exceeds {MAXPATHLEN}, or a pathname component is longer than {MAXNAMELEN}.
attr_removef will fail if:
[ENOATTR] The attribute name given is not associated with the indicated filesystem object.
[EINVAL] A bit was set in the flag argument that is not defined for this system call, or fd refers to a socket, not a file.
[EFAULT] Attrname points outside the allocated address space of the process.
[EBADF] Fd does not refer to a valid descriptor.
DIAGNOSTICS
Upon successful completion, a value of 0 is returned. Otherwise, a value of -1 is returned and errno is set to indicate the error.
SEE ALSO
attr(1), attr_get(3), attr_multi(3), and attr_set(3).
Dec 2001 Extended Attributes ATTR_REMOVE(3)