identify free disk spaces


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers identify free disk spaces
# 1  
Old 02-28-2007
identify free disk spaces

Hi experts,

I need to determine if I have 4GB free space on my UNix server? Is there a way that I can do it instead of executing df -k . in each folder?


Thanks for your help.
# 2  
Old 02-28-2007
Quote:
Originally Posted by tads98
Hi experts,

I need to determine if I have 4GB free space on my UNix server? Is there a way that I can do it instead of executing df -k . in each folder?


Thanks for your help.
"df -k ." reports the free disk space on the file system where your current directory is located on.

Moving to a different directory on the same file system will report the same result.

"df -k" will report the free space on all file systems.
# 3  
Old 02-28-2007
thanks.

the commnad that I executed was

bdf -l

Sample result

Filesystem kbytes used avail %used Mounted on
/dev/optvg2/fs_psofthr80 10485760 6742188 3525759 0.66 /psoft/hr80
/dev/optvg3/fs_PSstore 8388608 3969428 4281580 48% /prod/home01/store/psoft
/dev/optvg2/fs_psoftfs80 10485760 3715547 6375094 37% /psoft/fs80
/dev/optvg2/fs_psoftreports 12582912 5506488 6875538 44% /psoft/reports
/dev/optvg3/fs_psoftarch 8388608 3174 8123396 0%
# 4  
Old 03-01-2007
Code:
 bdf | awk '{ sum+=$4 } END {printf("%12.0f\n", sum)}'

 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

How to identify if disk is attached to SAN and assist in migration.?

I am working on VM host and collecting data to identify the type of storage attached to the server which will be migrated to VNX. it has one ldom created on it luxadm probe output --- No Network Array enclosures found in /dev/es Found Fibre Channel device(s): Node... (7 Replies)
Discussion started by: kpatel786
7 Replies

2. Shell Programming and Scripting

I need help!! disk free space script

i want to write a shell script,when disk uses is 90% then automatically send a email to distribution list (group member)...... (1 Reply)
Discussion started by: sonu pandey
1 Replies

3. Hardware

Identify Hard Disk interface

Hi, I have broken my laptop hard drive so I would like to put it in an external box to backup my documents. I have a doubt whether the interface of the hard disk is sata or ide. Inside notes attached, is reported "controller SATA AHCI" but on the model section is given IDE hard disk ... (1 Reply)
Discussion started by: nash83
1 Replies

4. Hardware

How to identify virtual/physic disk path on X4100?

Hello, Currently we have a Oracle X4100 ( Solaris 10 ) server with disk failure. Originally our hardware team thought the disk can be hot-swap, when they stood in front of the server, none of the disk failure LED were on, so now we have no idea which disk is the bad one for replacement. As... (2 Replies)
Discussion started by: sunnychen98
2 Replies

5. UNIX for Advanced & Expert Users

Identify failed disk in Linux RAID

Good Evening, 2 years ago, I set up an Ubuntu file-server for a friend, who is a photograph amateur. Basically, the server offers a software RAID-5 that can be accessed remotely from a MAC. Unfortunately, I didn't labeled the hard drives (i.e. which physical drive corresponds to the /dev/sdX... (2 Replies)
Discussion started by: Loic Domaigne
2 Replies

6. Shell Programming and Scripting

Free space at disk

Hi, I would like to create the new file system(mount point) in our unix server. before that i would like to know the total free space available in /home directory. Can you please let me know, how to find free space available for new filesystem? Be careful with your spelling and... (2 Replies)
Discussion started by: koti_rama
2 Replies

7. Solaris

Physically identify hard disk.

Hi, I have a failed hard disk in my Sun Fire V240. Unfortunately it does not show up in 'cfgadm -al' or in the format command so I cannot unconfigure it and illuminate the blue light on the front to identify it. Is there any way of iluminating the blue lights on the other disks so I can at... (3 Replies)
Discussion started by: sparcman
3 Replies

8. AIX

AIX Free disk space

Hello, I would like to free some space to install gcc with is about 50M large, and I have no free space on my system. What can I delete? Filesystem 1024-blocks Used Free %Used Iused Ifree %Iused Mounted on /dev/hd4 262144 145436 116708 56% 7981 ... (10 Replies)
Discussion started by: aixn00b
10 Replies

9. UNIX for Advanced & Expert Users

identify the unix process performing high disk i/o reads and writes

Guys, Is there any UNIX command that captures the 'Unix process which is performing high disk I/O reads and writes'. can you help me in this? -Swamy (6 Replies)
Discussion started by: avsswamy
6 Replies

10. Shell Programming and Scripting

identify the unix processes performing high disk i/o reads and writes

I would like to write shell/perl script which identifies the top unix processes that are performing high disk I/O's or/and writes If any one knows the solution please help me? -Swamy (0 Replies)
Discussion started by: avsswamy
0 Replies
Login or Register to Ask a Question