Selecting a Linux shell will define the features of the shell scripting language.Linux shell software must be installed before running the shell command program and shell scripts.Installing Linux shell software on Windows requires extra effort.Default shell programs such as sh and bash will already be installed in Linux environments,although others can additionally be installed.This page describes how to install different shell programs,as well as providing background on which shell to use.
These questions may be of little concern to the average shell user, especially those who justwant to get some work done and are not professional programmers.In this case, the choice of shell may depend on what was used in an example that was found on the internet.
The Bourne shell (sh program) is distributed with most Linux systems and provides a common set of featuresintended for automated tasks.The bash shell is also distributed with most Linux systems and is intended for login shells, meaning those that provide a command prompt that users interact with.The bash shell is slower to start up and run than sh and therefore sh ispreferred when performance is a major consideration,and comparison of run times can be compared to see if this is an issue.The bash shell provides useful command line features such as command completion that are usedin interactive environments.A general guideline is: use the power and features of bash unless there are concerns about performanceor portability. See:
Note that in some systems shells have been aliased to a specific version, for example:sh same as bash.To determine whether this is occurring, do a long listing on the program files to see if symbolic links are used orthe file sizes the same. If the files are the same size, the diff program can be used to confirm.For example, the following, run on Cygwin, indicates that sh and bash are equivalent.This is important because different Linux operating systems may have different defaultsand it is important to know what features are available in a shell to ensure portable scripts.
The ultimate choice will depend on the programmer that creates a shell script.Shell script programmers should seek to be adept at sh and learn where bash provides benefits.For the remainder of this documentation, discussion will generally focus on sh,with bash topics clearly indicated.
Most of the environments discussed in the following sections will provide sh and bash.Additional shells can be installed within the environment using the normal installation tools for the environment.
The following tables present information about which Linux environment and shell to choose.When writing shell scripts, it is often necessary to support scripts on multiple Linux environmentsand therefore more than one of the following Linux environments may be used.
In most cases, the default shell programs that are installed will be sufficientbut sometimes it is useful to install other shell programs.Installing a shell program on Linux involves determining the package name for the programand then running the installer for that version of Linux.For example, the Cygwin installer lists available shells and Linux distributionsusually use an installer such as apt-get.
The Cygwin software is a free and open source Linux implementation that runs on Windows.The Cygwin shells can run Windows programs because Cygwin programs are compiled to run on Windows.The Cygwin installation program will install sh and bash by default and additional shells and programs can be installed.Cygwin is a very useful environment to increase productivity. See:
MinGW is the GNU software project to provide a free and open source version of UNIX.The Open Water Foundation does not typically install MinGW unless it is a part of another software toolsuch as Git for Windows.For example, if Git For Windows is installed, MinGW will be available in some form and therefore a command shell will be available.See:
Git for Windows is often installed by software developers and others who are using the Git version control systemto track versions of electronic files and collaborate with others on electronic file edits.Git for Windows will also install MinGW and Git Bash. See:
When I go to gnome-shell-extensions page it says
Although GNOME Shell integration extension is running, native host connector is not detected. Refer documentation for instructions about installing connector.
It looks like GitHub for Windows installs some or all of itself into %LOCALAPPDATA%\Apps\2.0\...\...\* and this reference was broken on Git Shell .lnk shortcut on the desktop. The GitHub.exe file pointed to did not exist; the entire path was missing.
I viewed properties on the .lnk file (select Properties from context menu or ALT+ENTER on keyboard with .lnk selected) and clicked the Change Icon button. A message box appeared noting that the path to the old icon file was missing and what the bad path was.
I found the "current" path by poking about in the above noted directory and finding GitHub.exe again. The icon is one of three available in GitHub.exe; I expect this is what some of the other answers (like the reinstall-shortcuts suggestion) accomplish.
I know how to go to the website and download gnome-shell extensions, but now I need to install some extensions available there on a computer without any internet access at all. It is in a internal corporate network and there's no way I can get outside internet access on it, so I must find another way. I can copy files in a usb disk.
Running gnome-tweak-tool gives me a "Install Shell Extension" button but I don't know how to download an extension in a format acceptable to install using this button. I have tried to point to the folder above but it didn't work either.
This will only tell you basic information about PCI bus location bus type (SATA), device type (HD, usb etc) and partition type (GPT). Try to guess your disk. If you get it wrong thats okay you'll confirm in the next step.
Ok, so I followed the directions, not having a geek->human translator, and after I couldn't find anything with EFI in the UEFI shell, I typed exit, hit enter, and then things booted up as they should have. This should be put into the guide. Just saying.
4% to go...never mind, no errors found. this is real time. I have a spinning thing with ubuntu on the screen. now the spinning thing is gone and ubuntu is on the bottom. just looked again, there is a small spinning thing in the bottom right corner.
Now there is a gradient from pink-deep purple screen with what appears to be a line etching of a panther. holy shit, i think I did it.Moral of the story, open UEFI shell, type mount, hit enter. Type mount [disk blk name] (ex, mine showed up as blk0) Before you go into the uefi shell from the boot menu, move the highlighted line over your usb and write down the name and details. That will make things a lot easier than guessing your drive name. after that, type fs0. you will get a weird line of text. then type ls. Once the other error[?] message shows up, give up and type exit, then hit the enter key. The system will install as normal, for whatever reason.
However you could also enter aptitude update && aptitude install -y a b c d e. So maybe your question is missing the crucial point here. If there are some further requirements it would be nice to explain them.
Read the list of packages and gather them as standard input. Redirect it to the read command, which captures it as the p variable, and then sends it to the $p variable, which allows it to get executed by the install command, and when it reaches the EOF delimiter, redirect the output to done effectively ending the while read loop.
The default shell in all versions of macOS is Bash, so no need to install anything. You access Bash from the Terminal (found in /Applications/Utilities). See the Git installation video tutorial for an example on how to open the Terminal. You may want to keep Terminal in your dock for this workshop.
Some computers include a default Unix Shell program. The steps below describe some methods for identifying and opening a Unix Shell program if you already have one installed. There are also options for identifying and downloading a Unix Shell program, a Linux/UNIX emulator, or a program to access a Unix Shell on a server.
The default Unix Shell for Linux operating systems is usually Bash.On most versions of Linux, it is accessible by running the (Gnome) Terminalor (KDE) Konsoleor xterm,which can be found via the applications menu or the search bar.If your machine is set up to use something other than bash, you can run it by opening a terminal and typing bash.
Computers with Windows operating systems do not automatically have a Unix Shell program installed.In this lesson, we encourage you to use an emulator included in Git for Windows, which gives you access to both Bash shell commands and Git. If you are attending a Software Carpentry workshop session, it is likely you have already received instructions on how to install Git for Windows.
Other solutions are available for running Bash commands on Windows. There is now a Bash shell command-line tool available for Windows 10. Additionally, you can run Bash commands on a remote computer or server that already has a Unix Shell, from your Windows machine. This can usually be done through a Secure Shell (SSH) client. One such client available for free for Windows computers is PuTTY. See the reference below for information on installing and using PuTTY, using the Windows 10 command-line tool, or installing and using a Unix/Linux emulator.
I started researching way to run the shell locally. I already knew that I could run the shell in a Windows Terminal but that would not solve my issue since this basically presents the online Azure cloud Shell inside the terminal windows.
Some background on Azure Cloud Shell. It runs in the background on a virtual machine and provides your Cloud Shell session. That VM is temporary, and it is recycled after your session is inactive for 20 minutes in order to insure we (Microsoft) have enough capacity for everyone.
59fb9ae87f