SlideShare a Scribd company logo
System Administration
Root Login
Root is a specific user in linux. It has a full
administrative privilege over the system and
its resources. In linux, user needs root
privilage for specific task or system
configuration. It is not good practice to root
logon for normal task in linux. It may even
damage your system while the command use.
So root is also known as a super user.
Configuration of hardware with
kudzu
Kudzu is a hardware probing program (written
by Red Hat Linux) which relies on a library of
hardware device information. When the
computer boots, kudzu detects changes in the
running system's hardware configuration, if any,
and activates the newly-detected hardware (or
removal of hardware).
Kudzu in detail
The kudzu program is a hardware auto detection and configuration tool that runs automatically at boot time. If you like,
you can also start kudzu while Red Hat Linux is running. In either case, here is what kudzu does:
It checks the hardware connected to your computer.
It compares the hardware it finds to the database of hardware information stored in the /etc/sysconfig/hwconf file.
It prompts you to change your system configuration, based on new or removed hardware that was detected.
The following is a list of hardware that kudzu can detect (according to the kudzu README file), followed by a description
of what kudzu does to configure the device. Other devices may be detected as well (such as USB devices).
Network devices — Adds an Ethernet interface alias (eth0, eth1, etc.)
Sound card — Runs the sndconfig command to configure and test the sound card.
Mouse — Links the new mouse device to /dev/mouse
Modem — Links the new modem device to /dev/modem.
CD-ROM — Links the CD-ROM device to /dev/cdrom.
Scanner — Links the new scanner device to /dev/scanner.
Keyboard — Runs the kbdconfig command to reconfigure the keyboard. Also, if you are using a serial console, it makes
sure /etc/inittab and /etc/securetty are configured to be used by a serial console.
The following is a list of actions kudzu takes when a device is removed:
Network — Removes the alias for the Ethernet interface (eth0, eth1, etc.).
Mouse — Removes the link to /dev/mouse.
Modem — Removes the link to /dev/modem.
CD-ROM — Removes the link to /dev/cdrom.
Scanner — Removes the link to /dev/scanner.
System Management
System Management
- Use the who command to see all the currently
logged in users.
[root@rhel4 ~]# who
paul pts/1 Feb 14 18:21 (192.168.1.45)
sandra pts/2 Feb 14 18:11 (192.168.1.42)
jack pts/3 Feb 14 12:01 (192.168.1.33)
System Management
- The last command is used to check the user who
logon at the last time.
[root@rhel4a ~]# last | head
The last command can also be used to get a list of last
reboots.
[paul@rekkie ~]$ last reboot
You can use the tail -f command to look at the last lines
of a log file. The -f option will dynamically display lines
that are appended to the log.
paul@ubu1010:~$ tail -f /var/log
Memory Management
- Displaying /proc/meminfo will tell you a lot about the
memory on your Linux computer.
paul@ubu1010:~$ cat /proc/meminfo
MemTotal: 3830176 kB
MemFree: 244060 kB
Buffers: 41020 kB
Cached: 2035292 kB
SwapCached: 9892 kB
Memory Management
- The top tool is often used to look at processes consuming
most of the cpu, but it also displays memory information
Below a screenshot of top on the same ubu1010 from above.
[root@hostmaster]# top
top - 10:44:34 up 16 days, 9:56, 6 users, load average: 0.13, 0.09, 0.12 Tasks:
166 total, 1 running, 165 sleeping, 0 stopped, 0 zombie Cpu(s): 5.1%us,
4.6%sy, 0.6%ni, 88.7%id, 0.8%wa, 0.0%hi, 0.3%si, 0.0%st Mem: 3830176k
total, 3613720k used, 216456k free, 45452k buffers Swap: 6384636k
total, 84988k used, 6299648k free, 2050948k cached
[root@hostmaster]# free
- You can find information about swap usage using vmstat.
paul@ubu1010:~$ vmstat
Monitoring System Performence
Monitoring means obtaining information about the utilization of
memory, CPU power, bandwidth and storage. You should start
monitoring your system as soon as possible, to be able to create
a baseline. Make sure that you get to know your system. The
baseline is important, it allows you to see a steady growth in
CPU utilization or a steady decline in free disk space.
Monitoring System Performence
- Use the following commands to check the process and Harddisk
information:
[root@hostmaster]# ps
- Displays the running process in the system.
[root@hostmaster]# df –h
- Displays the free space in storage devices.
[root@hostmaster]# du –sh
- Displays the used space of hard disk in human readable form.
[root@hostmaster]# fdisk -l
- Displays the list of partition
[root@hostmaster]# lspci
- Displays the list of pci devices
[root@hostmaster]# lsusb
- Displays the list of usb devices.
Monitoring System Performence
- The iostat tool can display disk and cpu statistics.
[paul@RHELv4u3 ~]$ iostat –d
[paul@RHELv4u3 ~]$ iostat -c
-d for disk statistics
-c for cpu statistics
- Use iptraf for a colourful display of ip traffic over the network cards.
[root@centos65 ~]# iptraf
[root@centos65 ~]# iptraf -i eth0
- Try the command nmon and ntop

