A shell is software that provides an interface for users of an operating system to run commands, which can be programs such as top or a command line shell. The default shell is usually Bash.
You can set Terminal to run a command when it starts up instead of awaiting input from you:
Select Edit ▸ Profile Preferences ▸ Command.
Check Run a custom command instead of my shell.
In the text box, type the command or the desired shell.
The command will be passed to the terminal exactly as you write it, including any arguments that you specify. Environment variables will be inherited from the terminal as it is a child process of the terminal.
Open a new Terminal tab or window to see how the custom shell or command executes.
You can alsoof the terminal once the command finishes executing.
You may have to enter full path to the command or the shell if the directory where the command or shell resides is not in the PATH variable of your system.
This work is licensed under aand a . It may be redistributed and/or modified under either license.
GPL 3 statement:
This work is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 3 as published by the Free Software Foundation.
This work is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Got a comment? Spotted an error? Found the instructions unclear? Send feedback about this page.