You are on page 1of 21

4/25/2019 Common administrative commands in Red Hat Enterprise Linux 5, 6, 7, and 8 - Red Hat Customer Portal

C U S T O M E R (https://access.redhat.com/)
P O R TA L

Common administrative commands in Red Hat Enterprise


Linux 5, 6, 7, and 8
Updated April 5 2019 at 9:09 PM - English ()

System basics
Task RHEL5 RHEL6 RHEL7 RHEL8

/etc/sysconfig/rhn/systemid
View subscription subscription-manager
/etc/sysconfig/rhn/systemid subscription-manager
information identity
identity

2
rhn_register subscription-manager
1
Configure subscription rhn_register rhnreg_ks
3
subscription-manager rhn_register

View RHEL version


/etc/redhat-release
information

sosreport
sosreport dmidecode
sosreport
dmidecode lstopo
View system profile
dmidecode lscpu
hwbrowser lstopo cat
lscpu /proc/cpuinfo
lshw

Basic configuration
Task RHEL5 RHEL6 RHEL7 RHEL8

Graphical configuration tools system-config-* gnome-control-center

Text-based configuration tools system-config-*-tui

Configure printer system-config-printer gnome-control-center

nmcli
nmcli
nmtui
Configure network system-config-network nmtui
nm-connection-editor
nm-connection-editor
gnome-control-center

localectl
Configure system language system-config-language localectl
gnome-control-center

https://access.redhat.com/articles/1189123 1/21
4/25/2019 Common administrative commands in Red Hat Enterprise Linux 5, 6, 7, and 8 - Red Hat Customer Portal

C U S T O M E R (https://access.redhat.com/) timedatectl
P O R TA L

system-config-date timedatectl date
Configure time and date
date date
gnome-control-center

timedatectl
timedatectl
ntpdate date
Synchronize time and date /etc/chrony.conf
/etc/ntp.conf /etc/chrony.conf
ntpdate
chronyc

localectl
Configure keyboard system-config-keyboard localectl
gnome-control-center

/etc/ssh/ssh_config
/etc/ssh/sshd_config
Configure SSH
~/.ssh/config
ssh-keygen

Jobs and services


Task RHEL5 RHEL6 RHEL7 RHEL8

systemctl list-units -
systemctl -at service at service
chkconfig --list
ls /etc/systemd/system/*.service find /etc/systemd/
List all services
ls /usr/lib/systemd/
ls /etc/init.d/
/usr/lib/systemd/system/*.service /run/systemd/ -name
*.service"

List running
service --status-all systemctl -t service --state=active
services

Start/stop service name start systemctl start name.service


service service name stop systemctl stop name.service

Enable/disable chkconfig name on systemctl enable name.service


service chkconfig name off systemctl disable name.service

View service
service name status systemctl status name.service
status

Check if service
chkconfig name --list systemctl is-enabled name
is enabled

Create new
service file or systemctl daemon-reload
chkconfig --add
modify /etc/systemd/system/*.service
configuration

View run runlevel systemctl get-default


level/target who -r who -r

https://access.redhat.com/articles/1189123 2/21
4/25/2019 Common administrative commands in Red Hat Enterprise Linux 5, 6, 7, and 8 - Red Hat Customer Portal

C U S T O M E R (https://access.redhat.com/)systemctl isolate name.target


Change run /etc/inittab
P O R TA L

level/target init run_level
systemctl set-default

/etc/rsyslog.conf
Configure /etc/rsyslog.d/*.conf
/etc/syslog.conf /etc/rsyslog.conf
logging /var/log/journal
systemd-journald.service

/var/log
View logs /var/log
journalctl

add audit=1 to kernel


cmdline
add audit=1 to kernel cmdline
auditctl
auditctl
/etc/audit/auditd.conf
Configure /etc/audit/auditd.conf
/etc/audit/audit.rules
system audit /etc/audit/audit.rules
authconfig
authconfig
/etc/pam.d/system-auth
/etc/pam.d/system-
pam_tty_audit kernel module
auth
tlog

View audit aureport


output /var/log/faillog

cron
cron at
Schedule/batch
at batch
tasks
batch systemd-run --on-
calendar

Find file by
locate
name

Find file by
find
characteristic

tar
cpio
Create archive
zip
xz

Kernel, boot, and hardware


Task RHEL5 RHEL6 RHEL7 RHEL8

append 1 or s or init=/bin/bash to append 1 or s or rd.break or init=/bin/bash to


Single user/rescue mode
kernel cmdline kernel cmdline

Shut down system shutdown

https://access.redhat.com/articles/1189123 3/21
4/25/2019 Common administrative commands in Red Hat Enterprise Linux 5, 6, 7, and 8 - Red Hat Customer Portal

C U S T O M E R (https://access.redhat.com/) poweroff
Power off system
P O R TA L
poweroff 
systemctl poweroff

halt
Halt system halt
systemctl halt

reboot
Reboot system reboot
systemctl reboot

Configure default run


/etc/inittab systemctl set-default
level/target

/etc/default/grub
Configure GRUB
/boot/grub/grub.conf grub2-mkconfig
bootloader
grub-set-default

Configure kernel module modprobe

View hardware configured hwbrowser lshw (in EPEL) lshw

Configure hardware device udev

sysctl -a
View kernel parameters
cat /proc/cmdline

Load kernel module modprobe

Remove kernel module modprobe -r

rpm -q kernel
View kernel version
uname -r

Software management
Task RHEL5 RHEL6 RHEL7 RHEL8

yum install yum install


Install software
yum groupinstall yum group install

yum info yum info


View software info
yum groupinfo yum group info

Update software yum update

Upgrade software yum upgrade

subscription-manager repos
Configure software repository
/etc/yum.repos.d/*.repo

rpm -qf filename


Find package owning file
yum provides filename-glob

yum list installed packagename


View software version rpm -q packagename
rpm -q packagename

https://access.redhat.com/articles/1189123 4/21
4/25/2019 Common administrative commands in Red Hat Enterprise Linux 5, 6, 7, and 8 - Red Hat Customer Portal

C U S T O M E R (https://access.redhat.com/)
rpm -qa
View installed software
P O R TA L

yum list installed

Install a module yum module install module_name

View info on a module yum module info module_name

View a module's streams yum module info module_name

yum module remove module_name:stream


Change module streams yum module reset module:stream
yum module install module:new_stream

List available modules yum module list

User management
Task RHEL5 RHEL6 RHEL7 RHEL7

Graphical user management system-config-users gnome-control-center

Create user account useradd

Delete user account userdel

usermod
/etc/passwd
View/change user account details
vipw
id

Create user group groupadd

Delete user group groupdel

groupmod
Change group details
/etc/group

Change user password passwd

usermod
Change user permissions
visudo

groupmod
Change group permissions
visudo

Change password policy chage

View user sessions w

File systems, volumes, and disks


Task RHEL5 RHEL6 RHEL7 RHEL8

https://access.redhat.com/articles/1189123 5/21
4/25/2019 Common administrative commands in Red Hat Enterprise Linux 5, 6, 7, and 8 - Red Hat Customer Portal

Default file system C U S T O M E R (https://access.redhat.com/)


ext3 ext4 xfs
P O R TA L

fdisk
gdisk parted
fdisk
fdisk
Create/modify disk partitions
parted gdisk
parted
ssm ssm_create
create

mkfs.filesystem_type (ext4, xfs)


mkfs.filesystem_type (ext4, xfs)
Format disk partition mkswap
mkswap
ssm create

copy data to new file


copy data to new file system
system
Defragment disk space fsck (look for 'non-contiguous inodes')
fsck (look for 'non-
xfs_fsr
contiguous inodes')

mount
mount
Mount storage
/etc/fstab
/etc/fstab
ssm mount

/etc/fstab
Mount and activate swap
swapon -a

Configure static mounts /etc/fstab

View free disk space df

lvdisplay
lvs
vgdisplay
View logical volume info
vgs
pvdisplay
pvs

pvcreate
Create physical volume pvcreate ssm create (if backend is
lvm)

vgcreate
Create volume group vgcreate ssm create (if backend is
lvm)

lvcreate
Create logical volume lvcreate ssm create (if backend is
lvm)

vgextend
vgextend
Enlarge volumes formatted with lvextend
lvextend
default file system xfs_growfs
resize2fs
ssm resize

https://access.redhat.com/articles/1189123 6/21
4/25/2019 Common administrative commands in Red Hat Enterprise Linux 5, 6, 7, and 8 - Red Hat Customer Portal

C U S T O M E R (https://access.redhat.com/)
resize2fs
Shrink volumes formatted with XFS cannot currently be shrunk; copy desired
P O R TA L lvreduce
default file system data to a smaller file system.
vgreduce

fsck
Check/repair file system fsck
ssm check

showmount -e
View NFS share
mount

/etc/exports /etc/exports
Configure NFS share
service nfs reload systemctl reload nfs.service

Configure on-demand auto- /etc/auto.master.d/*.autofs


mounts /etc/auto.*

chmod
chown
Change file permissions
chgrp
umask (future file creation)

Change file attributes chattr

Change access control list setfacl

Networking
Task RHEL5 RHEL6 RHEL7 RHEL8

/etc/hosts
Configure name /etc/hosts
/etc/resolv.conf
resolution /etc/resolv.conf
nmcli con mod

hostnamectl
Configure hostname /etc/sysconfig/network /etc/hostname
nmtui

ip addr
ip addr
nmcli dev show
View network interface
teamdctl
info ifconfig
brctl
brctl
bridge

/etc/sysconfig/network-
scripts/ifcfg-*
Configure network
/etc/sysconfig/network-scripts/ifcfg-* nmcli con [add|mod|edit]
interface
nmtui
nm-connection-editor

View routes ip route

https://access.redhat.com/articles/1189123 7/21
4/25/2019 Common administrative commands in Red Hat Enterprise Linux 5, 6, 7, and 8 - Red Hat Customer Portal

C U S T O M E R (https://access.redhat.com/) ip route add


P O R TA L ip route add

nmcli
Configure routes system-config-network nmtui
/etc/sysconfig/route-iface nm-connection-editor
/etc/sysconfig/route-iface

iptables and ip6tables firewall-cmd firewall-cmd


iptables and ip6tables
Configure firewall /etc/sysconfig/ip*tables firewall- firewall-config
/etc/sysconfig/ip*tables
system-config-firewall config nftables

ss
ss ss lsof
View ports/sockets lsof lsof netstat
netstat netstat pcp-dstat --
socket

Security and identity


Task RHEL5 RHEL6 RHEL7 RHEL8

/etc/selinux/config
chcon
restorecon
Configure system security
semanage
setsebool
system-config-selinux

Report on system security sealert

authconfig
LDAP, SSSD, Kerberos authconfig-tui authselect
authconfig-gtk

Network users getent

Resource management
Task RHEL5 RHEL6 RHEL7 RHEL8

Trace system calls strace

Trace library calls ltrace

nice
Change process priority
renice

Change process run location taskset

https://access.redhat.com/articles/1189123 8/21
4/25/2019 Common administrative commands in Red Hat Enterprise Linux 5, 6, 7, and 8 - Red Hat Customer Portal

C U S T O M E R (https://access.redhat.com/)
kill
P O R TA L

Kill a process pkill

killall

top pcp atop


top
top ps top
ps
ps sar ps
sar
sar iostat sar
iostat
iostat netstat iostat
View system usage ss
netstat ss ss
vmstat
vmstat vmstat vmstat
mpstat
mpstat mpstat mpstat
numastat
numastat numastat numastat
tuna
tuna tuna

pcp-dstat
df pmiostat
View disk usage df
iostat df
iostat

1. Be aware of potential issues when using subscription-manager on Red Hat Enterprise Linux 5:
https://access.redhat.com/solutions/129003 (https://access.redhat.com/solutions/129003). ↩

2. subscription-manager is used for Satellite 6, Satellite 5.6 with SAM and newer, and Red Hat's CDN.

3. 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: What's the difference between management services provided by Red Hat Network
(RHN) Classic and Red Hat Customer Portal Subscription Management/RHSM?
(https://access.redhat.com/articles/63269), Transition of Red Hat Network Classic Hosted to Red Hat Subscription
Management (https://access.redhat.com/rhn-to-rhsm), and Satellite 5.6 unable to register RHEL 7 client system
due to rhn-setup package not included in Minimal installation (https://access.redhat.com/solutions/737373). ↩

Attachments
- rhel_5_6_7_cheatsheet_24x36_0417_ jcs.pdf (/node/1189123/40/0/13536301)
- rhel_5_6_7_cheatsheet_11x17_0417_ jcs.pdf (/node/1189123/40/1/13536301)

- rhel_5_6_7_cheatsheet_8.5x11_0417_ jcs.pdf (/node/1189123/40/2/13536301)


- rhel_5_6_7_cheatsheet_a3_0417_ jcs.pdf (/node/1189123/40/3/13536301)
- rhel_5_6_7_cheatsheet_a4_0417_ jcs.pdf (/node/1189123/40/4/13536301)

Table of Contents
No
Product(s) Red Hat Enterprise Linux (/taxonomy/products/red-hat-enterprise-linux) Category Migrate (/category/migrate)

Tags getting_started (/taxonomy/tags/gettingstarted) rhel (/tags/rhel) rhel_5 (/tags/rhel_5) rhel_6 (/tags/rhel_6)

rhel_7 (/taxonomy/tags/rhel7)

Article Type General (/article-type/general)

https://access.redhat.com/articles/1189123 9/21
4/25/2019 Common administrative commands in Red Hat Enterprise Linux 5, 6, 7, and 8 - Red Hat Customer Portal

C U S T O M E R (https://access.redhat.com/)
P O R TA L

69 Comments

 LOG IN TO COMMENT (HTTPS://ACCESS.REDHAT.COM/LOGIN?


REDIRECTTO=HTTPS://ACCESS.REDHAT.COM/ARTICLES/1189123)

10 October 2014 1:06 AM (https://access.redhat.com/articles/1189123#comment-832273)

Laura Bailey (/user/9773)


(/user/9773)A quick update to let you all know that a printable poster of these commands is now available under
RED HAT
Attachments.
PRO

617 Points

21 October 2014 7:19 PM (https://access.redhat.com/articles/1189123#comment-838593)


DW David Winters (/user/584533)
(/user/584533)
Ms. Bailey,
NEWBIE
Does the copyright on the poster allow the .pdf to be distributed? When I transition to 7 I'm going to hang
5 Points
copies in my computer labs, but knowing the students they're going to ask for copies of the file.

David Winters

23 October 2014 2:54 AM (https://access.redhat.com/articles/1189123#comment-839713)

Laura Bailey (/user/9773)


(/user/9773)Hi David, unfortunately the copyright does not allow that, but let me see what I can wrangle for you.
RED HAT

PRO

617 Points

24 September 2015 8:46 AM (https://access.redhat.com/articles/1189123#comment-968503)


TC tconstans (/user/4133793)
(/user/4133793)
Hello,
NEWBIE
Any update, what are the license of theses documents (page and pdf)
5 Points

Can i hand out copy of them ?

Can i use them for teaching purpose ?

Thanks for the feedback

25 September 2015 12:24 AM (https://access.redhat.com/articles/1189123#comment-968943)

Laura Bailey (/user/9773)


(/user/9773)Hi Thomas, at present the license does not allow copying or use for teaching purposes, as this is available
RED HAT
only to subscribers. I've passed on the request, though, so please stay tuned.
PRO

https://access.redhat.com/articles/1189123 10/21
4/25/2019 Common administrative commands in Red Hat Enterprise Linux 5, 6, 7, and 8 - Red Hat Customer Portal
617 Points
C U S T O M E R (https://access.redhat.com/)
P O R TA L

27 September 2015 11:11 PM (https://access.redhat.com/articles/1189123#comment-969553)

Laura Bailey (/user/9773)


(/user/9773)Hi Thomas, just letting you know that we've made this publicly available -- so, while you still can't technically
RED HAT
copy it for teaching purposes, you can certainly link your students to this page, and they should be able to
PRO
see it now that a subscription is not required. Hope this helps!
617 Points

20 October 2014 9:01 PM (https://access.redhat.com/articles/1189123#comment-837793)


JH Jack Harris (/user/3452393)
(/user/3452393)
Very helpful for me. Liked the poster, too. Thanks!
NEWBIE

12 Points

21 October 2014 3:07 AM (https://access.redhat.com/articles/1189123#comment-837883)


MP mpitchu (/user/8829493)
(/user/8829493)
Why lot many differences in RHEL7 ?
NEWBIE i like to study it soon
5 Points

21 October 2014 3:39 AM (https://access.redhat.com/articles/1189123#comment-837903)


RD Ryan De Loreto (/user/1707643)
(/user/1707643)
Thanks for the document, very helpful for my team.
COMMUNITY
MEMBER

36 Points

21 October 2014 6:41 AM (https://access.redhat.com/articles/1189123#comment-837933)


DM Daniel Moldovan (/user/1532303)
(/user/1532303)
Thanks for putting this together. Very useful. Thanks for sharing.
NEWBIE

5 Points

21 October 2014 7:09 AM (https://access.redhat.com/articles/1189123#comment-837963)


CP Chad Petersen (/user/8609673)
(/user/8609673)
Thanks for this, always great having a quick reference guide!
NEWBIE

5 Points

21 October 2014 9:23 AM (https://access.redhat.com/articles/1189123#comment-838023)


WJ Warren Jeffs (/user/3616293)
(/user/3616293)
Any chance of the printable document being in a 2 page format? Unless you have an A2 printer its a little
NEWBIE small to read.
15 Points

21 October 2014 10:31 AM (https://access.redhat.com/articles/1189123#comment-838073)

Laura Bailey (/user/9773)

https://access.redhat.com/articles/1189123 11/21
4/25/2019 Common administrative commands in Red Hat Enterprise Linux 5, 6, 7, and 8 - Red Hat Customer Portal

(/user/9773)One of our graphic designers is working on some more compact versions as I type; I'll see what we can
C U S T O M E R (https://access.redhat.com/)
RED HAT
wrangle. P O R TA L 
PRO

617 Points

21 October 2014 10:35 AM (https://access.redhat.com/articles/1189123#comment-838083)


WJ Warren Jeffs (/user/3616293)
(/user/3616293)
Many thanks. The exact same format would be perfect, just in 2 pages it then fits perfectly on 2x a3 pages.
NEWBIE

15 Points

28 October 2014 2:38 AM (https://access.redhat.com/articles/1189123#comment-841773)

Laura Bailey (/user/9773)


(/user/9773)Hi Warren, our graphic designer is still working on a split-page version, but I wanted to let you know that the
RED HAT
poster has been updated and should now be a little easier to read on a single A3 page. It should also split a
PRO
little more nicely over two pages if you do need it larger. :) I'll let you know when a multi-page option is
617 Points
available.

4 November 2014 12:35 AM (https://access.redhat.com/articles/1189123#comment-845593)

Laura Bailey (/user/9773)


(/user/9773)Hi Warren, just letting you know that there's a multi-page version available now — it was designed for A3, but
RED HAT
it'll still work just fine at A4. :)
PRO

617 Points

21 October 2014 10:19 AM (https://access.redhat.com/articles/1189123#comment-838063)

Vijay Krishna Koppisetti (/user/3596843)


(/user/3596843)
Lot of Changes in RHEL7 Commands . Need to go through the referance guide and start learn it right now
NEWBIE

15 Points

21 October 2014 11:00 AM (https://access.redhat.com/articles/1189123#comment-838113)


RO Raad Orfali (/user/4562193)
(/user/4562193)
Thanks for the Great reference sheet
NEWBIE

5 Points

21 October 2014 12:26 PM (https://access.redhat.com/articles/1189123#comment-838203)


CE Consolidated Edison (/user/1245053)
(/user/1245053)
Thanks
NEWBIE

12 Points

21 October 2014 12:30 PM (https://access.redhat.com/articles/1189123#comment-838213)


RR Romano Rampazzo (/user/2222103)
(/user/2222103)
thank you very much!
COMMUNITY scared about RHEL7!
MEMBER

https://access.redhat.com/articles/1189123 12/21
4/25/2019 Common administrative commands in Red Hat Enterprise Linux 5, 6, 7, and 8 - Red Hat Customer Portal
30 Points
C U S T O M E R (https://access.redhat.com/)
P O R TA L

21 October 2014 12:56 PM (https://access.redhat.com/articles/1189123#comment-838233)
SR sreeni_konduru (/user/2852713)
(/user/2852713)
helpfull to bootstrap RHEL 7, thanks
NEWBIE

5 Points

21 October 2014 1:55 PM (https://access.redhat.com/articles/1189123#comment-838253)


JH John Hatton (/user/2199143)
(/user/2199143)
Wow, that's a lot of changes. Anybody ever consider that if you need to create a knowledgebase article and a
COMMUNITY reference poster to go from one version of RHEL to another that you may be changing too many things too
MEMBER
drastically? That's when stable and dependable products become unreliable.
22 Points

21 October 2014 2:42 PM (https://access.redhat.com/articles/1189123#comment-838333)

Ryan Sawhill (/user/2025843)


(/user/2025843)
These are not all changes which Red Hat pushed. Keep in mind: when you use any Linux distribution, you're
RED HAT
benefiting from countless man hours of work contributed by countless members of various communities. We
GURU
at Red Hat would not be able to make RHEL on our own; it's made up of hundreds and hundreds of projects
3751
which, over time, evolve and change.
Points

24 October 2014 2:08 PM (https://access.redhat.com/articles/1189123#comment-840673)


JH John Hatton (/user/2199143)
(/user/2199143)
I understand that a lot of these changes came from upstream, but surely Red Hat has a lot of clout in the
COMMUNITY community to nudge the direction of things at least. There are still a few distributions going their own way
MEMBER
when the upstream changes are unpopular with their communities, and Red Hat is in a unique position with
22 Points
more resources than many of these. For one example, look to the very short-lived existence of upstart. I'm
not sure what happened behind the scenes there, but Red Hat's implementation was very non-intrusive and
wholly backwards compatible with SysV init to the extent that you could run a RHEL server and not even
realize that upstart was there. Now it's been tossed to the side as quickly as it appeared.

From what I've seen/heard of 8, I'm questioning if Red Hat has lost the script. It's been my preferred
enterprise distro for years because it did what it does very well with rock solid dependability and a core
focus. Maybe its time to split into a few products and introduce a RHEL Classic with all the flavour your
remember from way back when.

24 October 2014 4:03 PM (https://access.redhat.com/articles/1189123#comment-840743)

Ryan Sawhill (/user/2025843)


(/user/2025843)
I hear you John. While I wasn't in a position to make any decisions regarding RHEL7, I have been using
RED HAT
Fedora on my personal systems for years and years so none of these changes came as a shock to me;
GURU
however, I have many colleagues (sysadmins or not) who have expressed similar feelings about RHEL7.
3751
Points As a sysadmin, support tech, and teacher-trainer, I'm always focused on learning new things -- grow or die,
IMHO -- but I know many people just want to get on with their jobs and their lives. That said, in dealing with
my colleagues, so far, not one of them has held on to their scepticism about a particular RHEL7 component
(e.g., systemd, firewalld, grub2, new-anaconda, targetcli, NetworkManager) once they've actually taken the
time to learn about the how/what/why of it.

https://access.redhat.com/articles/1189123 13/21
4/25/2019 Common administrative commands in Red Hat Enterprise Linux 5, 6, 7, and 8 - Red Hat Customer Portal

Of course the natural response to my statement might be "but we don't want/have the time!" ... To which I
C U S T O M E R (https://access.redhat.com/)
can only say:
P ORHEL6
R TA L isn't going anywhere.

PS regarding upstart in RHEL6: I can see why you'd say that Red Hat's implementation was non-intrusive -- after
all we kept the whole SysV init rc structure completely intact! Keep in mind however that in doing so we didn't
take advantage of any of the job-control or event-based parallelization features upstart had to offer. It was great
that most people didn't have to learn anything new, but most people also didn't notice any improvement over init
from RHEL5.

24 October 2014 3:21 PM (https://access.redhat.com/articles/1189123#comment-840733)


JH John Hatton (/user/2199143)
(/user/2199143)
...and this is a handy chart/poster. I'm just amazed that it's necessary.
COMMUNITY
MEMBER

22 Points

21 October 2014 1:57 PM (https://access.redhat.com/articles/1189123#comment-838273)


LT Larry Timmins (/user/2174583)
(/user/2174583)
Thank you for your efforts --
ACTIVE
CONTRIBUTOR
However, it is a absurd waste of systems administrators time to learn all new commands to do same-old
109 Points same-old tasks. Clearly Red Hat leadership in User Experience is absent for those customers committed to
managing Red Hat environments. For this effort, does it mean RHEL 7 will deliver 400% productivity
improvement? Otherwise, it will delay moves to RHEL 7 or changes in platforms.

On the plus side, this documentation -- both in this format and the PDF poster size was done very weel. It
certainly will allow anyone who uses their own automation scripts and tools to discover the command line
equivalents quickly and update their scripts to avoid the very commands being replaced and their new
replacements.

P.S. The 27" x 36" = 7 sq foot and depending on the FedEx/Kinko's will cost $5.25 to print out ($0.75/sq
foot).

21 October 2014 3:37 PM (https://access.redhat.com/articles/1189123#comment-838413)


TN Tad Naworal (/user/3985733)
(/user/3985733)
Far too many command changes in RHEL 7. Its very annoying. i.e ifconfig doesn't exist.
COMMUNITY For 20 years I have been using ifconfg. why change it.
MEMBER

24 Points Its very very annoying.

21 October 2014 4:24 PM (https://access.redhat.com/articles/1189123#comment-838473)

Ryan Sawhill (/user/2025843)


(/user/2025843)
For the record, ifconfig is still fully-available in RHEL7 (What happened to ifconfig in RHEL 7?
RED HAT
(https://access.redhat.com/articles/1179833)); however, it was deprecated years ago (in the the RHEL5
GURU
days) in favor of ip . Feel free to keep using ifconfig until it no longer works for you (e.g., until you have a
3751
system whose interfaces have multiple non-alias IP addresses, which ifconfig has never been able to see).
Points

21 October 2014 3:51 PM (https://access.redhat.com/articles/1189123#comment-838433)


ES Elie Salamé (/user/246453)

https://access.redhat.com/articles/1189123 14/21
4/25/2019 Common administrative commands in Red Hat Enterprise Linux 5, 6, 7, and 8 - Red Hat Customer Portal

(/user/246453)
Thank you for this very well documented quick cheat sheet, it is really appreciated. It will be handy soon
C U S T O M E R (https://access.redhat.com/)
COMMUNITY when we are
P Oto goL to RHEL 7.
R TA

MEMBER

22 Points I have a request however, would it be possible to have this document also in a printable format, the way it
currently is showing here above, but one that can actually download so that it would be easily referred to
when we do not have access to the web? The printable poster version is really nice as well, but our multi-
function printer can only support up to 11" x 17" and even at that size the print is really small to read!

Thank you again, it is really appreciated.

23 October 2014 2:52 AM (https://access.redhat.com/articles/1189123#comment-839703)

Laura Bailey (/user/9773)


(/user/9773)Hi Elie, our graphic designer is looking into a 2-3 page version that could be printed on more common paper
RED HAT
sizes; I'll update this article when it becomes available.
PRO

617 Points

23 October 2014 12:57 PM (https://access.redhat.com/articles/1189123#comment-840013)


ES Elie Salamé (/user/246453)
(/user/246453)
Thank you very much Laura for looking into this for us, it is really appreciated.
COMMUNITY
MEMBER

22 Points

28 October 2014 2:35 AM (https://access.redhat.com/articles/1189123#comment-841753)

Laura Bailey (/user/9773)


(/user/9773)Hi Elie, just letting you know that Jess Schaefer has updated the poster so that it doesn't require quite as
RED HAT
much space.Let us know what you think!
PRO

617 Points

4 November 2014 3:41 PM (https://access.redhat.com/articles/1189123#comment-846173)


ES Elie Salamé (/user/246453)
(/user/246453)
Thank you Laura and Jess for updating the poster, it looks great, and I was able to successfully print it on
COMMUNITY 8.5" x 11" paper without a problem.
MEMBER

22 Points Thank you again for all your help with this, this document will be very handy going on to RHEL 7.

4 November 2014 12:34 AM (https://access.redhat.com/articles/1189123#comment-845583)

Laura Bailey (/user/9773)


(/user/9773)Hi Elie, just checking back to let you know that the multi-page version of the 'poster' is now available. Let us
RED HAT
know what you think!
PRO

617 Points

4 November 2014 3:41 PM (https://access.redhat.com/articles/1189123#comment-846183)


ES Elie Salamé (/user/246453)
(/user/246453)
Thank you Laura, it looks great, it is really appreciated.
COMMUNITY
MEMBER

https://access.redhat.com/articles/1189123 15/21
4/25/2019 Common administrative commands in Red Hat Enterprise Linux 5, 6, 7, and 8 - Red Hat Customer Portal
22 Points
C U S T O M E R (https://access.redhat.com/)
P O R TA L

4 November 2014 5:35 PM (https://access.redhat.com/articles/1189123#comment-846273)
LT Larry Timmins (/user/2174583)
(/user/2174583)
Hi Laura,
ACTIVE Thanks for providing the updated version. I was able to print the A3 version using 'Fit' option from Adobe
CONTRIBUTOR
Acrobat to normal 8.5 x 11 paper.
109 Points

While there is certainly a need for A4, A3 and other metric standards, why isn't there an equal need for Red
Hat to provide a standard US Letter and/or US Legal format?

The tough thing about Excellence is thinking it through and getting it right.

4 November 2014 11:38 PM (https://access.redhat.com/articles/1189123#comment-846453)

Laura Bailey (/user/9773)


(/user/9773)That's a good point, Larry. We can probably resize the A3 poster so that it's good to print on both A3 and US
RED HAT
Tabloid (11x17), and can scale down nicely for A4 and US Letter/Legal. Let me check with Jess on that and I'll
PRO
get back to you.
617 Points

22 October 2014 6:21 AM (https://access.redhat.com/articles/1189123#comment-838783)

premchand.singh@velocis.in (/user/27993)
(/user/27993)
Very Nice document, helpful in quickly understand & learning.
COMMUNITY
MEMBER
Thank you.
45 Points

22 October 2014 1:48 PM (https://access.redhat.com/articles/1189123#comment-839103)


TA Tech Admin (/user/5925173)
(/user/5925173)
A print this page button would be awesome, so that we can get a nicely formatted view of this.
NEWBIE

16 Points

22 October 2014 2:19 PM (https://access.redhat.com/articles/1189123#comment-839133)


AV Alessandro Vercelli (/user/4627813)
(/user/4627813)
There is an attached printable poster in PDF format which is good enough as a reminder.
COMMUNITY
MEMBER

31 Points

23 October 2014 2:50 AM (https://access.redhat.com/articles/1189123#comment-839693)

Laura Bailey (/user/9773)


(/user/9773)Agreed; I've come across this as a useful addition a few times. I'll talk to the Portal team about it.
RED HAT

PRO

617 Points

4 November 2014 12:33 AM (https://access.redhat.com/articles/1189123#comment-845573)

Laura Bailey (/user/9773)


(/user/9773)

https://access.redhat.com/articles/1189123 16/21
4/25/2019 Common administrative commands in Red Hat Enterprise Linux 5, 6, 7, and 8 - Red Hat Customer Portal
RED HAT
Just letting you know that there's now a multi-page version of the 'poster', so you can download and print a
C U S T O M E R (https://access.redhat.com/)
PRO nicely formatted
P O R TAversion
L at home. This should work nicely on A3 and A4. 
617 Points

23 October 2014 2:04 PM (https://access.redhat.com/articles/1189123#comment-840083)


MD Mike DePaulo (/user/4604913)
(/user/4604913)
Users should not edit /etc/sudoers directly! They should run visudo instead.
ACTIVE https://access.redhat.com/documentation/en-
CONTRIBUTOR
US/Red_Hat_Enterprise_Linux/6/html/Security_Guide/chap-Security_Guide-
119 Points
General_Principles_of_Information_Security.html

24 October 2014 12:03 AM (https://access.redhat.com/articles/1189123#comment-840343)

Laura Bailey (/user/9773)


(/user/9773)Good point, thanks for the catch.
RED HAT

PRO

617 Points

24 October 2014 12:45 PM (https://access.redhat.com/articles/1189123#comment-840623)


AV Alessandro Vercelli (/user/4627813)
(/user/4627813)
The attached PDF poster has not been updated about visudo usage.
COMMUNITY
MEMBER

31 Points

27 October 2014 1:10 AM (https://access.redhat.com/articles/1189123#comment-841113)

Laura Bailey (/user/9773)


(/user/9773)Updates on the PDF will be a few days behind updates to the article itself, but should be on their way shortly.
RED HAT

PRO

617 Points

3 December 2014 1:18 PM (https://access.redhat.com/articles/1189123#comment-857283)


LT Larry Timmins (/user/2174583)
(/user/2174583)
Good morning Laura,
ACTIVE Thanks for taking the time and being responsive to input to make the multiple PDF versions. The initial
CONTRIBUTOR
investment to making each format will have so many of us OCD types from re-formatting the same material
109 Points
to a locally useable size before we can even review it 8^) Seriously, I made a suggestion and thank you and
the Red Hat team for taking such a helpful document and putting into a format everyone can use and focus
on right away (to her or his liking).

3 December 2014 9:04 PM (https://access.redhat.com/articles/1189123#comment-857563)

Laura Bailey (/user/9773)


(/user/9773)Glad to help, Larry. :) Most of the credit here goes to our fabulous designer Jess Schaefer.
RED HAT

PRO

617 Points

28 October 2014 2:36 AM (https://access.redhat.com/articles/1189123#comment-841763)

https://access.redhat.com/articles/1189123 17/21
4/25/2019 Common administrative commands in Red Hat Enterprise Linux 5, 6, 7, and 8 - Red Hat Customer Portal

Laura Bailey (/user/9773)


C U S T O M E R (https://access.redhat.com/)

Mike, Alessandro,
P O R TA Lthe poster has been updated with visudo instead of /etc/sudoers now; thanks again for the

(/user/9773)catch on this.
RED HAT

PRO

617 Points

30 October 2014 1:15 PM (https://access.redhat.com/articles/1189123#comment-843723)


AV Alessandro Vercelli (/user/4627813)
(/user/4627813)
Thanks, Laura!
COMMUNITY
MEMBER

31 Points

31 October 2014 7:47 PM (https://access.redhat.com/articles/1189123#comment-844683)


SE seagate_shr_vlsi (/user/664453)
(/user/664453)
Thanks Laura. This is helpful.
NEWBIE

7 Points

20 January 2015 8:16 AM (https://access.redhat.com/articles/1189123#comment-871263)


NS Niraj Samal (/user/3916853)
(/user/3916853)
Many commands are missed in RHEL6?
COMMUNITY
MEMBER

32 Points

29 January 2015 4:48 AM (https://access.redhat.com/articles/1189123#comment-877073)

Laura Bailey (/user/9773)


(/user/9773)Hi Nilaj,
RED HAT

PRO If there are any commands you want added, just let me know, and I'll see about getting them added.
617 Points
I think you might be talking about the commands that are the same in RHEL 5 and RHEL 6, though — the
current Portal style doesn't include vertical table dividers. I have a bug raised to help with this, but in the
mean time, check out the downloadable PDF files — I think these are much clearer at the moment.

Cheers,
Laura B

22 May 2015 4:37 PM (https://access.redhat.com/articles/1189123#comment-922883)


BC bclc_dbusch (/user/9474553)
(/user/9474553)
Hi Laura,
NEWBIE
I don't know if you are still getting these comments, but I would like to way in. Thanks for the posters by the
7 Points
way. They are very helpful. I've been using Fedora as a desktop since Fedora 12 and liked it from the start.
I've also used RHEL4 and up in production environments over the years. Both OSes have some interesting
features and I know that that there are a lot of software contributors to their development.

https://access.redhat.com/articles/1189123 18/21
4/25/2019 Common administrative commands in Red Hat Enterprise Linux 5, 6, 7, and 8 - Red Hat Customer Portal

When you start to taking things from a desktop OS and implementing them on a server OS, you might be
C U S T O M E R (https://access.redhat.com/)
asking for trouble.
P O R TA L Microsoft found out the hard way (ie., Start Menu) that wasn't the best idea. In my

experience a desktop OS and server OS should not be mixed.
A server has one purpose....To serve.... It is not a desktop.

I know that things need to change, but changing things just because somebody didn't like the way it was in
RHEL5/6 for the sake of change to me doesn't make sense. You mentioned in a previous post that things
need to evolve. I agree, but part of evolution is learning that somethings don't work and aren't as efficient as
some might think. I know that RHEL7 is still an infant yet and still has some maturing to do.

Cheers,

24 May 2015 11:50 PM (https://access.redhat.com/articles/1189123#comment-923193)

Laura Bailey (/user/9773)


(/user/9773)Hi Doug,
RED HAT

PRO Glad you're finding the posters useful. I think the comment on evolution was actually from another Red
617 Points Hatter, but to your point: I agree! For a change to stick, it needs to be useful to the rest of the 'organism' — or
in this case, its users.

Is there anything you're finding particularly difficult (or nonsensical) to adjust to?

Cheers,
Laura B

2 June 2015 1:45 PM (https://access.redhat.com/articles/1189123#comment-926233)


DW Dave Wysochanski (/user/12763)
(/user/12763)
The command 'grub-set-default' does not exist in RHEL7. The proper command should be 'grub2-set-
RED HAT
default'.
GURU

2116
Points

19 November 2015 3:58 AM (https://access.redhat.com/articles/1189123#comment-987523)


FR francis-gnu (/user/5723643)
(/user/5723643)
All the possible resources for sys admin can be found under RH's documentation or in the knowledgebase,
NEWBIE but we could use a directory w/ quick links for the pdf's. But mostly the whole documentation is sooooo
5 Points nifty!

Is it mandatory to evaluate the OS versions for using knowledgebase? Anyone has any idea of a RH archive
with technical documentation?

Tnx all!

8 January 2016 8:43 PM (https://access.redhat.com/articles/1189123#comment-1002671)


KS ken schweiker (/user/1194843)
(/user/1194843)
Until RH gets a coherent administrative tool like YAST then this is absolutely necessary. Thanks. Hopefully
COMMUNITY for not much longer.
MEMBER

32 Points

https://access.redhat.com/articles/1189123 19/21
4/25/2019 Common administrative commands in Red Hat Enterprise Linux 5, 6, 7, and 8 - Red Hat Customer Portal
15 July 2016 1:27 PM (https://access.redhat.com/articles/1189123#comment-1072711)
C U S T O M E R (https://access.redhat.com/)
Jörg Kastning
P O R(/user/13546641)
TA L

(/user/13546641)
Hello,
GURU
In the attachment "rhel_5_6_7_cheatsheet_a4_1114_ jcs.pdf" on the last page is the command "systemctl
1645
Points shutdown" mentioned for RHEL 7. But this command is not available in at least RHEL 7.2.

Maybe this error could be corrected.

Kind regards, Joerg

15 July 2016 6:02 PM (https://access.redhat.com/articles/1189123#comment-1072921)

rhn-support-sgilson1 (/user/8396753)
(/user/8396753)
Jörg thanks for the note, good catch. We'll queue up a correction to show which versions of RHEL support
RED HAT
the "poweroff" command.
NEWBIE

19 Points

26 July 2016 2:39 AM (https://access.redhat.com/articles/1189123#comment-1076181)


FG Francisco Gonzalez (/user/5245603)
(/user/5245603)
This an awesome straight forward cheat sheet...
COMMUNITY
MEMBER

22 Points

11 August 2017 11:38 AM (https://access.redhat.com/articles/1189123#comment-1205021)


PC Puneet Chauhan (/user/19500041)
(/user/19500041)
helpful
NEWBIE

7 Points

12 June 2018 7:56 PM (https://access.redhat.com/articles/1189123#comment-1316251)


JM Jorgen Meulen, van der (/user/10097623)
(/user/10097623)
lshw package is also in rhel-7-server-rpms channel
COMMUNITY
MEMBER

25 Points

21 August 2018 7:39 PM (https://access.redhat.com/articles/1189123#comment-1344381)


TO Thanseerahammed Ootikkal (/user/23780711)
(/user/23780711)
Very informative and interesting
NEWBIE

7 Points

8 April 2019 9:22 AM (https://access.redhat.com/articles/1189123#comment-1493461)

ir. Jan Gerrit Kootstra (/user/753723)  Community Leader

(/user/753723)
lshw is part of the rhel-7-server-rpms repository, you do not need EPEL anymore on RHEL 7.
GURU

7111 Points

https://access.redhat.com/articles/1189123 20/21
4/25/2019 Common administrative commands in Red Hat Enterprise Linux 5, 6, 7, and 8 - Red Hat Customer Portal
8 April 2019 9:26 AM (https://access.redhat.com/articles/1189123#comment-1493481)
C U S T O M E R (https://access.redhat.com/)
ir. Jan Gerrit
P OKootstra
R TA L (/user/753723)  Community Leader

(/user/753723)
Hi Laura,
GURU
Can we expect a printable poster ones RHEL 8 has become GA?
7111 Points

Regards,

Jan Gerrit

8 April 2019 9:52 AM (https://access.redhat.com/articles/1189123#comment-1493501)

Laura Bailey (/user/9773)


(/user/9773)Hi Jan! I'm no longer on that docs team, but I know that they are aware of this and keen to get RHEL8 details
RED HAT
added - not sure if it will happen for GA, though. I'll see if I can get someone from the team to respond with
PRO
more information. :)
617 Points

9 April 2019 12:42 AM (https://access.redhat.com/articles/1189123#comment-1494361)

Laura Bailey (/user/9773)


(/user/9773)Just in case you're not getting updates on this document, the RHEL8 details have been added! Not sure
RED HAT
when you can expect the printed posters but I'm sure they're in progress.
PRO

617 Points

All systems operational (https://status.redhat.com)

Privacy Statement (http://www.redhat.com/en/about/privacy-policy)


Customer Portal Terms of Use (https://access.redhat.com/help/terms/)
All Policies and Guidelines (http://www.redhat.com/en/about/all-policies-
guidelines)
Copyright © 2019 Red Hat, Inc.

https://access.redhat.com/articles/1189123 21/21

You might also like