Changes in RHEL6 and RHEL7

Source: Internet
Author: User
Tags rsyslog

Changes in RHEL6 and RHEL7

Administrative command and config-file changes

System Basics
Task RHEL6 RHEL7
View RH subscribe information /Etc/sysconfig/rhn/systemid
Subscribe-manager identity
Subscribe-manager identity
Configure RH submodules Rhn_register
Rhnreg_ks
Subscribe-manager
Subscribe-manager14
Rhn_register15
Basic Configuration
Task RHEL6 RHEL7
Graphical configuration tools System-config -* Gnome-control-center
Configure network System-config-network Nmcli
Nmtui
Nm-connection-editor
Configure system language System-config-language Localectl
Configure system time and date System-config-date
Date
Timedatectl
Date
Synchronize time and date Ntpdate
/Etc/ntp. conf
Ntpdate
/Etc/chrony. conf
Configure keyboard System-config-keyboard Localectl
Jobs and services
Task RHEL6 RHEL7
List all services Chkconfig
Ls/etc/init. d/
Systemctl-at service
Ls/{usr/lib, etc}/systemd/system/*. service
List running services Service-status-all Systemctl-t service-state = active
Start/stop a service Service name start
Service name stop
Systemctl start name. service
Systemctl stop name. service
Enable/disable a service Chkconfig name on
Chkconfig name off
Systemctl enable name. service
Systemctl disable name. service
Check if service enabled Chkconfig name Systemctl is-enabled name
View service status Service name status Systemctl status name. service
Create service file or change config Chkconfig-add Systemctl daemon-reload
View runlevel/target Runlevel Systemctl get-default
Change runlevel/target Init runlevel Systemctl isolate name.tar get
Init runlevel
Configure logging /Etc/rsyslog. conf /Etc/rsyslog. conf
/Etc/rsyslog. d/*. conf
/Var/log/journal/
/Etc/systemd/journald. conf
View logs /Var/log/ /Var/log/
Journalctl
Kernel, boot, and hardware
Task RHEL6 RHEL7
Bypass root password prompt at boot Append 1 or s or init =/bin/bash to kernel cmdline Append rd. break or init =/bin/bash to kernel using line
Shut down system Shutdown Systemctl shutdown
Power off system Poweroff Systemctl poweroff
Halt system Halt Systemctl halt
Reboot system Reboot Systemctl reboot
Configure default runlevel/target /Etc/inittab Systemctl set-default
Configure GRUB bootloader /Boot/grub. conf /Etc/default/grub
Grub2-mkconfig
Grub-set-default
Software management
Task RHEL6 RHEL7
Install software Yum install
Yum groupinstall
Yum install
Yum group install
View software info Yum info
Yum groupinfo
Yum info
Yum group info
File systems, volumes, and disks
Task RHEL6 RHEL7
Create/modify disk partitions Fdisk
Parted
Fdisk
Parted
Gdisk
Default file system Ext4 Xfs
Enlarge volumes formatted with default filesystem Vgextend
Lvextend
Resize2fs
Vgextend
Lvextend
Xfs_growfs
Networking
Task RHEL6 RHEL7
Configure name resolution /Etc/hosts
/Etc/resolv. conf
/Etc/hosts
/Etc/resolv. conf
Nmcli con mod
Configure hostname /Etc/sysconfig/network /Etc/hostname
Hostnamectl
Nmtui
View network interface info Ip addr
Ifconfig
Brctl
Ip addr
Nmcli dev show
Teamdctl
Brctl
Bridge
Configure network interface /Etc/sysconfig/network-scripts/ifcfg -* /Etc/sysconfig/network-scripts/ifcfg -*
Nmcli con [add | mod | edit]
Nmtui
Nm-connection-editor
Configure firewall Iptables & ip6tables
/Etc/sysconfig/ip * tables
System-config-firewall
Firewall-cmd
Firewall-config
View ports/sockets Netstat
Ss
Lsof
Ss
Lsof

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.