The login command is normally used to login to a virtual terminal. This can be used to login in a terminal emulator window. Just type sudo login and then you can use this to login in a terminal emulator.
bash 12:31:29 Fri Jul 12 [homer@deep-thought $ sudo login [sudo] password for homer: deep-thought login: homer Password: Last login: Fri Jul 12 12:30:59 EST 2013 on pts/0 Welcome to Linux Mint 15 Olivia (GNU/Linux 3.8.0-25-generic x86_64) Welcome to Linux Mint * Documentation: http://www.linuxmint.com homer@deep-thought ~ % |
Another good command on Linux is the ssh command for connecting to a remote machine for administration of a server for example. Here I am connecting from my Linux Mint 15 desktop to a Debian 7.0 laptop.
bash 12:39:12 Fri Jul 12 [homer@deep-thought $ ssh 192.168.1.4 The authenticity of host '192.168.1.4 (192.168.1.4)' can't be established. ECDSA key fingerprint is 82:d2:ea:50:5a:52:0d:e1:25:78:8d:d9:b8:17:8b:d9. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.1.4' (ECDSA) to the list of known hosts. [email protected]'s password: Linux neo 3.2.0-4-amd64 #1 SMP Debian 3.2.41-2 x86_64 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. You have new mail. Last login: Fri Jul 12 22:38:09 2013 homer@neo:~$ |
Here is another example, this is how to specify the remote username and the port that SSH is using.
bash 12:42:49 Fri Jul 12 [homer@deep-thought $ ssh homer@192.168.1.4 -p 22 homer@192.168.1.4's password: Linux neo 3.2.0-4-amd64 #1 SMP Debian 3.2.41-2 x86_64 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. You have new mail. Last login: Fri Jul 12 22:39:32 2013 from 192.168.1.3 homer@neo:~$ |