More Related Content

PDF
System administration
PDF
Install and Configure Ubuntu for Hadoop Installation for beginners
PDF
TCP/IP Exercises
TXT
ODP
Triangle OpenStack meetup 09 2013
PPTX
Installing OpenStack Juno using RDO on RHEL
PPT
Running hadoop on ubuntu linux
PPTX
Creating "Secure" PHP applications, Part 2, Server Hardening
System administration
Install and Configure Ubuntu for Hadoop Installation for beginners
TCP/IP Exercises
Triangle OpenStack meetup 09 2013
Installing OpenStack Juno using RDO on RHEL
Running hadoop on ubuntu linux
Creating "Secure" PHP applications, Part 2, Server Hardening

What's hot (20)

PDF
Openstack installation using rdo multi node
TXT
How to install
TXT
Cluster setup multinode_aws
PPTX
Hadoop installation
PDF
Troubleshooting linux booting process
PDF
Dev ops
PDF
INSTALLION OF BI
PDF
Beyond Golden Containers: Complementing Docker with Puppet
PPTX
Advanced Replication
DOCX
Run wordcount job (hadoop)
PDF
Ask by linux kernel add or delete a hdd
DOCX
BOOTABLE OPERATING SYSTEM
PPTX
CKAN 2.2 Installation
DOCX
PPTX
Installation guide for Red Hat Enterprise Linux 6
DOCX
Hadoop 2.2.0 Multi-node cluster Installation on Ubuntu
PPT
Apache
ODP
What we-don't-know
PDF
Openstack installation using rdo
PDF
Openstack kilo installation using rdo
Openstack installation using rdo multi node
How to install
Cluster setup multinode_aws
Hadoop installation
Troubleshooting linux booting process
Dev ops
INSTALLION OF BI
Beyond Golden Containers: Complementing Docker with Puppet
Advanced Replication
Run wordcount job (hadoop)
Ask by linux kernel add or delete a hdd
BOOTABLE OPERATING SYSTEM
CKAN 2.2 Installation
Installation guide for Red Hat Enterprise Linux 6
Hadoop 2.2.0 Multi-node cluster Installation on Ubuntu
Apache
What we-don't-know
Openstack installation using rdo
Openstack kilo installation using rdo
Ad

Similar to System administration (20)

PDF
Building a Gateway Server
PPTX
introduction to computer Linux essential.pptx
PPT
PDF
operating system1.pdf
PDF
Oracle (Sun) Server hardware Open Boot PROM quick reference
PDF
Linux class 9 15 oct 2021-5
PPTX
LINUX M1 P4 notes.pptxgyfdes e4e4e54v 4
PPT
Ch04 system administration
PDF
ONOS SDN Controller - Clustering Tests & Experiments
PPT
Linux
PPT
L-3 BCE OS FINAL.ppt
PPT
Unix fundamentals
PDF
Containers with systemd-nspawn
PPTX
Operating system.pptx
PPTX
Operating system.pptx
PDF
Clear cache memory
PDF
Linux host review
PDF
Operating System.pdf topic of interprocess comunication
PPT
Introduction and fundamentals of Operating System.ppt
Building a Gateway Server
introduction to computer Linux essential.pptx
operating system1.pdf
Oracle (Sun) Server hardware Open Boot PROM quick reference
Linux class 9 15 oct 2021-5
LINUX M1 P4 notes.pptxgyfdes e4e4e54v 4
Ch04 system administration
ONOS SDN Controller - Clustering Tests & Experiments
Linux
L-3 BCE OS FINAL.ppt
Unix fundamentals
Containers with systemd-nspawn
Operating system.pptx
Operating system.pptx
Clear cache memory
Linux host review
Operating System.pdf topic of interprocess comunication
Introduction and fundamentals of Operating System.ppt
Ad

