Example: air traffic controller

Graphical user management Common …

TASKRHEL5 RHEL6 RHEL7 user MANAGEMENTG raphical user managementsystem-config-usersCreate user accountuseraddDelete user accountuserdelChange user account detailsusermodView user account detailsusermod /etc/passwdCreate user groupgroupaddDelete user groupgroupdelChange group detailsgroupmodChange user passwordpasswd usernameChange user permissionsusermod /etc/sudoersChange group permissionsgroupmod /etc/sudoersChange password policychageEncrypted password location/etc/shadowView/end user sessionswTASKRHEL5 RHEL6 RHEL7 SECURITY AND IDENTITYC onfigure system security/etc/selinux/config chcon restorecon semanage setsebool system-config-selinuxReport on system securitysealertLDAP, SSSD, Kerberosauthconfig authconfig-tui authconfig-gtkNetwork usersgetentTASKRHEL5 RHEL6 RHEL7 SYSTEM BASICSView subscription information/etc/sysconfig/rhn/systemid/e tc/sysconfig/rhn/systemid subscription-manager identitysubscription-manager identityConfigure subscriptionrhn_registerrhn_register rhnreg_kssubscription-managersubscriptio n-manager 1rhn_register 2 View system profilesosreport dmidecode hwbrowser

RED HAT ENTERPRISE LINUX 5, 6, AND 7 Common administrative commands

Tags:

  User, Linux, Management, Common, Graphical, Graphical user management common

Information

Domain:

Source:

Link to this page:

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

Other abuse

Advertisement

Transcription of Graphical user management Common …

1 TASKRHEL5 RHEL6 RHEL7 user MANAGEMENTG raphical user managementsystem-config-usersCreate user accountuseraddDelete user accountuserdelChange user account detailsusermodView user account detailsusermod /etc/passwdCreate user groupgroupaddDelete user groupgroupdelChange group detailsgroupmodChange user passwordpasswd usernameChange user permissionsusermod /etc/sudoersChange group permissionsgroupmod /etc/sudoersChange password policychageEncrypted password location/etc/shadowView/end user sessionswTASKRHEL5 RHEL6 RHEL7 SECURITY AND IDENTITYC onfigure system security/etc/selinux/config chcon restorecon semanage setsebool system-config-selinuxReport on system securitysealertLDAP, SSSD, Kerberosauthconfig authconfig-tui authconfig-gtkNetwork usersgetentTASKRHEL5 RHEL6 RHEL7 SYSTEM BASICSView subscription information/etc/sysconfig/rhn/systemid/e tc/sysconfig/rhn/systemid subscription-manager identitysubscription-manager identityConfigure subscriptionrhn_registerrhn_register rhnreg_kssubscription-managersubscriptio n-manager 1rhn_register 2 View system profilesosreport dmidecode hwbrowsersosreport dmidecode lshwView RHEL version information/etc/redhat-release1 subscription-manager is used for Satellite 6, Satellite with SAM and newer, and Red Hat s CDN.

2 2 RHN tools are deprecated on Red Hat Enterprise linux 7. rhn_register should be used for Satellite server and newer only. For details, see: Satellite unable to register RHEL 7 client system due to rhn-setup package not included in Minimal installationTASKRHEL5 RHEL6 RHEL7 BASIC CONFIGURATIONG raphical configuration toolssystem-config-*gnome-control-center Configure networksystem-config-networknmclinmtui nm-connection-editorConfigure system languagesystem-config-languagelocalectlC onfigure time and datesystem-config-datetimedatectldateSyn chronize time and datentpdate / / keyboardsystem-config-keyboardlocalectlT ext-based configuration toolssystem-config-*-tuiConfigure printersystem-config-printerConfigure sambasmbclient /etc/ smbpasswdConfigure SSH/etc/ssh/ssh_config/etc/ssh/sshd_conf ig ~/.

