I need to find available disk space for /home.
The above result shows the Use% instead of Available as the df command output expands in 2 lines due to the Filesystem name
For single line output the results are fine... Any ideas how to get the available space in such cases ...
Hello,
Can someone please tell me which command to use to determine the available disk space on a given disk device?
I have to write a shell script that compresses files and stores them in a specific location but I am not sure how "conservative" I should be?
Thanks in advance!
Al. (4 Replies)
Hello,
Can anybody please tell me the command to find out the filesystem or a file which is consuming larger disk space sing i want to find out the file and want to compress it
please help me out
any help would be appreciated (6 Replies)
Hi
This is my script for disk space monitoring
clear
if
then
echo "You must be root user to execute the script"
fi
ALERT_LEVEL=10
CONSUMPTION_LEVEL= `df -k | awk {'print $5'} | cut -d '%' -f1 | sed "1 d"`
for i in $CONSUMPTION_LEVEL
do
FILE_SYSTEM=`df -k | awk {'print $1'} |... (3 Replies)
I know there are other threads but they have not helped. My server is running low on disk space and I haven't been able to re-allocate. I think my solaris machine is missing tools or the way it was originally setup, may not have the right pathing.
$ df -k
Filesystem kbytes used... (5 Replies)
Hi All,
I have written a script to check the file system usage and to delete the files which is consuming more space.Please check whether the script is corrcet
#Script Starts here
#!/usr/local/bin/perl
#Program to find the disk space and to delete the older files
#Checks the type of OS... (8 Replies)
Hi,
I want write a script that finds a set of folders written between a certain time and then find the disk space used by those folders. Can someone please help.
Thanks,
Sparcman:( (1 Reply)
Hi,
I am unable to find remaining space on solaris 10. below is output.
I am facing this issue on zone server.
bash-3.00# df -h /
Filesystem size used avail capacity Mounted on
/ 59G 59G 0K 100% /
bash-3.00# pwd
/
bash-3.00# du -sh *
1K File_Stores
19K TT_DB
9K app
1K bin... (4 Replies)
Hi All,
I am using SSH Tectia terminal to get the disk space utilization of a particular folder /opt/logs in all the servers one by one using the command df -h and looking through the list of folders manually to get /opt/logs folder disk space used percentage .
The problem here is , it... (2 Replies)
Discussion started by: aakhan2011
2 Replies
LEARN ABOUT ULTRIX
df
df(1) General Commands Manual df(1)Name
df - display free and used disk space
Syntax
df [-i] [-l] [-n] [filesystem...] [file...]
Description
The command displays the amount of disk space available on the specified file system, for example, It also displays the amount of available
disk space on the file system in which the specified file is contained, for example, If a device is given that has no file systems mounted
on it, displays the information for the root file system. Without any arguments or options, displays shows all mounted filesystems,
including those manually mounted without use of the file. The numbers are reported in kilobytes.
Unless the -n option is specified, updates the statistics stored in memory for the file system specified, before it returns the informa-
tion.
Options-i Also report the number of used and free inodes.
-l Reports on locally mounted disks only.
-n Do not update the file system statistics stored in memory. Instead, return whatever statistics are stored in memory. This prevents
from hanging in the event that a server containing the specified file system is down.
Restrictions
You cannot use the command to find free space on an unmounted file system using the block or character special device name. Instead, use
the command.
Examples
% df
Filesystem Total kbytes kbytes %
node kbytes used free used Mounted on
/dev/ra1a 7429 2085 4602 31% /tmp
/dev/ra0e 30519 14817 12651 54% /usr/spool
/dev/ra0h 313233 122858 159052 44% /usr/staff1
The total disk space is the total space that was created during the making of the file system. The addition of the used space, the free
space and a percentage of reserved space is the total space. The default value for the reserved space is 10%.
Files
List of mounted file systems
See Alsogetmnt(2), fstab(5), dumpfs(8), icheck(8), mkfs(8), newfs(8), quot(8)df(1)