Core File Operations in Linux File Naming Conventions Use descriptive names for files and directories Separate words with underscores (e.g., my_website.html) Ensure unique names within the same directory (Linux is case-sensitive) Example: touch 'descriptive_name.txt' touch project_backup.tar.gz Dire...
For LoopsThe for loop iterates over a list of values, executing a block of commands for each item.Syntax:for variable in item1 item2 ... itemN do command_sequence doneExample 1: Iterating through a Numeric RangeTo display numbers from 1 to 10:#!/bin/bash for num in {1..10} do echo "Current number: $...
Error ContextWhen attempting to install Anaconda3 on a minimal Linux server (such as CentOS or RHEL), the installation script may terminate unexpectedly. The process fails during the decompression phase, returning a series of errors indicating that the system cannot locate the required utility to ha...
Create the target directory structure. The server binaries will reside under /usr/local/mysql, and the data files will be placed in /mysql/data. mkdir -p /usr/local/mysql /mysql/data Download the MySQL community server tarball and extract it to the installation directory. Rename the unpacked folder...
Understanding Cache Server Fundamentals A cache server acts as an intermediary storage mechanism (utilizing both RAM and disk storage) for frequently accessed web content such as images, documents, and pages. By serving data locally rather than fetching it from the origin every time, response times...
In Linux, user roles are distinguished by UID (User ID), which determines permissions and allowed tasks. The root user's UID is uniquely set to 0. Root User This is the system administrator with full privileges. The root user can log in, execute any command, and access all files. Its UID is always 0...
Boot Scripts /etc/rc.local → rc.d/rc.local (custom boot initialization) All boot scripts reside in /etc/rc.d/, e.g., /etc/rc.d/init.d/network for network startup. Ensure execution permissions: chmod +x /etc/rc.d/rc.local Date and Timestamp Operations Current date: date Unix timestamp: date +%s Conve...
Inspecting Resources Viewing Image Repositories Retrieve a list of all image objects available locally. docker images --all Monitoring Active Containers List currently running instances to verify status and obtain identifiers. docker ps -a The output displays the Container ID in the first column, wh...
System Requirements and Environment Verification Before deploying Rancher, verify the host system specifications to ensure compatibility. Operating System Check cat /proc/version Linux version 3.10.0-957.21.3.el7.x86_64 (mockbuild@kbuilder.bsys.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-...
Boot Process Overview CentOS 6 Boot Sequence Power-On Self Test (POST) Hardware validation and diagnostics MBR Boot Sector Reads boot loader from disk Master Boot Record GRUB Menu Select kernel version or enter single-user mode for password recovery Kernel Image Loading Loads kernel into memory for...