How to modify the logon color of an ssh command line

Source: Internet
Author: User

If you have read the monotonous color of the white text and black background in the command line, is there an impulse to change it? This change is not a remote login using a virtual terminal, that is to say, it is not to modify the font color of putty, secure CRT, xmanager, secure ssh shell, and other software.

Modify/etc/issue and/etc/issue.net

^ [[1; 31 m + ------------- + ^ [0 m

^ [[1; 32 m + ^ [0 m ^ [1; 33mwww. ^ [[0 m ^ [1; 34mlinuxom ^ [0 m ^ [[1; 35m.com ^ [[0 m ^ [1; 36 m + ^ [0 m

^ [[1; 37 m + ------------- + ^ [0 m

If it is displayed after logon, modify/etc/motd

^ [[1; 31 m + ------------- + ^ [0 m

^ [[1; 32 m + ^ [0 m ^ [1; 33mwww. ^ [[0 m ^ [1; 34mlinuxom ^ [0 m ^ [[1; 35m.com ^ [[0 m ^ [1; 36 m + ^ [0 m

^ [[1; 37 m + ------------- + ^ [0 m

Modify the color of the PS1 environment variable in ~ /. Add bashrc, and then source ~ /. Bashrc

\ [\ E [0; 33m \] [\ u @ \ h \ W] \ $ \ [\ e [m \]

Modify the font color of a command line

Setterm-foreground green-background black-store

Enjoy it ~

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.