What is Auto Scaling?Auto Scaling in AWS - Complete Guide 1. What is Auto Scaling? Auto Scaling is an AWS service that automatically adjusts compute resources to: Maintain application availability Handle traffic fluctuations Optimize costs 2. Key Benefits ✔ High Ava...Apr 11, 2025·3 min read
Check the installed version of chef-client on the system. (Use the appropriate command and explain the output)Apr 2, 2025·1 min read
Download a package manually using wget (e.g., a sample .rpm or .deb file). (Verify its existence using ls)Apr 2, 2025·1 min read
Install wget on a Linux system using the appropriate package manager (yum or apt). (Provide the command used)To install wget on a Linux system, use the appropriate package manager based on your distribution: 1. Debian/Ubuntu (APT - apt-get) bash Copy sudo apt-get update && sudo apt-get install wget -y sudo apt-get update → Updates the package list. sudo ...Apr 1, 2025·1 min read
Use curl to download a webpage (e.g., Google's homepage) and save it as index.html. (Use cat index.html to verify)Use curl to Download a Webpage and Save it as index.html bashCopyEditcurl -o index.html https://www.google.com curl → Command-line tool to fetch data from a URL. -o index.html → Saves the downloaded content as index.html. Step 2: Verify the Dow...Apr 1, 2025·1 min read
SSH into a remote server (if available) using a key file and check the logged-in username. (Use whoami)SSH into the Remote Server Using a Key File Use the following command to connect to the remote server: bashCopyEditssh -i /path/to/private_key username@remote_server_ip -i /path/to/private_key → Specifies the SSH private key file username@remote_s...Apr 1, 2025·1 min read
List the contents of backup.tar.gz without extracting it. (Use tar -tzf command)List the Contents of backup.tar.gz Without Extracting Use the following command: bashCopyEdittar -tzf backup.tar.gz Explanation of Options: t → List the contents of the archive z → Handle gzip (.gz compressed file) f → Specify the archive file ...Apr 1, 2025·1 min read
Check the compression ratio of backup.tar.gz compared to backup.tar. (Use ls -lh to check file sizes)Step 1: Check File Sizes Before and After Compression Use the ls -lh command to compare the sizes of backup.tar and backup.tar.gz: bashCopyEditls -lh backup.tar backup.tar.gz Step 2: Note the File Sizes Example output: diffCopyEdit-rw-r--r-- 1 user ...Apr 1, 2025·1 min read
Extract backup.tar.gz into a directory restore_dir and list its contents. (Use tar -xvf and ls)Step 1: Create a Directory for Extraction bashCopyEditmkdir restore_dir Step 2: Extract backup.tar.gz into restore_dir bashCopyEdittar -xvf backup.tar.gz -C restore_dir x → Extract files v → Verbose mode (shows files being extracted) f → Specif...Apr 1, 2025·1 min read