I've dabbled with Linux in the past and noticed that installation commands seem to be listed individually instead of being compiled into a batch file that runs automatically, stopping for my input when necessary. Am I missing something that could make using Linux easier, or is there a specific reason for this approach?
4 Answers
Most Linux distros have package managers that allow you to install software with a single line of command, so creating a batch file for simple installations wouldn't really add much value. Plus, most users have access to GUI tools that make installations easier. If you're pulling software from outside the official repositories, you're straying from best practices, which can lead to maintenance headaches later on.
Your instinct is correct that automation could help, but typically those commands are presented as examples because you'll usually need to tweak them to fit your specific system setup. Most users benefit from following along step by step to diagnose any problems as they go.
You can definitely create your own batch scripts in Linux, called shell scripts (they usually end in `.sh`). But generally, it often makes more sense to execute commands individually for better troubleshooting or because everyone's setup varies so much. Still, there are guides out there for anyone interested in bash scripting!
Yup, and scripting is a great way to automate complex setups. You can put multiple commands in a single file and run them all at once, which is super helpful for tasks you need to repeat!
There are indeed equivalent scripting options. Windows has `.bat` files, while Linux uses `.sh` scripts. However, automation isn't always a great idea; if something goes wrong, it's easier to troubleshoot one command at a time than to sift through a bunch of automatic processes.

Exactly! Using package manager commands like `sudo apt install` keeps everything organized. If you try to bypass that and just download software, your system can forget that software exists during updates, which leads to all sorts of issues.