Change default working directory in bash

terminal

#1

Hi,
How to change the default directory from workspace to whatever path I want.
Please help me with that. it is so time saving


#2

Edit your .bashrc file and add cd /path/to/your/folder to it. Here’s a more detailed guide:

  1. Enable Show Home in Favorites
  2. Enable Show Hidden Files
  3. Open .bashrc
  4. Add cd /path/to/your/folder to the end of it (being sure to replace /path/to/your/folder with whatever directory you want)