pwd command to display and modify the PS1 environment variables in bash line

A, pwd: displays your current location

grammar

       pwd [options] ...

Description
       Print full file name of the working directory.

       -L, - logical
              from the environment using the PWD, even if it contains a symbolic link

       -P, - physical
              avoid all symbolic links

       --help display this help and exit

       --version
              output version information and exit

Example:

1. Display logical path

 

 2.pwd shows the current path, use -P if the source file is a link file path is displayed

 

 Two, PS1 show in Bash line

Modify the PS1 environment displayed in bash line

 

Although this modified bash command line, but this is temporary, in order to permanently alter the need to go to the configuration file / etc / bashrc change

 

 It can permanently change

Meaning PS1 environment variable representative

 

Guess you like

Origin www.cnblogs.com/jiazilongBlog/p/11589011.html