Show description
Command Line & Scripting Universe
Command Line & Scripting Universe
COMMAND LINE UNIVERSE
//: A journey into scripting & automation
Bash
Stands for Bourne-Again SHell. It's the default command-line interpreter on most Linux systems and a common choice for scripting. Think of it as the control panel for your OS.
Connections:
Automates tasks on Linux & Raspberry Pi. Can execute Python scripts and use command-line tools to interact with SQL databases.
Zsh
The Z Shell is a modern, powerful shell with advanced features like better auto-completion, plugin support (via frameworks like Oh My Zsh), and theming. It's the default on macOS.
Connections:
Does everything Bash does but with more user-friendly features. A favorite for developers on macOS and Linux to streamline their workflow.
cURL
Client for URLs. A versatile command-line tool for transferring data to or from a server using any of the supported protocols (HTTP, FTP, etc.). Essential for API testing and web scraping from the terminal.
Connections:
Used within Bash/Zsh scripts to download files or fetch data from web APIs. The data can then be processed by Python or other tools.
Wget
A free utility for non-interactive download of files from the web. It's great for recursively downloading entire websites or large files, and it can resume aborted downloads.
Connections:
Similar to cURL, it's a workhorse inside scripts for data retrieval. Often used on servers to pull down software or backups automatically.
Python
A high-level programming language known for its readability. While not a shell, it's a master of scripting and automation, often working hand-in-hand with shell scripts.
Connections:
Shell scripts can run Python programs for complex logic. Python can execute shell commands. It has powerful libraries for connecting directly to SQL databases and is the go-to language for Raspberry Pi projects.
SQL Clients
Structured Query Language is for managing data in a database.…
Command Line & Scripting Universe
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Command Line & Scripting Universe</title>
<!-- Tailwind CSS for styling -->
<script src="https://cdn.tailwindcss.com"></script>
<!-- Google Font for 8-bit style -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap" rel="stylesheet">
<style>
/* Custom styles to apply the 8-bit font and theme */
body {
font-family: 'Press Start 2P', cursive;
background-color: #000000;
color: #FFFFFF;
background-image:
linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
background-size: 20px 20px;
}
/* Custom class for the tile-like appearance */
.pixel-box {
border: 4px solid;
padding: 1.5rem;
transition: all 0.2s ease-in-out;
}
.pixel-box:hover {
transform: translateY(-5px) scale(1.02);
box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}
/* Neon glow effect for titles */
h1, h2, h3 {
text-shadow:
0 0 5px #fff,
0 0 10px #fff,
0 0 15px #fff;
}
.text-red-glow { text-shadow: 0 0 8px #ef4444; }
.text-blue-glow { text-shadow: 0 0 8px #3b82f6; }
.text-green-glow { text-shadow: 0 0 8px #22c55e; }
.text-yellow-glow { text-shadow: 0 0 8px #eab308; }
.text-orange-glow { text-shadow: 0 0 8px #f97316; }
/* Specific border colors for tiles */
.border-green-400 { border-color: #4ade80; }
.border-blue-400 { border-color: #60a5fa; }
.border-yellow-400 { border-color: #facc15; }
.border-red-400 { border-color: #f87171; }
.border-orange-400 { border-color: #fb923c; }
/* Scrollbar styling for a more thematic feel */
::-webkit-scrollbar {
width: 12px;
}
::-webkit-scrollbar-track {
background: #111;
border: 2px solid #333;
}
::-webkit-scrollbar-thumb {
background: #555;
border: 2px solid #888;
}
::-webkit-scrollbar-thumb:hover {
background: #777;
}
</style>
</head>
<body class="antialiased">
<!-- Main Container -->
<div class="container mx-auto p-4 md:p-8">
<!-- Header -->
<header class="text-center mb-12">
<h1 class="text-3xl md:text-5xl font-bold mb-4 text-white">COMMAND LINE UNIVERSE</h1>
<p class="text-sm text-gray-400">//: A journey into scripting & automation</p>
</header>
<!-- Grid for Tiles -->
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
<!-- Tile: Bash -->
<div class="pixel-box border-green-400 bg-gray-900/80 backdrop-blur-sm">
<h2 class="text-2xl mb-4 text-green-400 text-green-glow">Bash</h2>
<p class="text-sm leading-relaxed mb-4">
Stands for <span class="text-green-300">Bourne-Again SHell</span>. It's the default command-line interpreter on most Linux systems and a common choice for scripting. Think of it as the control panel for your OS.
</p>
<h3 class="text-lg mb-2 text-white">Connections:</h3>
<p class="text-xs text-gray-300 leading-loose">
Automates tasks on <span class="text-green-300">Linux</span> & <span class="text-green-300">Raspberry Pi</span>. Can execute <span class="text-green-300">Python</span> scripts and use command-line tools to interact with <span class="text-green-300">SQL databases</span>.
</p>
</div>
<!-- Tile: Zsh -->
<div class="pixel-box border-green-400 bg-gray-900/80 backdrop-blur-sm">
<h2 class="text-2xl mb-4 text-green-400 text-green-glow">Zsh</h2>
<p class="text-sm leading-relaxed mb-4">
The <span class="text-green-300">Z Shell</span> is a modern, powerful shell with advanced features like better auto-completion, plugin support (via frameworks like Oh My Zsh), and theming. It's the default on macOS.
</p>
<h3 class="text-lg mb-2 text-white">Connections:</h3>
<p class="text-xs text-gray-300 leading-loose">
Does everything Bash does but with more user-friendly features. A favorite for developers on <span class="text-green-300">macOS</span> and <span class="text-green-300">Linux</span> to streamline their workflow.
</p>
</div>
<!-- Tile: cURL -->
<div class="pixel-box border-blue-400 bg-gray-900/80 backdrop-blur-sm">
<h2 class="text-2xl mb-4 text-blue-400 text-blue-glow">cURL</h2>
<p class="text-sm leading-relaxed mb-4">
<span class="text-blue-300">Client for URLs</span>. A versatile command-line tool for transferring data to or from a server using any of the supported protocols (HTTP, FTP, etc.). Essential for API testing and web scraping from the terminal.
</p>
<h3 class="text-lg mb-2 text-white">Connections:</h3>
<p class="text-xs text-gray-300 leading-loose">
Used within <span class="text-blue-300">Bash/Zsh</span> scripts to download files or fetch data from web APIs. The data can then be processed by <span class="text-blue-300">Python</span> or other tools.
</p>
</div>
<!-- Tile: Wget -->
<div class="pixel-box border-blue-400 bg-gray-900/80 backdrop-blur-sm">
<h2 class="text-2xl mb-4 text-blue-400 text-blue-glow">Wget</h2>
<p class="text-sm leading-relaxed mb-4">
A free utility for non-interactive download of files from the web. It's great for recursively downloading entire websites or large files, and it can resume aborted downloads.
</p>
<h3 class="text-lg mb-2 text-white">Connections:</h3>
<p class="text-xs text-gray-300 leading-loose">
Similar to cURL, it's a workhorse inside scripts for data retrieval. Often used on servers to pull down software or backups automatically.
</p>
</div>
<!-- Tile: Python -->
<div class="pixel-box border-yellow-400 bg-gray-900/80 backdrop-blur-sm">
<h2 class="text-2xl mb-4 text-yellow-400 text-yellow-glow">Python</h2>
<p class="text-sm leading-relaxed mb-4">
A high-level programming language known for its readability. While not a shell, it's a master of scripting and automation, often working hand-in-hand with shell scripts.
</p>
<h3 class="text-lg mb-2 text-white">Connections:</h3>
<p class="text-xs text-gray-300 leading-loose">
Shell scripts can run Python programs for complex logic. Python can execute shell commands. It has powerful libraries for connecting directly to <span class="text-yellow-300">SQL databases</span> and is the go-to language for <span class="text-yellow-300">Raspberry Pi</span> projects.
</p>
</div>
<!-- Tile: SQL -->
<div class="pixel-box border-red-400 bg-gray-900/80 backdrop-blur-sm">
<h2 class="text-2xl mb-4 text-red-400 text-red-glow">SQL Clients</h2>
<p class="text-sm leading-relaxed mb-4">
<span class="text-red-300">Structured Query Language</span> is for managing data in a database. Most databases (like PostgreSQL, MySQL) provide command-line clients that can be controlled from a shell.
</p>
<h3 class="text-lg mb-2 text-white">Connections:</h3>
<p class="text-xs text-gray-300 leading-loose">
<span class="text-red-300">Bash</span> scripts can automate database tasks like backups, user creation, or running reports by feeding SQL commands to the database's command-line client.
</p>
</div>
<!-- Tile: The Grand Connection -->
<div class="pixel-box border-orange-400 bg-gray-900/80 backdrop-blur-sm md:col-span-2 lg:col-span-3">
<h2 class="text-2xl mb-4 text-orange-400 text-orange-glow">How It All Connects</h2>
<p class="text-sm leading-relaxed mb-4">
Think of <span class="text-green-300">Linux</span> or a <span class="text-green-300">Raspberry Pi</span> as your game console. <span class="text-green-300">Bash/Zsh</span> is the controller that lets you interact with it.
</p>
<p class="text-sm leading-relaxed">
You can write a <span class="text-green-300">Bash script</span> (your master plan) that uses <span class="text-blue-300">cURL</span> to download data from an online API. The script then passes this data to a <span class="text-yellow-300">Python</span> program for complex analysis. Finally, the script uses a <span class="text-red-300">SQL client</span> to store the results in a database. They are all individual tools that, when combined through scripting, create powerful automations.
</p>
</div>
</div>
<!-- Footer -->
<footer class="text-center mt-12 text-xs text-gray-500">
<p>-- END OF LINE --</p>
</footer>
</div>
</body>
</html>