Suhairi Suhaimin Suhairi Suhaimin - 17 days ago 6
Python Question

How to return to default linux root (Home) folder in terminal?

I'm new to linux and python. I'm just thinking can i go back to default root folder (Home) from terminal, and not by closing and reopen the terminal.

After activating the folder:

root@root:~/anaconda2# source bin/activate ~/anaconda2/
discarding /root/anaconda2/bin from PATH
prepending /root/anaconda2/bin to PATH


I get:

(/root/anaconda2)root@root:~/anaconda2


Then i run the ipython notebook and after finish my work and shutdown, i returned back to:

(/root/anaconda2)root@root:~#


How can I get back my root folder (Home):?

root@root:~#


Thanks in advance.

Answer

You're already back to home directory.

Maybe you meant deactivate the virtualenv? Issue deactivate or source deactivate:

(/root/anaconda2)root@root:~# source deactivate
root@root:~#