More from Prakash Poudel (20)

PPTX
Web applications vulnerabilities and threats
PPTX
Earliest Due Date Algorithm for Task scheduling for cloud computing
PPTX
Recent and-future-trends spm
DOCX
Locking base concurrency control
PPTX
Cocomo ( cot constrictive model) and capability maturity model
PDF
Microprocessor
DOCX
Maximum power transfer theorem
DOCX
Linux technology
PDF
Java PU solution
PPTX
Telephone call-simulation
PPTX
General Online Health Information System Proposed Application
PPTX
Nepal Doorsanchar Company Limited Internship Experience
DOCX
SQL & PLSQL
DOCX
Software engineering
DOCX
Multimedia Technology in computer
PPTX
File permission in linux
DOC
organization Management
DOC
Organization Management Concept
PPTX
Java Programming concept
PPTX
Web applications vulnerabilities and threats
Earliest Due Date Algorithm for Task scheduling for cloud computing
Recent and-future-trends spm
Locking base concurrency control
Cocomo ( cot constrictive model) and capability maturity model
Microprocessor
Maximum power transfer theorem
Linux technology
Java PU solution
Telephone call-simulation
General Online Health Information System Proposed Application
Nepal Doorsanchar Company Limited Internship Experience
SQL & PLSQL
Software engineering
Multimedia Technology in computer
File permission in linux
organization Management
Organization Management Concept
Java Programming concept

Recently uploaded (20)

PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PPTX
Internet of Things (IOT) - A guide to understanding
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PPTX
Lecture Notes Electrical Wiring System Components
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PPTX
Lesson 3_Tessellation.pptx finite Mathematics
PDF
Digital Logic Computer Design lecture notes
PDF
Structs to JSON How Go Powers REST APIs.pdf
PPTX
Strings in CPP - Strings in C++ are sequences of characters used to store and...
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PPTX
UNIT 4 Total Quality Management .pptx
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PDF
PPT on Performance Review to get promotions
PPTX
web development for engineering and engineering
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PDF
composite construction of structures.pdf
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
Internet of Things (IOT) - A guide to understanding
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
Lecture Notes Electrical Wiring System Components
CYBER-CRIMES AND SECURITY A guide to understanding
Lesson 3_Tessellation.pptx finite Mathematics
Digital Logic Computer Design lecture notes
Structs to JSON How Go Powers REST APIs.pdf
Strings in CPP - Strings in C++ are sequences of characters used to store and...
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
UNIT 4 Total Quality Management .pptx
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PPT on Performance Review to get promotions
web development for engineering and engineering
Embodied AI: Ushering in the Next Era of Intelligent Systems
composite construction of structures.pdf

