They have no "language" and are interpreted by your shell interpreter of terminal commands or if the first line is in the form.
It is for all practical purposes a replacement for good old sh. Keep in mind, that in UNIX world, it is not the extension of the file that determines what the file is see How to execute a shell script. They are not similar in content, but are akin in design. Permissions are also used. This means that if you attempt to run the shell script after downloading it, it will be the same as trying to "run" any text file.
The ". You will need to make the file executable. Let's assume that you have downloaded your file as file. You can also do it in GUI. Most of the time you can right click on the file and select properties, in XUbuntu the permissions options look like this:. If you do not wish to change the permissions. You can also force the shell to run the command. In the terminal you can run:. You may find it weird that you must perform another task manually in order to execute a file. But this is partially because of strong need for security.
Basically when you download and run a bash script, it is the same thing as somebody telling you "run all these commands in sequence on your computer, I promise that the results will be good and safe". Unfortunately apart from the warning above I cannot give a step-by-step description of what you should do to prevent evil things from happening with your computer; so just keep in mind that any time you get and run an executable file from someone you're actually saying, "Sure, you can use my computer to do something".
In any case, the script is nothing but a series of HTTP retrievals. Both wget and curl are available for most operating systems and almost all language have HTTP libraries so it's fairly trivial to rewrite in any other technology. There're also some Windows ports of bash itself git includes one. Last but not least, Windows 10 now has native support for Linux binaries.
So you need to run it from a linux console, just typing its name the same you do with bat files on windows. Typically a. Specifically, the script you mentioned is a bash script, which you can see if you open the file and look in the first line of the file, which is called the shebang or magic line. I know this is an old question and I probably won't help, but many Linux distributions e.
Just burn a. If you choose " Find centralized, trusted content and collaborate around the technologies you use most. Connect and share knowledge within a single location that is structured and easy to search. This is the URL from the Anaconda website. READ the script, then pass it to bash.
Even if it is from a trusted source always read. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Asked 3 years, 7 months ago. Active 3 years, 7 months ago. Viewed 9k times. I don't have root privileges. Unfortunately, some companies are lazy when it comes to Linux. They think "oh, Linux users are experts, so we don't need to make our programs user friendly".
They are wrong, because experts and geeks are the laziest people of them all. If anyone wants user-friendly, we do. The developers of NetBeans obviously do not care about Ubuntu. That will change very soon, or NetBeans will be forgotten. You can the file permission via the command line console in your Ubuntu. Bruno Pereira The Overflow Blog. Podcast Who is building clouds for the independent developer? Exploding turkeys and how not to thaw your frozen bird: Top turkey questions Featured on Meta.
Now live: A fully responsive profile. Reducing the weight of our footer. Recommend Deletion option in Late Answers review queue does nothing - please Please stop posting half answers and dumb advice as comments. Linked 3. Related 0. Hot Network Questions. Question feed. Ask Ubuntu works best with JavaScript enabled.
0コメント