Sie sind auf Seite 1von 1

RED HAT ENTERPRISE LINUX 5, 6, AND 7

TASK RHEL5 RHEL6 RHEL7

Graphical user management system-config-users

Create user account useradd

Common administrative commands Delete user account

Change user account details


userdel

usermod

usermod
View user account details

USER MANAGEMENT
/etc/passwd

Create user group groupadd

Delete user group groupdel


TASK RHEL5 RHEL6 RHEL7 TASK RHEL5 RHEL6 RHEL7
Change group details groupmod
/etc/sysconfig/rhn/systemid /etc/selinux/config
View subscription information
SYSTEM BASICS

/etc/sysconfig/rhn/systemid subscription-manager identity Change user password passwd username


subscription-manager identity chcon
Configure system restorecon

AND IDENTITY
rhn_register security semanage
Change user permissions usermod
Configure subscription subscription-manager 1 setsebool /etc/sudoers
rhn_register rhnreg_ks

SECURITY
rhn_register 2 system-config-selinux
subscription-manager
groupmod
Change group permissions
sosreport sosreport Report on system /etc/sudoers
View system profile sealert
dmidecode dmidecode security
hwbrowser lshw Change password policy chage
authconfig
View RHEL version information /etc/redhat-release LDAP, SSSD, Kerberos authconfig-tui Encrypted password
/etc/shadow
authconfig-gtk location
1 subscription-manager is used for Satellite 6, Satellite 5.6 with SAM and newer, and Red Hats CDN.
2 RHN tools are deprecated on Red Hat Enterprise Linux 7. rhn_register should be used for Satellite server 5.6 and newer only. For details, see: Satellite 5.6 unable to register RHEL 7 client system due to Network users getent View/end user sessions w
rhn-setup package not included in Minimal installation

TASK RHEL5 RHEL6 RHEL7 TASK RHEL5 RHEL6 RHEL7

Graphical configuration tools system-config-* gnome-control-center Default file system ext3 ext4 xfs

nmcli copy data to new file system


copy data to new file system
Configure network system-config-network nmtui Defragment disk space fsck (look for non-contiguous inodes)
fsck (look for non-contiguous inodes)
nm-connection-editor xfs_fsr
BASIC CONFIGURATION

Configure system language system-config-language localectl fdisk


Create/modify disk fdisk gdisk
timedatectl
partitions parted parted
Configure time and date system-config-date ssm create
date

ntpdate timedatectl mkfs.filesystem_type (ext4, xfs)


Synchronize time and date mkfs.filesystem_type (ext4, xfs)
/etc/ntp.conf /etc/chrony.conf
Format disk partition mkswap
mkswap
ssm create
Configure keyboard system-config-keyboard localectl
mount
mount
Mount storage /etc/fstab
Text-based configuration tools system-config-*-tui /etc/fstab
ssm mount

Configure printer system-config-printer pvcreate


Create physical volume pvcreate
ssm create (if backend is lvm)
smbclient
Configure samba /etc/samba/smb.conf vgcreate
Create volume group vgcreate

FILE SYSTEMS, VOLUMES, AND DISKS


smbpasswd ssm create (if backend is lvm)

/etc/ssh/ssh_config lvcreate
Configure SSH Create logical volume lvcreate
/etc/ssh/sshd_config ssm create (if backend is lvm)
~/.ssh/config ssh-keygen
vgextend
Enlarge volumes vgextend
lvextend
formatted with default lvextend
xfs_growfs
TASK RHEL5 RHEL6 RHEL7 file system resize2fs
ssm resize

/etc/rsyslog.conf Shrink volumes resize2fs


