For example let say this is how your terminal looks like after going inside too many directories .
medya@medya-Satellite-P745:~/Dropbox/SchoolWorks12/Workspace/hello_world_project$To make it shorter in a nice way enter the following in the command line :
PS1="[\W]\\$ "
Now your prompt will look like this : (only showing the directory you are in)
[hello_world_project]$If you want to see the full path you can enter pwd anytime
[hello_world_project]$ pwd
/home/medya/Dropbox/SchoolWorks12/Workspace/hello_world_project
if you don't like the new look of terminal promot , don't worry these changes will be gone if you close this terminal and open a new one, however if you want to make it permanent (but I personally like it temproary only when I need it)
You can play with the PS1 and add your username to the prompt
for example:
for example:
PS1="[\u@\W]\\$ "will give you your username @ the currentfolder
[medya@hello_world_project]$
If you want to master PS1 , PS2, PS3, PS4 in Linux Prompt you can read this article