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

Similar documents
Red Hat Linux Administration II Installation, Configuration, Software and Troubleshooting

ENTERPRISE LINUX SYSTEM ADMINISTRATION

GL-250: Red Hat Linux Systems Administration. Course Outline. Course Length: 5 days

Oracle Linux 7: System Administration Ed 1 NEW

Setup software RAID1 array on running CentOS 6.3 using mdadm. (Multiple Device Administrator) 1. Gather information about current system.

Linux System Administration on Red Hat

Red Hat Certifications: Red Hat Certified System Administrator (RHCSA)

Ubuntu Professional Training Course Overview (E-learning, Ubuntu LTS)

RHCSA 7RHCE Red Haf Linux Certification Practice

RedHat (RHEL) System Administration Course Summary

RH033 Red Hat Linux Essentials or equivalent experience with Red Hat Linux..

Red Hat JBoss Core Services Apache HTTP Server 2.4 Apache HTTP Server Installation Guide

A candidate following a programme of learning leading to this unit will be able to:

Khóa học Enterprise Linux System Administration

Implementing Failover Capabilities in Red Hat Network Satellite

Table of Contents. Introduction. Audience. At Course Completion. Prerequisites

Linux for UNIX Administrators

Linux System Administration. System Administration Tasks

Windows Template Creation Guide. How to build your own Windows VM templates for deployment in Cloudturk.

OS Installation: CentOS 5.8

IT6204 Systems & Network Administration. (Optional)

Linux Template Creation Guide. How to build your own Linux VM templates for deployment in Cloudturk.

Deploying a Virtual Machine (Instance) using a Template via CloudStack UI in v4.5.x (procedure valid until Oct 2015)

Linux Troubleshooting. 5 Days

Backing up the Embedded Oracle database of a Red Hat Network Satellite

Red Hat Linux Networking

HARFORD COMMUNITY COLLEGE 401 Thomas Run Road Bel Air, MD Course Outline CIS INTRODUCTION TO UNIX

QuickBooks Enterprise Solutions. Linux Database Server Manager Installation and Configuration Guide

Deploying IBM Lotus Domino on Red Hat Enterprise Linux 5. Version 1.0

Red Hat System Administration 1(RH124) is Designed for IT Professionals who are new to Linux.

Red Hat Network Satellite High Availability Guide By Wayman Smith, Red Hat Consultant

COURCE TITLE DURATION LPI-202 Advanced Linux Professional Institute 40 H.

Oracle Linux. Administrator's Guide for Release 7

Chip Coldwell Senior Software Engineer, Red Hat

Introduction to Linux (Authentication Systems, User Accounts, LDAP and NIS) Süha TUNA Res. Assist.

White Paper. System Administration for the. Intel Xeon Phi Coprocessor

Red Hat Enterprise Linux 7 High Availability Add-On Administration. Configuring and Managing the High Availability Add-On

GLS250 "Enterprise Linux Systems Administration"

Partek Flow Installation Guide

GL254 - RED HAT ENTERPRISE LINUX SYSTEMS ADMINISTRATION III

Oracle Linux. Administrator's Guide for Release 6

Intuit QuickBooks Enterprise Solutions. Linux Database Server Manager Installation and Configuration Guide

The Logical Volume Manager (LVM)

Typing some stupidities in text files, databases or whatever, where does it fit? why does it fit there, and how do you access there?

Advanced Linux System Administration on Red Hat

Creating a Disk Drive For Linux

Linux - CentOS 6 Install Guide

OnCommand Performance Manager 1.1

Managed Backup Service - Agent for Linux Release Notes

Guide SHARE Europe, Warwick 30 Jan 2003 Malcolm Beattie Linux Technical Consultant IBM EMEA Enterprise Server Group

Red Hat Enterprise Linux 6 Essentials. Red Hat Enterprise Linux 6 Essentials

Network Infrastructure Security Recommendations

Preparing for the Installation

Linux system administration Students notes

INF-110. GPFS Installation

Deployment - post Xserve

Red Hat Enterprise Linux (RHEL 6) Courses

SteelEye Protection Suite for Linux v8.2.0 WebSphere MQ / MQSeries Recovery Kit. Administration Guide

Zenoss Service Dynamics Resource Management Installation and Upgrade

Migrating LAMP stack from x86 to Power using the Server Consolidation Tool

Using an Open Source Framework to Catch the Bad Guy. Norman Mark St. Laurent Senior Solutions Architect, Red Hat

Abstract. Microsoft Corporation Published: November 2011

Do it Yourself System Administration

Highly Available NFS Storage with DRBD and Pacemaker

Linux Integration Services 3.5 for Hyper-V Readme

Oracle VM Server Recovery Guide. Version 8.2

