Delete Set public Set private Add tags Delete tags
  Add tag   Cancel
  Delete tag   Cancel
  • • DevOps notes •
  •  
  • AI
  • Tags
  • Login

Linux Boot Process / Optimizing Boot Performance/shaare/F8MFtg

  • linux
  • linux

Linux Boot Process → Older Version

  • BIOS → Basic Input / Output System

    • executes MBR
  • MBR → Master Boot Record

    • executes GRUB
  • GRUB → Grand Unified Bootloader

    • executes kernel
  • KERNEL

    • kernel executes /sbin/init
    • mount the root file system
  • INIT

    • init executes run level programs
    • initial RAM disk → contains drivers
  • RUN LEVEL

    • run level programs executed from /etc/rc.d/rc*.d/

Linux Boot Process → CentOS 7, 8, 9

  • BIOS → MBR → GRUB 2

  • /boot/grub2/grub.cfg

  • KERNEL

    • load drivers from initrd.img
    • start the first OS process (systemd)
  • SYSTEMD = system daemon

    • read /etc/systemd/system/default.target

systemd-analyze → Optimizing Boot Performance

  • Understand how long the Linux system takes to boot by:

    • kernel
    • service
    • initrd
  • initrd → initialize system hardware

  • systemd-analyze blame

    • sort by time all service

Message of the Day → Message at Login

  • nano /etc/motd

  • Customize:

    • touch /etc/profile.d/motd.sh
  • In /etc/ssh/sshd_config

    • PrintMotd no
  • systemctl restart sshd.service

2 months ago Permalink
cluster icon
  • Crontab / at : Crontab Basics crontab -e → edit crontab crontab -l → list crontab entries crontab -r → remove crontab entries systemctl status crond → check crond s...
  • Navigating File System / Linux filetypes : ls -l → List pwd → Print working directory dr-xr-xr-x | directories -rw-r--r-- | file Linux File Types Symbol Type - Regular file d Dire...
  • Linux filesystem : Directory Description /boot Grub.cfg /root home of root /dev system device (mouse, keyboard) /etc configuration files /bin → /usr/bin e...
  • Process monitoring : ps Command ps → Current shell process status ps -e → All running processes ps aux → All in BSD style with details ps -ef → Running process with detai...
  • NTP and Mail : NTP / Chronyd → Time Synchronisation nano /etc/chrony.conf → edit conf systemctl start chronyd systemctl enable chronyd chronyc → interactive cmd t...


(97)
Filter untagged links
Fold Fold all Expand Expand all Are you sure you want to delete this link? Are you sure you want to delete this tag? The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community