Example: biology

Common administrative commands in Red Hat Enterprise …

System basicsTA S KRHELView subscription information/etc/sysconfig/rhn/systemid56 subscription-manager identity678 Configure subscriptionrhnreg_ks6rhn_register 1, 35678subscription-manager 2678 View system profilehwbrowser5sosreport dmidecode5678lstopolscpu678cat/proc/cpui nfolshw8 View RHEL version information/etc/redhat-release56781 Be aware of potential issues when using subscription-manager on red hat Enterprise linux 5: Subscription-manager is used for Satellite 6, Satellite with SAM and newer, and red hat s CDN. 3 RHN tools are deprecated on red hat Enterprise linux 7.

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 subscription management services are offered by RHSM? , Transition of Red Hat Network

Tags:

  Linux, Enterprise, Red hat, Red hat enterprise linux, Red hat enterprise

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Other abuse

Transcription of Common administrative commands in Red Hat Enterprise …

1 System basicsTA S KRHELView subscription information/etc/sysconfig/rhn/systemid56 subscription-manager identity678 Configure subscriptionrhnreg_ks6rhn_register 1, 35678subscription-manager 2678 View system profilehwbrowser5sosreport dmidecode5678lstopolscpu678cat/proc/cpui nfolshw8 View RHEL version information/etc/redhat-release56781 Be aware of potential issues when using subscription-manager on red hat Enterprise linux 5: Subscription-manager is used for Satellite 6, Satellite with SAM and newer, and red hat s CDN. 3 RHN tools are deprecated on red hat Enterprise linux 7.

2 Rhn_register should be used for Satellite server and newer only. For details, see: What subscription management services are offered by RHSM?, Transition of red hat Network Classic Hosted to red hat Subscription Management, and Satellite unable to register RHEL 7 client system due to rhn-setup package not included in Minimal administrative commands in red hat Enterprise linux 5, 6, 7, and 8 Security and identityTA S KRHELC onfigure system security/etc/selinux/config chcon restorecon semanage setsebool system-config-selinux5678 Report on system securitysealert5678 LDAP, SSSD.

3 Kerberosauthconfig authconfig-tui authconfig-gtk567authselect8 Network usersgetent5678 Basic configurationTA S KRHELG raphical configuration toolssystem-config-*56gnome-control-cent er78Te x t- b a s e d configuration toolssystem-config-*-tui56 Configure printersystem-config-printer567gnome-con trol-center8 Configure networksystem-config-network56nmclinmtui nm-connection-editor78gnome-control-cent er8 Configure system languagesystem-config-language56localect l78gnome-control-center8 Configure time and datesystem-config-date56timedatectl78dat e5678gnome-control-center8 Synchronize time and date/ keyboardsystem-config-keyboard56localect l78gnome-control-center8 Configure SSH/etc/ssh/ssh_config/etc/ssh/sshd_conf ig ~/.