Getting Started with RES Automation Manager Agent for Linux

Zenoss Core Installation and Upgrade

Navigating the Rescue Mode for Linux

How To Install Acronis Backup & Recovery 11.5 On A Linux Computer

Cloud.com CloudStack Community Edition 2.1 Beta Installation Guide

SAP Netweaver 7.3 on Amazon Cloud

Unix/Linux Forensics 1

Trusted RUBIX TM. Version 6. Installation and Quick Start Guide Red Hat Enterprise Linux 6 SELinux Platform. Revision 6

HP-UX System and Network Administration for Experienced UNIX System Administrators Course Summary

How to set up multiple web servers (VMs) on XenServer reusing host's static IP

Extended installation documentation

Parallels Virtuozzo Containers 4.7 for Linux

Linux (Debian) Distros Hard Drives & File Systems

Novell Identity Manager Resource Kit

PARALLELS SERVER BARE METAL 5.0 README

NATIONAL POPULATION REGISTER (NPR)

Linux Integration Services 3.4 for Hyper-V Readme

Creating a high-availability, scalable web-server system within the Digiweb cloud.

EXi PREP. Solaris 10. System Administration. llllllllllllllll. Bill Calkins. ULB Darmstadt

Linux Disaster Recovery best practices with rear

Support Notes for SUSE LINUX Enterprise Server 9 Service Pack 3 for the Intel Itanium 2 Processor Family

Small Systems Solutions is the. Premier Red Hat and Professional. VMware Certified Partner and Reseller. in Saudi Arabia, as well a competent

Using Red Hat Enterprise Linux with Georgia Tech's RHN Satellite Server Installing Red Hat Enterprise Linux

Cluster Configuration Manual Cluster configuration on Database Servers

Deploy and test ovirt using nested virtualization environments. Mark Wu

Syncplicity On-Premise Storage Connector

How To Write A Backup On A Linux Computer (For A Non-Freebie)

Parallels Virtuozzo Containers 4.7 for Linux Readme

Copyright 2008 Canonical Ltd. and members of the Ubuntu Documentation Project 3

Shared Storage Setup with System Automation

Advanced SUSE Linux Enterprise Server Administration (Course 3038) Chapter 5 Manage Backup and Recovery

Module 4 - Introduction to XenServer Storage Repositories

Red Hat Subscription Management All Subscription Docs Quick Registration for RHEL

Transcription:

RED HAT ENTERPRISE LINUX,, AND Common administrative commands SYSTEM BASICS View subscription information /etc/sysconfig/rhn/systemid /etc/sysconfig/rhn/systemid subscription-manager identity subscription-manager identity 1 Be aware of potential iues when using subscription-manager on Red Hat Enterprise Linux : htt://acce.redhat.com/ solutions/129003. 2 Subscription-manager is used for Satellite, Satellite. with SAM and newer, and Red Hat s CDN. 3 RHN tools are deprecated on Red Hat Enterprise Linux. rhn_register should be used for Satellite server. and newer only. For details, see: Satellite. unable to register client system due to rhn-setup package not included in Minimal installation (htt://acce.redhat.com/ solutions/333) rhn_register subscription-manager 1 rhn_register subscription rhnreg_ks subscription-manager subscription-manager 2 rhn_register 3 sosreport dmidecode hwbrowser View system profile sosreport dmidecode lso lscpu View version information /etc/redhat-release BASIC CONFIGURATION RESOURCE MANAGEMENT mtat Graphical configuration tools network system language time and date Synchronize time and date system-config-* gnome-control-center system-config-network nmcli system-config-language localectl system-config-date date timedatectl date ntpdate /etc/ntp.conf timedatectl View system usage View disk usage mtat tuna mtat tuna keyboard Text-based configuration tools printer /etc/chrony.conf ntpdate system-config-keyboard localectl system-config-*-tui system-config-printer Trace system calls Trace library calls Change proce priority Change proce run location strace ltrace nice renice taskset SSH /etc/h/h_config /etc/h/hd_config ~/.h/config h-keygen Kill a proce kill pkill killall

