How to Write and Run a Bash Script on Linux VPS (Beginner Friendly!)

Опубликовано: 06 Май 2026
на канале: Deividas Strole
60
5

In this tutorial, Deividas Strole shows you how to write, save, and execute a basic Bash script on your AlmaLinux VPS. Whether you're new to scripting or need a quick refresher, this step-by-step guide walks you through creating a simple script that displays system info such as uptime, users, and disk usage.

🎯 What You'll Learn:
How to create a .sh file using Nano
Writing a Bash script with useful Linux commands
Making your script executable and running it on your server
Using scripting as a first step toward automation and DevOps

💡 Perfect For:
Linux beginners learning shell scripting
System administrators managing AlmaLinux, CentOS, or RHEL-based servers
DevOps enthusiasts automating server tasks
Anyone looking to improve Linux command-line skills

🔧 Commands Used:
nano system-info.sh
chmod +x system-info.sh
./system-info.sh

📌 Works on AlmaLinux, CentOS, RHEL, and other compatible distributions

🎥 Created by Deividas Strole

🔗 Connect & Learn More with Deividas Strole:
Website: https://deividasstrole.com
LinkedIn:   / deividas-strole  
GitHub: https://github.com/deividas-strole
Dev.to: https://dev.to/deividas-strole
Medium:   / deividas-strole  
X (Twitter): https://x.com/deividasstrole

👍 Like this video if it helped you get started with Bash scripting!
💬 Comment below with your questions or experiences
🔔 Subscribe for more Linux, Bash, and server tutorials

#DeividasStrole #AlmaLinux #BashScript #LinuxVPS #ServerBasics #ShellScript #DevOps #TechTutorial #Programming #LinuxTutorial