Perl Script to find the disk usage and to delete the files which is consuming more space
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
hello,
I have to check the free space on the disk that would work both on Windows and Unix platform e.g on C: \ for Windows and / on Unix. I could use Unix command 'df ' ( my windows system has Unix emulator cygwin and could run 'df ' as well).
But I'd like not to rely on system command but... (1 Reply)
Hi,
I am trying to write a shell script to delete logs generate by db when space in the folder reaches 70%. i am getting space values from db, find the files at OS and remove them by using a cron job runs every 5minutes.
I have to keep the latest 5 files at any time, my problem is that log files... (3 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)
Some times my disk space is used upto 100% due to the application logs .
So this script is to monitor the disk space usage and wall message to the users about the disk space usage if it exceeds the limit set in the script. Here for example the limit is set to 80%. This job is added in cron to... (2 Replies)
Hi all,
FreeBSD7.1 @ sh.
In a backup script I am trying to get the blocks used by the backup once completed.
I am using the function:
#!/bin/sh
spaceused()
{
du -d 0 "${1}" | awk -F"+" '{ print $1 }
}
to return the blocks used of said directory and contents.
Via. command line... (7 Replies)
Issue with disk space usage
I have the following line in my "df -h" output:
Filesystem Size Used Avail Capacity Mounted on
/dev/ad4s1a 496M 495M -39M 109% /
What is the issue with having 9% excess utilisation? How can I find out what this partition is... (2 Replies)
Given this directory /web
I need to get the current usage (in %) on Linux and Unix both using the same command on bash shell ?
The command i tried was working on Unix (solaris) but does not filter the desired same value when run of Linux.
My command df -h /web | awk '{print $5}' | sed -n... (5 Replies)
Hi,
Could you please provide OS command to find large files in size MB and GB... under specific directory in HP-UX?
Regards,
Maddy (4 Replies)
Discussion started by: Maddy123
4 Replies
LEARN ABOUT MOJAVE
uname
UNAME(1) BSD General Commands Manual UNAME(1)NAME
uname -- Print operating system name
SYNOPSIS
uname [-amnprsv]
DESCRIPTION
The uname utility writes symbols representing one or more system characteristics to the standard output.
The following options are available:
-a Behave as though all of the options -mnrsv were specified.
-m print the machine hardware name.
-n print the nodename (the nodename may be a name that the system is known by to a communications network).
-p print the machine processor architecture name.
-r print the operating system release.
-s print the operating system name.
-v print the operating system version.
If no options are specified, uname prints the operating system name as if the -s option had been specified.
SEE ALSO hostname(1), machine(1), sw_vers(1), uname(3)STANDARDS
The uname utility conforms to IEEE Std 1003.2-1992 (``POSIX.2''). The -p option is an extension to the standard.
BSD November 9, 1998 BSD