How Do I Change the Default Directory in Ubuntu Terminal?
Contents How Do I Change the Default Directory in Ubuntu? in Order to Change Default Directory Open. Bashrc File in Your Text Editor by Entering the Command...
Contents
How do I change the default directory in Ubuntu?
In order to change default directory
- Open .bashrc file in your text editor by entering the command: gedit .bashrc.
- Edit this file by adding your command in last, like: cd ~/YourDirectoryName.
- Save the file and restart the terminal.
Must Read
How do I change the default working directory in Linux terminal?
How to change directory in Linux terminal
- To return to the home directory immediately, use cd ~ OR cd.
- To change into the root directory of Linux file system, use cd / .
- To go into the root user directory, run cd /root/ as root user.
- To navigate up one directory level up, use cd ..
- To go back to the previous directory, use cd –
9 февр. 2021 г.