[root@localhost ~]# ls
dos hello.c
[root@localhost ~]# mkdir vitest
[root@localhost ~]# ls
dos hello.c vitest
[root@localhost ~]# mkdir ~/vitest/inittab
[root@localhost ~]# ls
dos hello.c vitest
[root@localhost ~]# cd vitest
[root@localhost vitest]# ls
inittab
vi inittab
# process == program to run
#
#Startup the system
::sysinit:/bin/mount -t proc proc /proc
::sysinit:bin/mount -o remount,rw /
# now run any rc scripts
::sysinit:/etc/init.d/rcs
#
# Stuff to do before rebooting
::shutdown:/etc/init.d/rck
::shutdown:/sbin/swapoff -a
::shutdown:/bin/umount -a -r
process == program to run
#
#Startup the system
::sysinit:/bin/mount -t proc proc /proc
# now run any rc scripts
::sysinit:/etc/init.d/rcs
#
# Stuff to do before rebooting
::shutdown:/etc/init.d/rck
::shutdown:/sbin/swapoff -a
::shutdown:/bin/umount -a -r
:%s/sysinit /config /g
# process == program to run
#
#Startup the system
::config:/bin/mount -t proc proc /proc
# now run any rc scripts
::config:/etc/init.d/rcs
#
# Stuff to do before rebooting
::shutdown:/etc/init.d/rck
::shutdown:/sbin/swapoff -a
::shutdown:/bin/umount -a -r
'inittab' 12L, 258C
# process == program to run
#
#Startup the system
::config:/bin/mount -t proc proc /proc
# now run any rc scripts
::config:/etc/init.d/rcs
#
# Stuff to do before rebooting
::shutdown:/etc/init.d/rck
::shutdown:/sbin/swapoff -a
::shutdown:/bin/umount -a -r
::config:/etc/init.d/rcs
'inittab' 13L, 283C
process == program to run
Startup the system
::config:/bin/mount -t proc proc /proc
now run any rc scripts
::config:/etc/init.d/rcs
Stuff to do before rebooting
::shutdown:/etc/init.d/rck
::shutdown:/sbin/swapoff -a
::shutdown:/bin/umount -a -r
::config:/etc/init.d/rcs
'inittab' 13L, 277C
1808 20181942 liujing
process == program to run
Startup the system
::config:/bin/mount -t proc proc /proc
now run any rc scripts
::config:/etc/init.d/rcs
Stuff to do before rebooting
::shutdown:/etc/init.d/rck
::shutdown:/bin/umount -a -r
::config:/etc/init.d/rcs
'inittab' 12L, 267C
:wq
[root@localhost ~]# ls
dos hello.c inittab vitest
[root@localhost ~]# mv inittab newinittab.conf
[root@localhost ~]# ls
dos hello.c newinittab.conf vi
Linux第三次
最新推荐文章于 2024-11-26 20:56:53 发布