Xshell 5 guide7/2/2023 Scripts aren’t just invocations of commands, either. You can automate backups and each copied file can have the current date appended to the end of its name. You can invoke a command, like date, and use it’s output as part of a file-naming scheme. They also allow for far more useful functions, such as command substitution. Shell scripts allow us to program commands in chains and have the system execute them as a scripted event, just like batch files. Batch files in Windows, while useful, are a cheap imitation of shell scripts. It was a clever and neat way to get some things done, like run games in your high school computer lab when you couldn’t open system folders or create shortcuts. These were little text files that you could fill with commands to execute and Windows would run them in turn. Now, some of you who used Windows before using Linux may remember batch files. Most Linux distros today use Bash, and this is what you’re really entering commands into. Well, the command-line itself is a program: the shell. The more you use and learn the command-line, the more you see its potential. Like it or not, there are just some things that are done much more easily via this interface than by pointing and clicking. Being a Linux user means you play around with the command-line.
0 Comments
Leave a Reply. |