Skip to content

Techeons

Imagine | Explore | Innovate

Menu
  • Home
Menu

Setting a default shell in Linux

Posted on October 26, 2025

A Linux shell is a command-line interface that lets you interact with your operating system. It interprets commands and sends them to the OS for execution.

To set the default shell to Bash, you can use the chsh command:

chsh -s /bin/bash

You’ll need to enter your password to confirm the change. After running this command, the change will take effect the next time you log in.

If you want to change the default shell for a different user, you can specify the username:

sudo chsh -s /bin/bash <username>

Some common linux shells:

  • Bash (Bourne-Again SHell): /bin/bash – Widely used and default on many Linux distributions.
  • Zsh (Z shell): /bin/zsh – Known for its customization options and features like auto-suggestions.
  • Fish: /usr/bin/fish – User-friendly shell with features like auto-suggestions and syntax highlighting.
  • Dash: /bin/dash – Lightweight shell, often used as a default shell for system scripts.
  • Tcsh: /bin/tcsh – An enhanced version of the C shell (csh), with advanced features.
  • Ksh (KornShell): /bin/ksh – A Unix shell developed by David Korn.
  • Csh (C shell): /bin/csh – A shell with a syntax similar to the C programming language.

    Share on Social Media
    x facebook pinterest linkedin tumblr reddit emailwhatsapptelegrammastodon

    Leave a Reply Cancel reply

    You must be logged in to post a comment.

    Recent Posts

    • Nginx: How to increase timeout for Nginx
    • Cheat Sheet: Essential Git Commands
    • Setting a default shell in Linux
    • Setting up Composer on Linux
    • Switch easily between Python versions on a Mac using pyenv

    Tags

    ai alerting aws b2 backblaze certificate cheatsheet cloud commands data-science datalake devops dns docker dremio git gitlab infra jenkins kubernetes linux metabase minikube minio monitoring mount mysql nginx nodejs notebooks openssh php python scala secrets spark ssh ssl ubuntu ufw usb web dev tools windows xampp zeppelin

    ©2026 Techeons | Design: Newspaperly WordPress Theme