-
-n <数字>:指定显示头部内容的行数;
-
-c <字符数>:指定显示头部内容的字符数;
-
-v:总是显示文件名的头信息,显示多个文件时默认选项;
-
-q:不显示文件名的头信息,显示单个文件时默认选项;
-
文件列表:指定显示头部内容的文件列表。
1
2
3
4
5
6
7
8
9
10
11
|
[root@moban ~]#head /etc/inittab
# inittab
is
onlyused by upstart
for
the
default
runlevel.
#
# ADDING OTHERCONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# Systeminitialization
is
started by /etc/init/rcS.conf
#
# Individual runlevelsare started by /etc/init/rc.conf
#
# Ctrl-Alt-Delete ishandled by /etc/init/control-alt-
delete
.conf
#
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
[root@moban ~]# head /etc/inittab /etc/fstab
==> /etc/inittab <==
# inittab
is
only used by upstart
for
the defaultrunlevel.
#
# ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ONYOUR SYSTEM.
#
# System initialization
is
started by /etc/init/rcS.conf
#
# Individual runlevels are started by /etc/init/rc.conf
#
# Ctrl-Alt-Delete
is
handled by/etc/init/control-alt-
delete
.conf
#
==> /etc/fstab <==
#
# /etc/fstab
# Created by anaconda on Mon May
11
22
:
18
:
51
2015
#
# Accessible filesystems, by reference, are maintainedunder
'/dev/disk'
# See man pages fstab(
5
), findfs(
8
), mount(
8
) and/or blkid(
8
)
for
more info
#
UUID=17ec9366-d335-4b07-
8890
-3765cabe746a / ext4 defaults
1
1
UUID=1f8e61c7-de21-42e3-89c5-cb28f607d1db /boot ext4 defaults
1
2
|
1
2
3
4
5
6
|
[root@moban ~]# head -n
5
/etc/inittab
# inittab
is
onlyused by upstart
for
the
default
runlevel.
#
# ADDING OTHERCONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# Systeminitialization
is
started by /etc/init/rcS.conf
|
1
2
3
4
|
[root@moban ~]# head -c
88
/etc/inittab
# inittab
is
onlyused by upstart
for
the
default
runlevel.
#
# ADDING OTHERCONFIGURATI[root@moban ~]#
|