Shell Interview Questions and Answers
In my bash shell I want my prompt to be of format `$"Present working directory":"hostname"> and load a file containing a list of user defined functions as soon as I login , how will you automate this?
In bash shell we can create ".profile" file which automatically gets invoked as soon as I login and write the following syntax into it.
export PS1=`$ `pwd`:`hostname`>` .File1
Here File1 is the file containing the user defined functions and "." invokes t