Difference between revisions of "OpenWRT Command Line Prompt via SSH"

m
no edit summary
(Created page with "...at least it isn't as bad as the default Command Line Prompt from Redhat / CentOS. It has the most important thing, even Microsoft has included with DOS: The current FULL p...")
 
m
 
Line 1: Line 1:
...at least it isn't as bad as the default Command Line Prompt from Redhat / CentOS.  It has the most important thing, even Microsoft has included with DOS: The current FULL path (not just a directory) where one is in the file system.  For example: root@WRT3200ACM:/etc/config
...at least it isn't as bad as the default Command Line Prompt from Redhat / CentOS.  It has the most important thing, even Microsoft has included with DOS: The current FULL path (not just a directory) where one is in the file system.  For example: root@WRT3200ACM:/etc/config


How does one modify it?  Change the PS1 variable (the line that starts off: export PS1='WhatEverStuff ' ), it's in /etc/bashrc.  But for OpenWRT it's in /etc/profile.
How does one modify it?  Change the PS1 variable (the line that starts off: export PS1='WhatEverStuff ' ), it's in /etc/bashrc.  But '''''for OpenWRT it's in /etc/profile.'''''


The default value for PS1 = PS1='\u@\h:\w\$ ' (\u = User Name, \h = Host Name, \w = Full Path, \$ = # if one is logged on as the root user, $ for any other user)
The default value for PS1 = PS1='\u@\h:\w\$ ' (\u = User Name, \h = Host Name, \w = Full Path, \$ = # if one is logged on as the root user, $ for any other user)