10-22-2005
disk usage command on unix?
hi,
Can anyone tell me how I make a tree on the console showing the largest folders on my UNIX system?
I want to know where are located the biggest files so I can free some disk space.
thanks a lot.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
in unix when i use top
i get an output like this:
load averages: 0.64, 0.57, 0.53 14:04:42
347 processes: 1 running, 1 waiting, 169 sleeping, 172 idle, 4 stopped
CPU states: 16.4% user, 2.8% nice, 7.6%... (2 Replies)
Discussion started by: gfhgfnhhn
2 Replies
2. Shell Programming and Scripting
Hi,
Please let me know how do we write a piece of code to find the disk usage in UNIX (3 Replies)
Discussion started by: Shilpi
3 Replies
3. AIX
hi,
AIX 5.3
For any command(say tar command) I am getting 100% busy for my hdisk.
But my CPU and Memory is not busy and have more idle also.
Please advice for any performance analysing.
Thanks in Advance, (3 Replies)
Discussion started by: npcrao
3 Replies
4. UNIX for Dummies Questions & Answers
Hi All,
Please help me out
1) Command to find the disk usage in GB. I know that du -k will give in kilobites.
2) How to find the Biggest file/folder in a given set of files/folders.
Thanks in advance
Regards,
Manas (8 Replies)
Discussion started by: manas6
8 Replies
5. Solaris
Hi,
I want to monitor the current cpu usage, monitor usage , disk I/o and network utlization for solaris using SNMP.
I want the oids for above tasks.
can you please tell me that
Thank you (2 Replies)
Discussion started by: S_venkatesh
2 Replies
6. Shell Programming and Scripting
Hi,
I need a command that gives me the user who is using more space in the unix box (1 Reply)
Discussion started by: abinaya
1 Replies
7. Shell Programming and Scripting
Tested on : bash
Will be implementing on : ksh
I dont know if this is weird , or my idea of Unix stdin or stdout is completely messed up , but if I use the following command, I am getting a proper output.
ls -l | head -1 | while read a ; do echo $a ;done
and the output is soemthing like... (5 Replies)
Discussion started by: kumarjt
5 Replies
8. Shell Programming and Scripting
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)
Discussion started by: mohtashims
5 Replies
9. UNIX for Beginners Questions & Answers
HI Team,
I am trying to create a shell script to generate a yesterday and today report to compare and email in daily basis. can you please help me on the same.
#!/bin/bash
#Author: *******************
#Description: This script will return the following set of system information:
... (2 Replies)
Discussion started by: Mi4304
2 Replies
10. UNIX for Beginners Questions & Answers
HI I am Trying to edit the below code to send email every day with difference of disk utilized in for last 24 hours but instead getting same usage everyday. can you please help me to point out where my calculation is going wrong. Thank you.
=================
#!/bin/bash
TODAY="at $(date... (0 Replies)
Discussion started by: Mi4304
0 Replies
mkfs(8) System Manager's Manual mkfs(8)
Name
mkfs - construct a file system
Syntax
/etc/mkfs [ -N ] special size [ nsect ] [ ntrack ] [ blksize ]
[ fragsize ] [ ncpg ] [ minfree] [ rps ] [ nbpi ] [ opt ]
Description
File systems are normally created with the command.
The -N option is used to run in no update mode. In this mode, will not write to
The command constructs a file system by writing on the special file special. The numeric size specifies the number of sectors in the file
system. The command builds a file system with a root directory and a lost+found directory. For further information, see The number of i-
nodes is calculated as a function of the file system size. No boot program is initialized by For further information, see
When the on-disks inodes of the file system are written, each contains a unique number in its generation number field. This number
uniquely identifies each inode in a file system.
The optional arguments allow fine tune control over the parameters of the file system. The nsect argument specifies the number of sectors
per track on the disk. The ntrack argument specifies the number of tracks per cylinder on the disk. The blksize argument gives the pri-
mary block size for files on the file system. It must be a power of two, currently selected from 4096 or 8192. The fragsize argument
gives the fragment size for files on the file system. The fragsize argument represents the smallest amount of disk space that will be
allocated to a file. It must be a power of two currently selected from the range 512 to 8192. The ncpg argument specifies the number of
disk cylinders per cylinder group. This number must be in the range 1 to 32. The minfree argument specifies the minimum percentage of
free disk space allowed. Once the file system capacity reaches this threshold, only the superuser is allowed to allocate disk blocks. The
default value is 10%. If a disk does not revolve at 60 revolutions per second, the rps parameter may be specified. Users with special
demands for their file systems are referred to ``A Fast File System for UNIX'' in the ULTRIX Supplementary Documents, Volume 3: System Man-
ager for a discussion of the tradeoffs in using different configurations. The nbpi argument specifies the number (ratio) of bytes per
inode. The default is 2048 bytes. The opt argument is used to indicate the whether the file system should optimize for space or time.
The opt argument can be assigned a value of s or t.
Restrictions
If is invoked without arguments, the RISC machines dump core instead of returning an error.
See Also
dir(5), fs(5), fsck(8), newfs(8), tunefs(8)
"A Fast File System for UNIX", Supplementary Documents, Volume 3: System Manager
mkfs(8)