/etc/rsyslog.d/*.conf XFS cannot currently be shrunk; copy
Configure logging /etc/syslog.conf /etc/rsyslog.conf formatted with default lvreduce
/var/log/journal desired data to a smaller file system.
file system vgreduce
systemd-journald.service
fsck
systemctl -at service Check/repair file system fsck
chkconfig --list ssm check
List all services ls /etc/systemd/system/*.service
ls /etc/init.d/
ls /usr/lib/systemd/system/*.service /etc/exports /etc/exports
Configure NFS share
service nfs reload systemctl reload nfs.service
List running services service --status-all systemctl -t service --state=active
Mount and activate /etc/fstab
service name start systemctl start name.service swap swapon -a
Start/stop service
service name stop systemctl stop name.service
Automatically mount
chkconfig name on systemctl enable name.service /etc/fstab
Enable/disable service at boot
chkconfig name off systemctl disable name.service
View free disk space df
View service status service name status systemctl status name.service
lvdisplay
Check if service is enabled chkconfig name systemctl is-enabled name lvs
vgdisplay
Create new service file or View logical volume info
JOBS AND SERVICES

chkconfig --add systemctl daemon-reload vgs


modify configuration pvdisplay
pvs
runlevel systemctl get-default
View run level/target
who -r who -r showmount -e
View NFS share
mount
/etc/inittab systemctl isolate name.target
Change run level/target
init run_level systemctl set-default Automatically /etc/auto.master.d/*.autofs
mount after boot /etc/auto.*
/var/log
View logs /var/log
journalctl chmod
chown
add audit=1 to kernel cmdline Change file permissions
chgrp
auditctl umask
/etc/audit/auditd.conf
Configure system audit /etc/audit/audit.rules Change access
authconfig setfacl
control list
/etc/pam.d/system-auth
pam_tty_audit kernel module

View audit output aureport /var/log/faillog TASK RHEL5 RHEL6 RHEL7

cron iptables and ip6tables


Schedule tasks iptables and ip6tables firewall-cmd
at Configure firewall /etc/sysconfig/ip*tables
/etc/sysconfig/ip*tables firewall-config
system-config-firewall
Configure batch tasks batch
dhcpd
/etc/dhcpd.conf
Find file by name locate Configure DHCP client /etc/dhcp/dhcpd.conf
/etc/dhcp6c.conf
/etc/sysconfig/dhcpd
Find file by characteristic find
/etc/hosts
Configure name /etc/hosts
/etc/resolv.conf
tar resolution /etc/resolv.conf
nmcli con mod
cpio
Create archive zip
hostnamectl
gzip
NETWORKING

Configure hostname /etc/sysconfig/network /etc/hostname


bzip2
nmtui

ip addr
TASK RHEL5 RHEL6 RHEL7 ip addr nmcli dev show
View network interface
ifconfig teamdctl
info
brctl brctl
append rd.break or init=/bin/bash
Single user/rescue mode append 1 or s or init=/bin/bash to kernel cmdline bridge
to kernel cmdline
/etc/sysconfig/network-scripts/ifcfg-*
Shut down system shutdown systemctl shutdown
Configure network nmcli con [add|mod|edit]
/etc/sysconfig/network-scripts/ifcfg-*
interface nmtui
Power off system poweroff systemctl poweroff
KERNEL, BOOT, AND HARDWARE

nm-connection-editor

Halt system halt systemctl halt ss


ss
View ports/sockets lsof
lsof
Reboot system reboot systemctl reboot netstat

Configure default run level/target /etc/inittab systemctl set-default View routes ip route

/etc/default/grub /etc/sysconfig/network
Configure routes
Configure GRUB bootloader /boot/grub/grub.conf grub2-mkconfig system-config-network
grub-set-default

View hardware configured hwbrowser lshw


TASK RHEL5 RHEL6 RHEL7
Configure kernel module modprobe
top
top
top ps
Configure hardware device udev ps
ps sar
sar
sar iostat
sysctl -a iostat
View kernel parameters iostat netstat
View system usage ss
RESOURCE MANAGEMENT

cat /proc/cmdline netstat ss


vmstat
vmstat vmstat
Load kernel module modprobe mpstat
mpstat mpstat
numastat
numastat numastat
tuna
Remove kernel module modprobe -r tuna

rpm -q kernel df
View kernel version View disk usage df
uname -r iostat

Trace system calls strace

TASK RHEL5 RHEL6 RHEL7


Trace library calls ltrace

yum install yum install


Install software Change process priority
nice
yum groupinstall yum group install renice

yum info yum info


View software info Change process run
MANAGEMENT

yum groupinfo yum group info taskset


location
SOFTWARE

Update software yum update


kill
Kill a process pkill
Upgrade software yum upgrade
killall

Configure software repository /etc/yum.repos.d/*.repo

Find file in package rpm -qf filename

View software version rpm -q packagename


Copyright 2014 Red Hat, Inc. Red Hat, Red Hat Enterprise Linux, the Shadowman logo, and JBoss are trademarks of Red Hat, Inc.,
10/14 registered in the U.S. and other countries. Linux is the registered trademark of Linus Torvalds in the U.S. and other countries.
View installed software rpm -qa

Das könnte Ihnen auch gefallen