System administration

  • 2. Root Login Root is a specific user in linux. It has a full administrative privilege over the system and its resources. In linux, user needs root privilage for specific task or system configuration. It is not good practice to root logon for normal task in linux. It may even damage your system while the command use. So root is also known as a super user.
  • 3. Configuration of hardware with kudzu Kudzu is a hardware probing program (written by Red Hat Linux) which relies on a library of hardware device information. When the computer boots, kudzu detects changes in the running system's hardware configuration, if any, and activates the newly-detected hardware (or removal of hardware).
  • 4. Kudzu in detail The kudzu program is a hardware auto detection and configuration tool that runs automatically at boot time. If you like, you can also start kudzu while Red Hat Linux is running. In either case, here is what kudzu does: It checks the hardware connected to your computer. It compares the hardware it finds to the database of hardware information stored in the /etc/sysconfig/hwconf file. It prompts you to change your system configuration, based on new or removed hardware that was detected. The following is a list of hardware that kudzu can detect (according to the kudzu README file), followed by a description of what kudzu does to configure the device. Other devices may be detected as well (such as USB devices). Network devices — Adds an Ethernet interface alias (eth0, eth1, etc.) Sound card — Runs the sndconfig command to configure and test the sound card. Mouse — Links the new mouse device to /dev/mouse Modem — Links the new modem device to /dev/modem. CD-ROM — Links the CD-ROM device to /dev/cdrom. Scanner — Links the new scanner device to /dev/scanner. Keyboard — Runs the kbdconfig command to reconfigure the keyboard. Also, if you are using a serial console, it makes sure /etc/inittab and /etc/securetty are configured to be used by a serial console. The following is a list of actions kudzu takes when a device is removed: Network — Removes the alias for the Ethernet interface (eth0, eth1, etc.). Mouse — Removes the link to /dev/mouse. Modem — Removes the link to /dev/modem. CD-ROM — Removes the link to /dev/cdrom. Scanner — Removes the link to /dev/scanner.
  • 6. System Management - Use the who command to see all the currently logged in users. [root@rhel4 ~]# who paul pts/1 Feb 14 18:21 (192.168.1.45) sandra pts/2 Feb 14 18:11 (192.168.1.42) jack pts/3 Feb 14 12:01 (192.168.1.33)
  • 7. System Management - The last command is used to check the user who logon at the last time. [root@rhel4a ~]# last | head The last command can also be used to get a list of last reboots. [paul@rekkie ~]$ last reboot You can use the tail -f command to look at the last lines of a log file. The -f option will dynamically display lines that are appended to the log. paul@ubu1010:~$ tail -f /var/log
  • 8. Memory Management - Displaying /proc/meminfo will tell you a lot about the memory on your Linux computer. paul@ubu1010:~$ cat /proc/meminfo MemTotal: 3830176 kB MemFree: 244060 kB Buffers: 41020 kB Cached: 2035292 kB SwapCached: 9892 kB
  • 9. Memory Management - The top tool is often used to look at processes consuming most of the cpu, but it also displays memory information Below a screenshot of top on the same ubu1010 from above. [root@hostmaster]# top top - 10:44:34 up 16 days, 9:56, 6 users, load average: 0.13, 0.09, 0.12 Tasks: 166 total, 1 running, 165 sleeping, 0 stopped, 0 zombie Cpu(s): 5.1%us, 4.6%sy, 0.6%ni, 88.7%id, 0.8%wa, 0.0%hi, 0.3%si, 0.0%st Mem: 3830176k total, 3613720k used, 216456k free, 45452k buffers Swap: 6384636k total, 84988k used, 6299648k free, 2050948k cached [root@hostmaster]# free - You can find information about swap usage using vmstat. paul@ubu1010:~$ vmstat
  • 10. Monitoring System Performence Monitoring means obtaining information about the utilization of memory, CPU power, bandwidth and storage. You should start monitoring your system as soon as possible, to be able to create a baseline. Make sure that you get to know your system. The baseline is important, it allows you to see a steady growth in CPU utilization or a steady decline in free disk space.
  • 11. Monitoring System Performence - Use the following commands to check the process and Harddisk information: [root@hostmaster]# ps - Displays the running process in the system. [root@hostmaster]# df –h - Displays the free space in storage devices. [root@hostmaster]# du –sh - Displays the used space of hard disk in human readable form. [root@hostmaster]# fdisk -l - Displays the list of partition [root@hostmaster]# lspci - Displays the list of pci devices [root@hostmaster]# lsusb - Displays the list of usb devices.
  • 12. Monitoring System Performence - The iostat tool can display disk and cpu statistics. [paul@RHELv4u3 ~]$ iostat –d [paul@RHELv4u3 ~]$ iostat -c -d for disk statistics -c for cpu statistics - Use iptraf for a colourful display of ip traffic over the network cards. [root@centos65 ~]# iptraf [root@centos65 ~]# iptraf -i eth0 - Try the command nmon and ntop