|
||||||||||||||||
1. Managing Terminals and Modems (Overview) 2. Setting Up Terminals and Modems (Tasks) 3. Managing Serial Ports With the Service Access Facility (Tasks) 4. Managing System Resources (Overview) 5. Displaying and Changing System Information (Tasks) How to Display the Size of Files How to Find Files That Exceed a Specified Size Limit Checking the Size of Directories How to Display the Size of Directories, Subdirectories, and Files How to Display the User Ownership of Local UFS File Systems Finding and Removing Old or Inactive Files How to Find and Remove Old or Inactive Files How to Clear Out Temporary Directories How to Find and Delete core Files How to Delete Crash Dump Files 8. Scheduling System Tasks (Tasks) 9. Managing System Accounting (Tasks) 10. System Accounting (Reference) 11. Managing System Performance (Overview) 12. Managing System Processes (Tasks) 13. Monitoring System Performance (Tasks) 14. Troubleshooting Software Problems (Overview) 16. Managing Core Files (Tasks) 17. Managing System Crash Information (Tasks) 18. Troubleshooting Miscellaneous Software Problems (Tasks) 19. Troubleshooting File Access Problems (Tasks) 20. Resolving UFS File System Inconsistencies (Tasks) |
Displaying Information About Files and Disk SpaceThis table summarizes the commands available for displaying information about file size and disk space.
How to Display Information About Files and Disk Space
In the following example, all the file systems listed are locally mounted except for /usr/dist, which is mounted remotely from the system venus. $ df / (/dev/dsk/c0t0d0s0 ): 101294 blocks 105480 files /devices (/devices ): 0 blocks 0 files /system/contract (ctfs ): 0 blocks 2147483578 files /proc (proc ): 0 blocks 1871 files /etc/mnttab (mnttab ): 0 blocks 0 files /etc/svc/volatile (swap ): 992704 blocks 16964 files /system/object (objfs ): 0 blocks 2147483530 files /usr (/dev/dsk/c0t0d0s6 ): 503774 blocks 299189 files /dev/fd (fd ): 0 blocks 0 files /var/run (swap ): 992704 blocks 16964 files /tmp (swap ): 992704 blocks 16964 files /opt (/dev/dsk/c0t0d0s5 ): 23914 blocks 6947 files /export/home (/dev/dsk/c0t0d0s7 ): 16810 blocks 7160 filesExample 6-2 Displaying File Size Information in 1024 Bytes In the following example, file system information is displayed in 1024 bytes. $ df -h Filesystem size used avail capacity Mounted on /dev/dsk/c0t0d0s0 249M 200M 25M 90% / /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 485M 376K 485M 1% /etc/svc/volatile objfs 0K 0K 0K 0% /system/object /dev/dsk/c0t0d0s6 3.2G 2.9G 214M 94% /usr fd 0K 0K 0K 0% /dev/fd swap 485M 40K 485M 1% /var/run swap 485M 40K 485M 1% /tmp /dev/dsk/c0t0d0s5 13M 1.7M 10M 15% /opt /dev/dsk/c0t0d0s7 9.2M 1.0M 7.3M 13% /export/home Although /proc and /tmp are local file systems, they are not UFS file systems. /proc is a PROCFS file system, /var/run and /tmp are TMPFS file systems, and /etc/mnttab is an MNTFS file system. Example 6-3 Displaying Total Number of Blocks and Files Allocated for a File SystemThe following example shows a list of all mounted file systems, device names, total 512-byte blocks used, and the number of files. The second line of each two-line entry displays the total number of blocks and files that are allocated for the file system. $ df -t / (/dev/dsk/c0t0d0s0 ): 101294 blocks 105480 files total: 509932 blocks 129024 files /devices (/devices ): 0 blocks 0 files total: 0 blocks 113 files /system/contract (ctfs ): 0 blocks 2147483578 files total: 0 blocks 69 files /proc (proc ): 0 blocks 1871 files total: 0 blocks 1916 files /etc/mnttab (mnttab ): 0 blocks 0 files total: 0 blocks 1 files /etc/svc/volatile (swap ): 992608 blocks 16964 files total: 993360 blocks 17025 files /system/object (objfs ): 0 blocks 2147483530 files total: 0 blocks 117 files /usr (/dev/dsk/c0t0d0s6 ): 503774 blocks 299189 files total: 6650604 blocks 420480 files /dev/fd (fd ): 0 blocks 0 files total: 0 blocks 31 files /var/run (swap ): 992608 blocks 16964 files total: 992688 blocks 17025 files /tmp (swap ): 992608 blocks 16964 files total: 992688 blocks 17025 files /opt (/dev/dsk/c0t0d0s5 ): 23914 blocks 6947 files total: 27404 blocks 7168 files /export/home (/dev/dsk/c0t0d0s7 ): 16810 blocks 7160 files total: 18900 blocks 7168 files |
|||||||||||||||
|