You are on page 1of 30

Com

UpdatedSeptember 25 2015 at 2:31 PM-


English

Task

View subscription information

Configure subscription
View RHEL version information

View system profile

Task
Graphical configuration tools
Text-based configuration tools
Configure printer

Configure network
Configure system language

Configure time and date

Synchronize time and date


Configure keyboard

Configure SSH

Task

List all services


List running services

Start/stop service

Enable/disable service
View service status
Check if service is enabled

Create new service file or modify configuration

View run level/target

Change run level/target

Configure logging

View logs

Configure system audit


View audit output

Schedule/batch tasks
Find file by name
Find file by characteristic

Create archive

K
Task
Single user/rescue mode
Shut down system

Power off system

Halt system

Reboot system
Configure default run level/target
Configure GRUB bootloader
Configure kernel module
View hardware configured
Configure hardware device

View kernel parameters


Load kernel module
Remove kernel module

View kernel version

Task

Install software

View software info


Update software
Upgrade software

Configure software repository

Find package owning file


View software version

View installed software

Task
Graphical user management
Create user account
Delete user account

View/change user account details


Create user group
Delete user group

Change group details


Change user password

Change user permissions


Change group permissions
Change password policy
View user sessions

File
Task
Default file system

Create/modify disk partitions

Format disk partition

Defragment disk space

Mount storage

Mount and activate swap


Configure static mounts
View free disk space

View logical volume info

Create physical volume

Create volume group

Create logical volume

Enlarge volumes formatted with default file system

Shrink volumes formatted with default file system

Check/repair file system


Check/repair file system

View NFS share

Configure NFS share

Configure on-demand auto-mounts

Change file permissions


Change file attributes
Change access control list

Task

Configure name resolution

Configure hostname

View network interface info

Configure network interface


View routes

Configure routes

Configure firewall

View ports/sockets
Task

Configure system security


Report on system security

LDAP, SSSD, Kerberos


Network users

Task
Trace system calls
Trace library calls

Change process priority


Change process run location

Kill a process

View system usage

View disk usage


Common administrative command
r 25 2015 at 2:31 PM-

Lists common administrative commands for Red H


Sys
RHEL5 RHEL6
/etc/sysconfig/rhn/systemid
/etc/sysconfig/rhn/systemid subscription-manager identity
rhn_register rhn_register
subscription-manager1 rhnreg_ks
subscription-manager
/etc/redhat-release
sosreport sosreport
dmidecode dmidecode
hwbrowser lstopo
lscpu

Basic configuration
RHEL5 RHEL6
system-config-*
system-config-*-tui
system-config-printer

system-config-network
system-config-language
system-config-date
date
ntpdate
/etc/ntp.conf

system-config-keyboard
/etc/ssh/ssh_config
/etc/ssh/sshd_config
~/.ssh/config ssh-keygen

Jobs and services


RHEL5 RHEL6
chkconfig --list
ls /etc/init.d/
service --status-all
servicenamestart
servicenamestop
chkconfignameon
chkconfignameoff
servicenamestatus
chkconfigname--list

chkconfig --add
runlevel
who -r
/etc/inittab
initrun_level

/etc/syslog.conf /etc/rsyslog.conf

/var/log
addaudit=1to kernel cmdline
auditctl
/etc/audit/auditd.conf
/etc/audit/audit.rules
authconfig
/etc/pam.d/system-auth
pam_tty_audit kernel module
aureport /var/log/faillog
cron
at
batch
locate
find
tar
cpio
zip

Kernel, boot, and hardware


RHEL5 RHEL6
append1orsorinit=/bin/bashto kernel cmdline
shutdown

poweroff

halt

reboot
/etc/inittab
/boot/grub/grub.conf
modprobe
hwbrowser lshw (in EPEL)
udev
sysctl -a
cat /proc/cmdline
modprobe
modprobe -r
rpm -q kernel
uname -r

