2

When I run terminal in Linux Ubuntu, it runs normally. By that I mean that there is no login required. I am actually not sure if it is supposed to ask for login information, but I am wondering if there is a way that I could make the terminal ask for such whenever I run it.

Thank you all in advance!

2 Answers2

3

If any task that require a root previledges, you will be asked for root (sudo) password.

As userDepth said in comment that When you log in to your session you are already logged in,

Login for terminal, What is it? What happened when we open it?

It is a non-login interactive shell. In this case of an interactive but non-login shell, only ~/.bashrc is executed. In most cases, the default ~/.bashrc script executes the system’s /etc/bashrc.

You can read:


When you login to system and open a terminal,it's a gnome-terminal and when you did Ctrl+Alt+F1, it is Virtual terminal. Virtual terminals can be accessed by pressing Ctrl+Alt+F1 till F6. To come back to the graphical session, press Ctrl+Alt+F7.

muru
  • 197,895
  • 55
  • 485
  • 740
d a i s y
  • 5,511
  • Thank you @daisy! Understanding the differences between login-shell and non-login shell would had been very helpful before I even asked the question, so thank you a lot :D – Brailinson A. Disla May 12 '17 at 23:16
0

On my side, it's revesed. Ctrl + Alt + F1 turns me back to graphical session. Ctrl + Alt + F3 takes me to the terminal session.