Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Linux by (9.5k points)

I auto-login and modify .bashrc on my machine to make the script automatic for example mplayer playing music.  

When I log in with  ssh and screen, cmd w shows ttys for the autologin and ssh shows the current session. 

09:58:43 up 18 min,  2 users,  load average: 0.11, 0.16, 0.09

USER     TTY      FROM             LOGIN@   IDLE   JCPU   PCPU WHAT

mi       tty1                      09:40   18:17  30.93s  1.22s mplayer http://144.76.106.52:7000/progressive.mp3

mi       pts/1    nbg021:S.0     09:55    1.00s  0.27s  0.02s w

Can anyone tell me how to switch back and forth to auto login tty1 within the pts/1?

1 Answer

0 votes
by (19.7k points)

To access the running program from any terminal, run within the screen. With tty1 virtual console, you can access only system console.

Interested in Linux? Check out this Linux Certification by Intellipaat.  

Browse Categories

...