Delete Set public Set private Add tags Delete tags
  Add tag   Cancel
  Delete tag   Cancel
  • • DevOps notes •
  •  
  • AI
  • Tags
  • Login
1 result tagged logging

Disk usage, logging, shutdown, hostname/shaare/V4gBWg

  • RHCSA
  • disk
  • logging
  • shutdown
  • tail
  • hostname
  • df
  • du
  • ss
  • iproute
  • memory
  • logs
  • RHCSA
  • disk
  • logging
  • shutdown
  • tail
  • hostname
  • df
  • du
  • ss
  • iproute
  • memory
  • logs

Disk and Memory Info

  • df → disk partition info
  • df -h → human-readable format
  • du → size of file/directory
  • free → memory info
  • cat /proc/cpuinfo → CPU info
  • cat /proc/meminfo → memory info

System Logs & Diagnostics

  • dmesg → check kernel ring buffer logs
  • iostat → check disk I/O stats
  • ip route | column -t → check routing table
  • ss → view open ports/sockets

Log Directory Structure

  • Logs in /var/log/

    • boot → startup records
    • chronyd → NTP info
    • cron → cron jobs
    • maillog → mail daemon
    • secure → login/logout tracking
    • messages → general trace logs
    • httpd → web server errors

Log Monitoring

  • tail -f filename → follow log file in real time

System Shutdown & Boot Control

  • shutdown → graceful shutdown
  • init 0-6 → runlevels (0=off, 3=multi-user, 6=reboot)
  • reboot → reboot system
  • halt → force shutdown immediately

Hostname Management

  • cat /etc/hostname → current hostname
  • hostnamectl set-hostname myhostname → change hostname
2 weeks ago Permalink
cluster icon
  • Basic File Commands / File Search Commands : touch one two three → Create 3 files mkdir folder → Make directory mv -R / cp -R → Move or copy folder including subfolders find . -name "geor...
  • SED: Stream Editor for Text Manipulation : Basic Replace Syntax: sed -i 's/KENNY/LENNY/g' filename Substitute all occurrences of "KENNY" with "LENNY" Delete Line Containing String: s...
  • Linux File Ownership, ACLs, and I/O Redirects : File Ownership chown → Change ownership chgrp → Change group Access Control List (ACL) setfacl → Set file ACL getfacl → Get file ACL Add Permissi...
  • User management : Essential Commands: useradd, groupadd, userdel, groupdel, usermod Modify 3 files: /etc/passwd, /etc/group, /etc/shadow Create User with Custom O...
  • Linux File Links and Permissions : Links Soft Link (Symbolic Link) ln -s Link will be removed if the original file is removed or renamed. Hard Link ln Deleting, renaming, or moving t...


(14)
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