Quantcast
Channel: CodeSection,代码区,Linux操作系统:Ubuntu_Centos_Debian - CodeSec
Viewing all articles
Browse latest Browse all 11063

awk应用和systemd

$
0
0

一:练习

1、求每班总成绩和平均成绩

name class score

wang 1 100

zhang 2 90

li 1 80


awk应用和systemd

2、为编译安装的httpd服务,实现service unit文件


awk应用和systemd

3、破解centos7 口令

启动程序是按e==》在要启动内核的行找到linux16行的后面+rd.break==>ctrl+x启动==》mount -o rw,remount /sysroot==>chroot /sysroot==>passwd xxxx==>touch /.autoreload

4、修改默认的启动内核

修改/etc/grub2.cfg


awk应用和systemd
awk应用和systemd

5、启动时临时禁用SELinux

selinux=0

6、启动时进入emergency模式

system.unit=emergency.target

7、删除编译安装的新内核

删除/boot/下的内核文件

删除/lib/下的内核库文件

删除/boot/grub2/grub.cfg下的linux16关于新内核的文件


Viewing all articles
Browse latest Browse all 11063

Trending Articles