Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I'm logged in as root and i do:
su killyz && whoami
the user will switch but the whoami won't print until i Ctrl+D, why is that?
su opens a new shell and won't exit until that shell is closed, via Ctrl-D or some other method.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
When I run the ps -f command on Linux, the output shows 'bash' and '-bash'. I think there must be some diffrence between them. Is there someone can explain it, especially '-bash'? What is the meaning of the leading hyphen?
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I installed bash in my Anaconda prompt, and this is what I'm seeing:
bash-4.3$
and I would like to see something like:
zzzz#zzvdhdc/users/xxx/myactualdirectory
use \w for the current directory:
PS1='\w $'
see man bash for more options to change your promt.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
Using chsh I can change my login shell. However, how do I change my non-login shell? I am using Linux Mint with Cinnamon desktop.
I found the answer on AskUbuntu:
Cinnamon uses gnome-terminal and one must edit their profile to run any other shell than the default (bash).
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I'm writing a little bash script.
As written in the reference:
http://linuxcommand.org/man_pages/ls1.html
ls -A
Should not list "./" and "../" directories.
But... on my system (centOS) is still listing it.
Is there some option "always on" I should be take care of before running this script?
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
When say using sudo, it requires a password. But at the instance, I decide that I do not actually want to take the command (or forget the password and want to try again later). What should I do other than close the terminal externally?
Type Control-c to kill the command.