Archive

Posts Tagged ‘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: , , , ,