Software management
RHEL5 RHEL6
yum install
yum groupinstall
yum info
yum groupinfo
yum update
yum upgrade
subscription-manager repos
/etc/yum.repos.d/*.repo
rpm -qffilename
yum providesfilename-glob
rpm -qpackagename
rpm -qa
yum list installed

User management
RHEL5 RHEL6
system-config-users
useradd
userdel
usermod
/etc/passwd
vipw
id
groupadd
groupdel
groupmod
/etc/group
passwd
usermod
visudo
groupmod
visudo
chage
w

File systems, volumes, and disks


RHEL5 RHEL6
ext3 ext4
fdisk
parted

mkfs.filesystem_type (ext4, xfs)


mkswap

copy data to new file system copy data to new file system
fsck (look for 'non-contiguous inodes') fsck (look for 'non-contiguous inodes')
xfs_fsr
mount
/etc/fstab

/etc/fstab
swapon -a
/etc/fstab
df
lvdisplay
lvs
vgdisplay
vgs
pvdisplay
pvs

pvcreate

vgcreate

lvcreate
vgextend
lvextend
resize2fs

resize2fs
lvreduce
vgreduce

fsck
fsck
showmount -e
mount
/etc/exports
service nfs reload
/etc/auto.master.d/*.autofs
/etc/auto.*
chmod
chown
chgrp
umask (future file creation)
chattr
setfacl

Networking
RHEL5 RHEL6
/etc/hosts
/etc/resolv.conf

/etc/sysconfig/network
ip addr
ifconfig
brctl

/etc/sysconfig/network-scripts/ifcfg-*
ip route
ip route add
system-config-network
/etc/sysconfig/route-iface

iptables and ip6tables iptables and ip6tables


/etc/sysconfig/ip*tables /etc/sysconfig/ip*tables
system-config-firewall
ss
lsof
netstat

Security and identity


RHEL5 RHEL6
/etc/selinux/config
chcon
restorecon
semanage
setsebool
system-config-selinux
sealert
authconfig
authconfig-tui
authconfig-gtk
getent

Resource management
RHEL5 RHEL6
strace
ltrace
nice
renice
taskset
kill
pkill
killall
top top
ps ps
sar sar
iostat iostat
netstat netstat
vmstat ss
mpstat vmstat
numastat mpstat
numastat
tuna
df
df iostat
ve commands in Red Hat Enterprise Linux 5, 6, and 7

tive commands for Red Hat Enterprise Linux 5, 6 and 7. Printable poster also available.
System basics
RHEL7

subscription-manager identity
subscription-manager2
rhn_register3

RHEL7
gnome-control-center

nmcli
nmtui
nm-connection-editor
localectl
timedatectl
date
timedatectl
/etc/chrony.conf
ntpdate
localectl

RHEL7
systemctl -at service
ls /etc/systemd/system/*.service
ls /usr/lib/systemd/system/*.service
systemctl -t service --state=active
systemctl startname.service
systemctl stopname.service
systemctl enablename.service
systemctl disablename.service
systemctl statusname.service
systemctl is-enabledname
systemctl daemon-reload
/etc/systemd/system/*.service
systemctl get-default
who -r
systemctl isolatename.target
systemctl set-default
/etc/rsyslog.conf
/etc/rsyslog.d/*.conf
/var/log/journal
systemd-journald.service
/var/log
journalctl

are
RHEL7
appendrd.breakorinit=/bin/bashto kernel cmdline

poweroff
systemctl poweroff
halt
systemctl halt
reboot
systemctl reboot
systemctl set-default
/etc/default/grub
grub2-mkconfig
grub-set-default

t
RHEL7
yum install
yum group install
yum info
yum group info

RHEL7
disks
RHEL7
xfs
fdisk
gdisk
parted
ssm create
mkfs.filesystem_type (ext4, xfs)
mkswap
ssm create

nodes')

mount
/etc/fstab
ssm mount

pvcreate
ssm create (if backend is lvm)
vgcreate
ssm create (if backend is lvm)
lvcreate
ssm create (if backend is lvm)
vgextend
lvextend
xfs_growfs
ssm resize

XFS cannot currently be shrunk; copy desired data to a smaller file system.
fsck
ssm check

/etc/exports
systemctl reload nfs.service

RHEL7
/etc/hosts
/etc/resolv.conf
nmcli con mod
hostnamectl
/etc/hostname
nmtui
ip addr
nmcli dev show
teamdctl
brctl
bridge
/etc/sysconfig/network-scripts/ifcfg-*
nmcli con [add|mod|edit]
nmtui
nm-connection-editor

ip route add
nmcli
nmtui
nm-connection-editor
/etc/sysconfig/route-iface
firewall-cmd
firewall-config

ss
lsof
RHEL7

t
RHEL7

top
ps
sar
iostat
ss
vmstat
mpstat
numastat
tuna
6, and 7

You might also like