Linux knowledge finishing-entry and experience

1. View the currently logged in user and terminal

[root@iZbp17ftg9olf5hzofensaZ ~]# whoami
root
[root@iZbp17ftg9olf5hzofensaZ ~]# tty
/dev/pts/1

[root@iZbp17ftg9olf5hzofensaZ eurm]# id
uid=0(root) gid=0(root) groups=0(root)

2. The virtual console switches Ctrl + Alt + F [1-6], the graphical console is Ctrl + Alt + F7

3. Remote login server, common tools putty, SecurCRT, Xshell, etc.

4. Password change, etc. Here, the terminal changes the password, passwd + username

[root@iZbp17ftg9olf5hzofensaZ eurm]# passwd eurm
Changing password for user eurm.
New password: 

5. Display all commands: Quickly click the Tab button twice, all commands will be displayed, use Ctrl + C to interrupt

6. User switching, use su-username, exit can exit to the last switching user

7. sudo operation needs to be run as root user

8.XServices includes KDE and GNOME, you can go to X.org to download, xeyes, startx start graphics or xeyes switch to the desktop

9. XServer redirects to windows system

Windows does not have Xservice, 1.ssh connects to the server, 2.windows can download Xmanager, 3.export display = windowsip: port;

 

Guess you like

Origin www.cnblogs.com/hongjinping/p/12691422.html