Home > Uncategorized > Display full path of working directory within the command prompt – OEL

Display full path of working directory within the command prompt – OEL

Was traversing through Oracle Enterprise Linux file structure and realized that by default it doesn’t show me what dir I am sitting in unless and until I execute ‘pwd’ command

To display DIR info. at Linux prompt , I just added the following to the systemwide configuration file /etc/bashrc:
 
 Code:
  # customized prompt with full path of working dir

PS1=”[\u@\h \w]\\$ “

 

 

Image

Advertisements
Categories: Uncategorized Tags: , , , ,
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: