[HP-UNIX]bdf命令总结

(1)bdf命令的效果

lijiaman$[/home/oracle]bdf
Filesystem          kbytes    used   avail %used Mounted on
/dev/vg00/lvol3    10485760  225552 10180096    2% /
/dev/vg00/lvol1    4194304  390200 3774448    9% /stand
/dev/vg00/lvol8    31457280 2128008 29102256    7% /var
/dev/vg00/lvol7    10485760 3205264 7223672   31% /usr
/dev/vg00/lvol4    10485760 6576408 3879176   63% /tmp
/dev/vg00/lvol11   41943040 23159923 17611782   57% /oracle
/dev/vg00/lvol6    12582912 7165312 5376864   57% /opt
/dev/vg00/lvol5    20971520   75992 20732400    0% /home
/dev/vg00/lvol10   41943040 14004604 26192355   35% /grid

查看bdf的用法:

fabdb1$[/home/oracle]man bdf

 bdf(1M)                                                             bdf(1M)                             ##  bdf  ##

 NAME
      bdf - report number of free disk blocks (Berkeley version)                                  #报告磁盘的剩余空间块      

 SYNOPSIS                                                                                         #简介
      /usr/bin/bdf [-b] [-i] [-l] [-s] [-t type | [filesystem|file] ... ]                              bdf [-b] [-i] [-l] [-s] [-t type | [filesystem | file]… ]

 DESCRIPTION                                                                                      #描述
      The bdf command displays the amount of free disk space available                                 bdf命令展示了在指定的文件系统中可以使用的磁盘空间大小,如果
      either on the specified filesystem (/dev/dsk/c0d0s0, for example) or                             没有文件系统被指定,则打印所有正常安装的文件系统的可以利用的
      on the file system in which the specified file (such as $HOME), is                               空间,打印的单位是kilobytes(千比特,kb)
      contained.  If no file system is specified, the free space on all of                            注意:1Gb=1000 000kb
      the normally mounted file systems is printed.  The reported numbers
      are in kilobytes.

    Options                                                                                       #选项
      The bdf command recognizes the following options:                                                bdf命令有以下选项:

           -b             Display information regarding file system                                     -b    展示有关文件系统交换信息
                          swapping.

           -i             Report the number of used and free inodes.                                   -i    展示可利用的空闲空间的大小 

           -l             Display information for local file systems only                               -l    仅仅展示本地文件系统的信息
                          (for example, HFS and CDFS file systems).

           -s             Do not sync the file system data on the disk                                 -s    在报告使用前不同步文件系统的数据,注意得到的数据可能
                          before reporting the usage.  Note that the data                                     不是最新的
                          reported by bdf may not be up to date.

           -t type        Report on the file systems of a given type (for
                          example, nfs or hfs).

 RETURN VALUE                                                                                      #返回值
      The bdf command returns 0 on success (able to get status on all file                              成功返回0,失败返回1
      systems), or returns 1 on failure (unable to get status on one or more
      file systems).

 WARNINGS                                                                                          #警告
      If file system names are too long, the output for a given entry is                                如果文件系统名字太长,将分成2行输出展示。
      displayed on two lines.                                                                           bdf命令不会计算磁盘保留用于交换的空间…

      The bdf command does not account for any disk space reserved for swap                             小结:bdf命令与其它查看空间的命令在计算空间的方法上有所区别,
      space, or used for the HFS boot block (8 KB, 1 per file system), HFS                                    命令得到的结果也会有一些出入。
      superblocks (8 KB each, 1 per disk cylinder), HFS cylinder group
      blocks (1 KB - 8 KB each, 1 per cylinder group), and inodes (currently
      128 bytes reserved for each inode).  Non-HFS file systems may have
      other items not accounted for by this command.

 AUTHOR
      bdf was developed by the University of California, Berkeley.

 Hewlett-Packard Company            - 1 -       HP-UX 11i Version 3 Feb 2007

 bdf(1M)                                                             bdf(1M)

 FILES
      /etc/fstab          Static information about the file systems.
      /etc/mnttab         Mounted file system table.
      /dev/dsk/*          File system devices.

 SEE ALSO
      df(1M), fstab(4), mnttab(4).
时间: 2024-12-07 23:00:58

[HP-UNIX]bdf命令总结的相关文章

HP UNIX 日常命令 TIPS

2017年,共享经济持续成为大众关注的焦点,从共享单车.共享雨伞.共享充电宝,到共享电动车.共享汽车.共享床位,甚至连女友都拿来共享了.戴上"共享"高帽的创业项目一茬接一茬地冒出来,正如收割的韭菜,最开始两茬是最嫩的,接下来生长出来的则会让人觉得食之无味又弃之可惜.对于投资人如此,对于用户们来说有何尝不是呢? 让我们盘点下近一年出现过的"共享"明星们,对于它们,死亡还是生存?这是个问题. 据统计,2016年中国的共享经济市场规模接近4万亿元:2017年,共享系宣告进

hp unix

HP-UNIX 命令大全 #vgdisplay -v vgname #lvdisplay -v lvfullpath #pvdisplay -v pvfullpath # ioscan –fnkC disk # swinstall –s /cdrom/(filename)        <安装软件补丁从cdrom下> # swremove                        <卸除应用程序> # shutdown 0                       <进

双机倒换(NewStartHA,SKYbility,hacmp,hp unix双机)

1.Suse linux  (NewStartHA): # cli cli:~>service-migrate Select service to migrate: Current service: 0) bill 1) gdb 2) cancel Select a service [0, 2]: 按照命令行的提示输入进行倒换 2.AIX(HACMP): # smit hacmp 后进入: enter进入: 查看双机状态: 将资源由suibao01切换至suibao02 : smitty hac

Unix常用命令

(一)基本命令 命令格式: 命令 参数 1.ls 显示文件名,等同于dos下dir命令 命令格式:ls [option] file option: -l 显示详细列表 域1 :文件类型和文件权限 域2 :文件连接数 域3 :文件所有者名字 域4 :文件用户组名字 域5 :文件长度 域6-8 :最近修改日期 域9 :文件名 -a 显示所有文件,包含隐藏文件(以. 起头的文件名) -R 显示文件及所有子目录 -F 显示文件(后跟*)和目录(后跟/) -d 与l选项合用,显示目录名而非其内容 2.cd

unix 常用命令

(一)基本命令 命令格式: 命令 参数 1.ls 显示文件名,等同于dos下dir命令 命令格式:ls [option] file option: -l 显示详细列表 域1 :文件类型和文件权限 域2 :文件连接数 域3 :文件所有者名字 域4 :文件用户组名字 域5 :文件长度 域6-8 :最近修改日期 域9 :文件名 -a 显示所有文件,包含隐藏文件(以. 起头的文件名) -R 显示文件及所有子目录 -F 显示文件(后跟*)和目录(后跟/) -d 与l选项合用,显示目录名而非其内容 2.cd

工作中用到的 Linux/Unix 常用命令

LINUX平时工作中用到的常用命令 :       scp是有Security的文件copy,基于ssh登录.操作起来比较方便,比如要把当前一个文件copy到远程另外一台主机上,可以如下命令. scp /home/1.gif [email protected]:/home/root 然后会提示你输入另外那台172.19.2.75主机的root用户的登录密码,接着就开始cp和ungzip了 如果想反过来操作,把文件从远程主机copy到当前系统,也很简单: scp [email protected]

20个 Unix/Linux 命令技巧

让我们用这些Unix/Linux命令技巧开启新的一年,提高在终端下的生产力.我已经找了很久了,现在就与你们分享. 删除一个大文件我在生产服务器上有一个很大的200GB的日志文件需要删除.我的rm和ls命令已经崩溃,我担心这是由于巨大的磁盘IO造成的,要删除这个大文件,输入: > /path/to/file.log # 或使用如下格式 : > /path/to/file.log # 然后删除它 rm /path/to/file.log 如何记录终端输出?试试使用script命令行工具来为你的终端

UNIX操作-命令&amp;快捷键

1. 光标及字符控制快捷键 常用的快捷键: Ctrl + d 删除一个字符,相当于通常的Delete键(命令行若无任何字符,则相当于exit:处理多行标准输入时也表示eof) Ctrl + h 退格删除一个字符,相当于通常的Backspace键 Ctrl + u 删除光标之前到行首的字符 Ctrl + k 删除光标之前到行尾的字符 Ctrl + c 取消当前行输入的命令,相当于Ctrl + Break Ctrl + a 光标移动到行首(Ahead of line),相当于通常的Home键 Ctr

HP Unix vsftp服务配置

HP Unix vsftp 服务配置: /opt/ssh/utils/ssh_chroot_setup.sh 运行脚本,会提示输入要建立的vsftp账号和要限制的家目录, 比如要限制的家目录为/JiaRoot/,则/etc/passwd 里面相应的vsftp账号家目录 /JiaRoot/./: 配置免密的时候,/JiaRoot/.ssh/权限为755,/JiaRoot/.ssh/authorized_keys权限为644,亲测有效.