Reputation
Top tag
Next privilege 200 Rep.
See reduced ads
Badges
7
Newest
 Editor
Impact
~1k people reached

  • 0 posts edited
  • 0 helpful flags
  • 12 votes cast
Oct
15
comment Ubuntu shell does not show the current path
added the output of bash -x in the question.
Oct
15
awarded  Editor
Oct
15
revised Ubuntu shell does not show the current path
add bash -x output
Oct
14
comment Ubuntu shell does not show the current path
I login with root ( I know this is not a good practice... but this server is configured with this ). First line is : root:x:0:0:root:/root:/bin/bash
Oct
14
awarded  Commentator
Oct
14
comment Ubuntu shell does not show the current path
I use SSH to connect to the Ubuntu. For new process, I logout from server & re-login via SSH. When I issue bash, it works like what I want to achieve, and the echo line appears.
Oct
14
comment Ubuntu shell does not show the current path
moving to the 1st line, the result remains the same.
Oct
14
comment Ubuntu shell does not show the current path
permission is : -rw-r--r-- 1 root root and seems sh linked to dash : lrwxrwxrwx 1 root root 4 Mar 30 2012 sh -> dash
Oct
14
comment Ubuntu shell does not show the current path
Right, the echo line doesn't get called in a new session of terminal
Oct
14
comment Ubuntu shell does not show the current path
you won't believe that, the \s-\v\$ does not appear in the search result of grep -Ir "PS1" ~ /etc/ ( I filtered away the binary results )
Oct
14
comment Ubuntu shell does not show the current path
The output is \s-\v\$ , don't know where it is overwritten...
Oct
14
comment Ubuntu shell does not show the current path
the exact line is in the /etc/bash.bashrc uncommented, and it's not overwritten by the lines after that...
Oct
14
asked Ubuntu shell does not show the current path
Oct
6
answered How to run a script in multiple instances ? ( Ubuntu server )
Oct
3
accepted How to run a script in multiple instances ? ( Ubuntu server )
Oct
3
comment How to run a script in multiple instances ? ( Ubuntu server )
Thanks. But how to stop specific instance? Also, the lines below should be: bash scanner.sh $1 2>&1, right ?
Oct
3
asked How to run a script in multiple instances ? ( Ubuntu server )
Oct
4
accepted Symlink with @ symbol?
Oct
4
asked Symlink with @ symbol?
Feb
5
comment Select a range of logs from daily log archives
a side question: when using braces with scp, the command will ask for password for every file being transferred. Is there any flags that can avoid asking password for multiple times?