# How to  log in automatically to /bin/bash as the default shell in Deepin OS

---

## **Problem**

How to log in automatically to /bin/bash as the default shell in Deepin OS

---

## **Solution**

### **Check your OS**

In the terminal, you can check your operating system by running the following command

```apache
lsb_release -a
```

The solution provided by this article was tested using `Deepin Os 20.7`. You can check it out if works in your operating system.

You'll see something like this

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1685497851774/059e9bbb-88f9-4f58-a67f-02317268fb6d.png?auto=compress,format&format=webp&auto=compress,format&format=webp align="left")

---

### **Check your default shell**

In the terminal, you can check your default shell in Deepin OS by running the following command

```apache
echo $SHELL
```

You should be able to see something like this

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1685498729388/ba01b980-dc3d-4238-b4c3-f88465fac41d.png?auto=compress,format&format=webp align="left")

---

### Open bash\_profile

Open the `home` directory. Press `CTRL + H.`

Open the file `.bash_profile` with your favorite text editor. I use `sublime text`.

You should see something like this

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1685503189091/18ca299e-b1db-4de4-87cf-d41a2605c450.png align="center")

---

### Login shell

Add the following line to the file

```apache
exec /bin/bash
```

This line instructs Deepin OS to execute `/bin/bash` as the login shell when you log in.

---

### Restart the terminal

After following these steps, Deepin OS will automatically start a login shell session with `/bin/bash` as the default shell each time you log in to your user account.

---

## **Celebrate**

![Best Michael Scott Reaction GIFs | Gfycat](https://thumbs.gfycat.com/FriendlyRadiantBumblebee-max-1mb.gif align="left")

---

## **Let's connect**

* [**Github**](https://github.com/alexcalaca)
    
* [**LinkedIn**](https://linkedin.com/in/alexandrecalacaofficial)
    
* [**Hashnode**](https://hashnode.com/onboard?next=/@alexandrecalaca)
    
* [**Youtube**](https://www.youtube.com/@alexandrecalacaofficial)
    

---

## **Final thoughts**

I hope this article helped you. Let me know if you have any questions.

Your thoughts, suggestions and corrections are more than welcome.

By the way, feel free to drop your suggestions on new blog articles.

Hope to see you next time.

---
