head(1) の使用例

概要

ファイルの先頭を表示するツール

使い方

先頭5行を表示
[root@RHEL51-00 ~]# head -15 /etc/inittab
#
# inittab       This file describes how the INIT process should set up
#               the system in a certain run-level.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
[root@RHEL51-00 ~]# head -n 5 /etc/inittab
#
# inittab       This file describes how the INIT process should set up
#               the system in a certain run-level.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
[root@RHEL51-00 ~]#

仕様

  • LSB4.0
以上

コメント