SOFTWARE MANAGEMENT NETWORKING Install software yum install yum groupinstall yum install yum group install firewall iptables and iptables /etc/sysconfig/ip*tables iptables and iptables /etc/sysconfig/ip*tables system-config-firewall View software info Update software Upgrade software software repository yum info yum groupinfo yum info yum group info yum update yum upgrade subscription-manager repos /etc/yum.repos.d/*.repo name resolution hostname firewall-cmd firewall-config /etc/hosts /etc/resolv.conf /etc/hosts /etc/resolv.conf nmcli con mod /etc/sysconfig/network hostnamectl /etc/hostname Find file in package View software version View installed software rpm -qf filename yum provides filename-glob rpm -q packagename rpm -qa yum list installed USER MANAGEMENT View network interface info network interface ip addr ifconfig brctl ip addr nmcli dev show teamdctl brctl bridge /etc/sysconfig/network-scripts/ifcfg-* /etc/sysconfig/network-scripts/ifcfg-* nmcli con [add mod edit] Graphical user management Create user account Delete user account View/change user account details Create user group system-config-users useradd userdel usermod /etc/pawd vipw id groupadd View ports/ sockets routes View routes lsof lsof ip route add system-config-network /etc/sysconfig/route-iface ip route add nmcli /etc/sysconfig/route-iface ip route Delete user group Change group details groupdel groupmod /etc/group SECURITY AND IDENTITY Change user paword Change user permiions pawd usermod visudo system security /etc/selinux/config chcon restorecon semanage setsebool system-config-selinux Change group permiions groupmod visudo Report on system security sealert Change paword policy View user seions chage w LDAP, SSSD, Kerberos Network users authconfig authconfig-tui authconfig-gtk getent

JOBS AND SERVICES /etc/syslog.conf /etc/rsyslog.conf logging /etc/rsyslog.conf /etc/rsyslog.d/*.conf /var/log/journal systemd-journald.service chkconfig --list ls /etc/init.d/ List all services systemctl -at service ls /etc/systemd/system/*.service ls /usr/lib/systemd/system/*.service List running services service --status-all systemctl -t service --state=active Start/s service service name start service name s systemctl start name.service systemctl s name.service Enable/disable service chkconfig name on chkconfig name off systemctl enable name.service systemctl disable name.service View service status service name status systemctl status name.service Check if service is enabled chkconfig name --list systemctl is-enabled name Create new service file or modify configuration chkconfig --add systemctl daemon-reload /etc/systemd/system/*.service View run level/target runlevel who -r systemctl get-default who -r Change run level/target /etc/inittab init run_level systemctl isolate name.target systemctl set-default View logs /var/log /var/log journalctl system audit View audit output Schedule/batch tasks Find file by name Find file by characteristic Create archive add audit=1 to 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

FILE SYSTEMS, VOLUMES, AND DISKS ext3 Default file system ext4 xfs copy data to new file system fsck (look for non-contiguous inodes ) Defragment disk space copy data to new file system fsck (look for non-contiguous inodes ) xfs_fsr fdisk parted Create/modify disk partitions fdisk gdisk parted m create mkfs.filesystem_type (ext4, xfs) mkswap Format disk partition mkfs.filesystem_type (ext4, xfs) mkswap m create Mount storage m Create physical volume pvcreate pvcreate m create (if backend is lvm) Create volume group vgcreate vgcreate m create (if backend is lvm) Create logical volume lvcreate lvcreate m create (if backend is lvm) Enlarge volumes formatted with default file system vgextend lvextend resize2fs vgextend lvextend xfs_growfs m resize Shrink volumes formatted with default file system resize2fs lvreduce vgreduce XFS cannot currently be shrunk; copy desired data to a smaller file system. Check/repair file system fsck fsck m check NFS share /etc/exports service nfs reload /etc/exports systemctl reload nfs.service Mount and activate swap static s View free disk space swapon -a

FILE SYSTEMS, VOLUMES, AND DISKS (CONT.) View logical volume info View NFS share on-demand auto-s Change file permiions Change file attributes Change acce control list lvdisplay lvs vgdisplay vgs pvdisplay pvs show -e /etc/auto.master.d/*.autofs /etc/auto.* chmod chown chgrp umask (future file creation) chattr setfacl KERNEL, BOOT, AND HARDWARE Single user/rescue mode append 1 or s or init=/bin/bash to kernel cmdline append rd.break or init=/bin/bash to kernel cmdline Shut down system shutdown shutdown systemctl shutdown Power off system poweroff poweroff systemctl poweroff Halt system halt halt systemctl halt Reboot system reboot reboot systemctl reboot default run level/target /etc/inittab systemctl set-default /boot/grub/grub.conf GRUB bootloader /etc/default/grub grub2-mkconfig grub-set-default View hardware configured hwbrowser lshw (in EPEL) kernel module hardware device View kernel parameters Load kernel module modprobe udev sysctl -a cat /proc/cmdline modprobe Remove kernel module modprobe -r View kernel version rpm -q kernel uname -r 11/14 Copyright 2014 Red Hat, Inc. Red Hat, Red Hat Enterprise Linux, the Shadowman logo, and JBo are trademarks of Red Hat, Inc., registered in the U.S. and other countries. Linux is the registered trademark of Linus Torvalds in the U.S. and other countries.