How to switch between Linux and Mac shells

First check the current shell

Command to check the current shell

% echo $SHELL

/bin/bash

Then check which shell is currently installed

% cat /etc/shells
/bin/bash
/bin/csh
/bin/ksh
/bin/sh
/bin/tcsh
/bin/zsh

Change immediately

Please enter the following command

chsh

Reboot the shell.

exec $SHELL

Reference article

https://castleobj.com/shell-change/

Recommended Posts

How to switch between Linux and Mac shells
[Linux] How to subdivide files and folders
[Java] How to switch between multiple versions of Java
Beginners! Basic Linux commands and how to use them!
How to use argparse and the difference between optparse
How to resolve variable scope conflicts between Jinja2 and AngularJS
Stumble when trying to share clipboard between VirtualBox and Mac
Differences between Windows and Linux directories
How to install and use Tesseract-OCR
How to install VMware-Tools on Linux
How to install OpenCV on Mac
How to install MBDyn (Linux Ubuntu)
How to use .bash_profile and .bashrc
How to install CUDA and nvidia-driver
How to install and use Graphviz
How to make a deadman's switch
How to check Linux OS version
How to solve slide puzzles and 15 puzzles
How to set a shortcut to switch full-width and half-width with IBus
How to get the printer driver for Oki Mac into Linux
How to set up and use OMC Log Analytics --Linux version -
How to run Jupyter and Spark on Mac with minimal settings
How to display PDF resolution and detailed information on Linux (pdfinfo)
Difference in how to write if statement between ruby ​​and python
How to copy and paste command line content without mouse in bash on Linux or mac
Memo to switch between python2 series and 3 series in anaconda environment of mac (win is also added)
How to build my own Linux server
How to package and distribute Python scripts
How to split and save a DataFrame
How to install aws-session-manager-plugin on Manajro Linux
How to install drobertadams / toggl-cli on Mac
How to install and use pandas_datareader [Python]
I want to know how LINUX works!
[Linux] How to use the echo command
(Mac) How to display Japanese with Matplotlib and Seaborn At MacOS Sierra
How to use the Linux grep command
How to update php on Amazon linux 2
How to prepare Python development environment [Mac]
How to erase Python 2.x on Mac.
How to display emoji on Manjaro Linux
How to install packages on Alpine Linux
How to install Anisble on Amazon Linux 2
How to switch mouse operations on CentOS
python: How to use locals () and globals ()
How to install Windows Subsystem For Linux
How to power off Linux with Ultra96-V2
How to update security on CentOS Linux 8
How to switch python versions in cloud9
[Python3] Switch between Shift_JIS, UTF-8 and ASCII
How to install php7.4 on Linux (Ubuntu)
[Python] How to calculate MAE and RMSE
How to use Python zip and enumerate
Replacing rmtrash on Mac and replacing rm on Linux
How to find large files on Linux
How to use is and == in Python
How to get started with laravel (Linux)
How to use pandas Timestamp and date_range
How to install fabric and basic usage
How to write pydoc and multi-line comments
How to get started with the 2020 Python project (windows wsl and mac standardization)
How to access the contents of a Linux disk on a Mac (but read-only)