1. systemctl:
systemctl enable sshd.service
service sshd status
fedora26不使用inittab文件了,改用命令:systemctl set-default
systemctl get-default 命令获取当前模式
systemctl set-default multi-user.target
2. 数据库
systemctl start mariadb
systemctl enable sshd.service
数据库初始化:mysqladmin -u root password ‘?????’
数据库命令:mysql -u root -p
3. 用户和组和sudoers:
将 newuser2 添加到组root中: usermod -G root newuser2
adduser tommy
修改用户,使其属于root组(wheel):usermod -g root tommy
修改 /etc/sudoers 文件,找到下面一行,在root下面添加一行,如下所示:
root ALL=(ALL) ALL
tommy ALL=(ALL) NOPASSWD ALL
4. dnf替代yum:
dnf info nano
dnf provides /bin/bash
dnf search nano
dnf list installed