3 Ssh/config ssh-keygenTASKRHEL5 RHEL6 RHEL7 JOBS AND SERVICESC onfigure logging/ / *.conf /var/log/journal all serviceschkconfig --list ls / -at service ls /etc/systemd/system/*.service ls /usr/lib/systemd/system/*.serviceList running servicesservice --status-allsystemctl -t service --state=activeStart/stop serviceservice name start service name stopsystemctl start systemctl stop servicechkconfig name on chkconfig name offsystemctl enable systemctl disable service statusservice name statussystemctl status if service is enabledchkconfig namesystemctl is-enabled nameCreate new service file or modify configurationchkconfig --addsystemctl daemon-reloadView run level/targetrunlevel who -rsystemctl get-default who -rChange run level/target/etc/inittab init run_levelsystemctl isolate set-defaultView logs/var/log/var/logjournalctlConfigure system auditadd audit=1 to kernel cmdline auditctl /etc/ /etc/ authconfig /

4 Pam_tty_audit kernel moduleView audit outputaureport /var/log/faillogSchedule taskscron atConfigure batch tasksbatchFind file by namelocateFind file by characteristicfindCreate archivetar cpio zip gzip bzip2 TASKRHEL5 RHEL6 RHEL7 KERNEL, BOOT, AND HARDWARES ingle user /rescue modeappend 1 or s or init=/bin/bash to kernel cmdlineappend or init=/bin/bash to kernel cmdlineShut down systemshutdownsystemctl shutdownPower off systempoweroffsystemctl poweroffHalt systemhaltsystemctl haltReboot systemrebootsystemctl rebootConfigure default run level/target/etc/inittabsystemctl set-defaultConfigure GRUB bootloader/boot/ grub2-mkconfig grub-set-defaultView hardware configuredhwbrowserlshwConfigure kernel modulemodprobeConfigure hardware deviceudevView kernel parameterssysctl -a cat /proc/cmdlineLoad kernel modulemodprobeRemove kernel modulemodprobe -rView kernel versionrpm -q kernel uname -rTASKRHEL5 RHEL6 RHEL7 SOFTWARE MANAGEMENTI nstall softwareyum install yum

5 Groupinstallyum install yum group installView software infoyum info yum groupinfoyum info yum group infoUpdate softwareyum updateUpgrade softwareyum upgradeConfigure software repository/ *.repoFind file in packagerpm -qf filenameView software versionrpm -q packagenameView installed softwarerpm -qaTASKRHEL5 RHEL6 RHEL7 FILE SYSTEMS, VOLUMES, AND DISKSD efault file systemext3ext4xfsDefragment disk spacecopy data to new file system fsck (look for non-contiguous inodes )copy data to new file system fsck (look for non-contiguous inodes )xfs_fsrCreate/modify disk partitionsfdisk partedfdisk gdisk parted ssm createFormat disk (ext4, xfs) (ext4, xfs) mkswap ssm createMount storagemount /etc/fstabmount /etc/fstab ssm mountCreate physical volumepvcreatepvcreate ssm create (if backend is lvm)Create volume groupvgcreatevgcreatessm create (if backend is lvm)

6 Create logical volumelvcreatelvcreatessm create (if backend is lvm)Enlarge volumes formatted with default file systemvgextend lvextend resize2fsvgextendlvextend xfs_growfs ssm resizeShrink volumes formatted with default file systemresize2fs lvreduce vgreduceXFS cannot currently be shrunk; copy desired data to a smaller file file systemfsckfsckssm checkConfigure NFS share/etc/exports service nfs reload/etc/exports systemctl reload and activate swap/etc/fstab swapon -aAutomatically mount at boot/etc/fstabView free disk spacedfView logical volume infolvdisplay lvs vgdisplay vgs pvdisplay pvsView NFS shareshowmount -e mountAutomatically mount after boot/ *.autofs /etc/auto.*Change file permissionschmod chown chgrp umaskChange access control listsetfaclTASKRHEL5 RHEL6 RHEL7 NETWORKINGC onfigure firewalliptables and ip6tables /etc/sysconfig/ip*tablesiptables and ip6tables /etc/sysconfig/ip*tables system-config-firewallfirewall-cmd firewall-configConfigure DHCP client/ / /etc/ /etc/sysconfig/dhcpdConfigure name resolution/etc/hosts / / nmcli con modConfigure hostname/etc/sysconfig/networkhostnamect l/etc/hostname nmtuiView network interface infoip addr ifconfig brctlip addr nmcli dev show teamdctl brctl bridgeConfigure network interface/etc/sysconfig/network-scripts/ ifcfg-*/etc/sysconfig/network-scripts/if cfg-*nmcli con [add|mod|edit]

7 Nmtui nm-connection-editorView ports/socketsss lsof netstatsslsofView routesip routeConfigure routes/etc/sysconfig/network system-config-networkTASKRHEL5 RHEL6 RHEL7 RESOURCE MANAGEMENTView system usagetop ps sar iostat netstat vmstat mpstat numastattopps sar iostat netstat ss vmstat mpstat numastat tunatopps sar iostat ss vmstatmpstat numastat tunaView disk usagedfdf iostatTrace system callsstraceTrace library callsltraceChange process prioritynice reniceChange process run locationtasksetKill a processkill pkill killallRED HAT ENTERPRISE linux 5, 6, AND 7 Common administrative commandsCopyright 2014 Red Hat, Inc. Red Hat, Red Hat Enterprise linux , the Shadowman logo, and JBoss are trademarks of Red Hat, Inc., registered in the and other countries.

8 linux is the registered trademark of Linus Torvalds in the and other


Related search queries