4 Ssh/configssh-keygen5678 Jobs and servicesTA S KRHELList all serviceschkconfig --list ls / -at service ls /etc/systemd/system/*.service ls /usr/lib/systemd/system/*.service7system ctl list-units -at service find /etc/systemd/ /usr/lib/systemd/ /run/systemd/ -name *.service 8 List running servicesservice --status-all56systemctl -t service --state=active78 Start/stop serviceservice name start service name stop56systemctl start systemctl stop servicechkconfig name on chkconfig name off56systemctl enable systemctl disable service statusservice name status56systemctl status if service is enabledchkconfig name --list56systemctl is-enabled name78 Create new service file or modify configurationchkconfig --add56systemctl daemon-reload/etc/systemd/system/*.

5 Service78 View run level/targetrunlevel 56systemctl get-default 78who -r5678 Change run level/target/etc/inittab init run_level56systemctl isolate set-default78 Configure logging/ *.conf /var/log/journal logsjournalctl78/var/log 5678 Configure system auditpam_tty_audit kernel module567tlog8add audit=1 to kernel cmdline auditctl /etc/ /etc/ authconfig / 5678 View audit outputaureport /var/log/faillog567 Jobs and services (cont.)TA S KRHELS chedule/batch taskscron atbatch5678systemd-run --on-calendar8 Find file by namelocate5678 Find file by characteristicfind5678 Create archivetar cpio zip xz5678 User managementTA S KRHELG raphical user managementsystem-config-users567gnome-co ntrol-center8 Create user accountuseradd567gnome-control-center8 Delete user accountuserdel567gnome-control-center8 View/change user account detailsusermod /etc/passwd vipw id567gnome-control-center8 Create user groupgroupadd567gnome-control-center8 Delete user

6 Groupgroupdel567gnome-control-center8 Change group detailsgroupmod /etc/group567gnome-control-center8 Change user passwordpasswd567gnome-control-center8 Change user permissionsusermod visudo567gnome-control-center8 Change password policychage567gnome-control-center8 View user sessionsw567gnome-control-center8 Software managementTA S KRHELI nstall softwareyum groupinstall56yum group install78yum install5678 View software infoyum groupinfo56yum group info78yum info5678 Update softwareyum update5678 Upgrade softwareyum upgrade5678 Configure software repositorysubscription-manager repos/ *.

7 Repo5678 Find package owning filerpm -qf filename yum provides filename-glob5678 View software versionrpm -q packagename56yum list installed packagename rpm -q packagename78 View installed softwarerpm -qa yum list installed5678 Install a moduleyum module install module_name8 View info on a moduleyum module info module_name8 View a module s streamsyum module info module_name8 Change module streamsyum module remove module_name:stream yum module reset module:stream yum module install module:new_stream8 List available modulesyum module list8 Kernel, boot.

8 And hardwareTA S KRHELS ingle user/rescue modeappend 1 or s or init=/bin/bash to kernel cmdline56append 1 or s or or init=/bin/bash to kernel cmdline78 Shut down systemshutdown5678 Power off systemsystemctl poweroff78poweroff5678 Halt systemsystemctl halt78halt5678 Reboot systemsystemctl reboot78reboot5678 Configure default run level/target/etc/inittab56systemctl set-default78 Configure GRUB bootloader/boot/ grub2-mkconfig grub-set-default78 View hardware configuredhwbrowser5lshw (in EPEL)67lshw8 Configure kernel modulemodprobe5678 Configure hardware deviceudev5678 View kernel parameterssysctl -a cat /proc/cmdline5678 Load kernel modulemodprobe5678 Remove kernel modulemodprobe -r5678 View kernel versionrpm -q kernel uname -r5678 File systems, volumes, and disksTA S KRHELD efault file systemext35ext46xfs78 Create/modify disk partitionsssm create7gdisk78ssm_create8fdisk parted5678 Format disk partitionssm (ext4, xfs)

9 Mkswap5678 Defragment disk spacexfs_fsr678copy data to new file system fsck (look for non-contiguous inodes ) 5678 Mount storagessm mount78mount /etc/fstab5678 Mount and activate swap/etc/fstab swapon -a5678 Configure static mounts/etc/fstab5678 View free disk spacedf5678 View logical volume infolvdisplay lvs vgdisplay vgs pvdisplay pvs5678 Create physical volumessm create (if backend is lvm)8pvcreate5678 Create volume groupssm create (if backend is lvm)8vgcreate5678 Create logical volumessm create (if backend is lvm)8lvcreate5678 Enlarge volumes formatted with default file systemresize2fs56xfs_growfs ssm resize78vgextend lvextend5678 Shrink volumes formatted with default file systemresize2fs lvreduce vgreduce56 XFS cannot currently be shrunk; copy desired data to a smaller file file systemssm check8fsck5678 File systems, volumes, and disks (cont.)

10 TA S KRHELView NFS shareshowmount -e mount5678 Configure NFS shareservice nfs reload56systemctl reload on-demand auto-mounts/ *.autofs /etc/auto.*8 Change file permissionschmod chown chgrp umask (future file creation)8 Change file attributeschattr8 Change access control listsetfacl8 Resource managementTA S KRHELT race system callsstrace5678 Trace library callsltrace5678 Change process prioritynice renice5678 Change process run locationtaskset5678 Kill a processkill pkill killall5678 View system usagenetstat 56ss tuna678pcp atop8top ps sar iostat vmstat mpstat numastat5678 View disk usageiostat 678 pcp-dstatpmiostat8df5678 NetworkingTA S KRHELC onfigure name resolutionnmcli con mod78/etc/hosts /


Related search queries