Basic Configuration
Query or System Locale
localectl
Display the Current Time and Date
date timedatectl
Sync Date and Time
timedatectl
Configure SSH
/etc/ssh/ssh_config
/etc/ssh/sshd_config
/etc/ssh/sshd_config
Jobs And Services
List all Services
systemctl -at service
ls /etc/systemd/system/*.service
ls /usr/lib/systemd/system/*.service
ls /etc/systemd/system/*.service
ls /usr/lib/systemd/system/*.service
List Services that are Running
systemctl -t service –state=active
Start and Stop services. Replace <service> with the name of the service
systemctl start <service>
systemctl stop <service>
systemctl stop <service>
Enable and Disable Services. Replace <service> with the name of the service
systemctl enable <service>
systemctl disable <service>
systemctl disable <service>
Check Service Status. Replace <service> with the service name
systemctl status <service>
<service> with the service name
systemctl is-enabled <service>
Configure Logs
/etc/rsyslog.conf
/etc/rsyslog.d/*.conf
/etc/rsyslog.d/*.conf
View Logs
/var/log journalctl
Find Files
find
Create Archive
tar
cpio
cpio
Kernel, Boot, Hardware
Single user Rescue Mode
append rd.break or init=/bin/bash to kernel cmdline
Power Off System
poweroff
systemctl poweroff
systemctl poweroff
Halt System
halt
systemctl halt
systemctl halt
Reboot System
reboot
systemctl reboot
systemctl reboot
Configure GRUB
/etc/default/grub
grub2-mkconfig
grub-set-default
grub2-mkconfig
grub-set-default
View Kernel Parameters
sysctl -a
cat /proc/cmdline
cat /proc/cmdline
Load Kernel Module
modprobe
View Kernel Version
rpm -q kernel
uname -r
uname -r
Software Management
Install Software
yum install
yum group install
yum group install
View Software Info
yum info
yum group info
yum group info
Update Software
yum update
Upgrade Software
yum upgrade
Configure Software Repositories
/etc/yum.repos.d/*.repo
Find Package Owning File
rpm -qf filename
yum provides filename-glob
yum provides filename-glob
View Software Version
rpm -q packagename
View Installed Software
rpm -qa
yum list installed
yum list installed
User Management
Create User
useradd
Delete User
userdel
View or Change User Details
usermod
/etc/passwd
vipw
id
/etc/passwd
vipw
id
Create User Group
groupadd
Delete User Group
groupdel
Change Group Details
groupmod
/etc/group
/etc/group
Change User Password
passwd
Change User Permissions
usermod
visudo
visudo
Change Group Permissions
groupmod
visudo
visudo
Change Password Policy
chage
View User Sessions
w
File Systems, Volumes And Disks
Create / Modify Disk Permissions
fdisk
gdisk
parted
ssm create
gdisk
parted
ssm create
Format Disk Partitions
mkswap
Defragment Disk Space
fsck
Mount Storage
mount
/etc/fstab
/etc/fstab
Mount and Activate Swap
/etc/fstab
swapon -a
swapon -a
View Free Disk Space
df
Check or Repair File System
fsck
Change File Permissions
chmod
chown
chgrp
umask
chown
chgrp
umask
Change File Attributes
chattr
Change Access Control List
setfacl
Networking
Change Name Resolution
/etc/hosts
/etc/resolv.conf
/etc/resolv.conf
Configure Hostname
hostnamectl
/etc/hostname
/etc/hostname
View Network Interface Information
ip addr
teamdctl
bridge
teamdctl
bridge
View Routes
ip route
Configure Routes
ip route add
Configure Firewall
firewall-cmd
View Ports / Sockets
ss
lsof
lsof
Security And Identity
Configure Security System
/etc/selinux/config chcon
restorecon
semanage
setsebool
restorecon
semanage
setsebool
LDAP, SSSD
authconfig
authconfig-tui
authconfig-tui
Network Users
getent
Resource Management
Change Process Priority
nice
renice
renice
Change Process Run Location
taskset
Kill a Process
kill
pkill
pkill
View System Usage
top
ps
ss
vmstat
ps
ss
vmstat
View Disk Usage
df
Comments
Post a Comment