环境变量配置文件,本地登录前提示信息/etc/issue

让配置文件立即生效:source 配置文件 或 . 配置文件

/etc/profile  例:定义了HISTSIZE=1000

/etc/profile.d/*.sh

/etc/bashrc

~/.bash_profile  例:定义了PATH=$PATH:$HOME/bin

~/.bashrc  例:定义了当前用户的命令别名

~/.bash_history  注释:历史命令


本地登录前提示信息(非欢迎信息!无权限黑客入侵不欢迎!)/etc/issue

d  当前系统日期

s  操作系统名称

l  登录终端号

m  硬件体系结构

  主机名

o  域名

  内核版本

  当前系统时间

u  当前登录用户的序列号

远程登录前提示信息文件/etc/issue.net,由ssh配置文件/etc/ssh/sshd_config决定,加入Banner /etc/issue.net后生效。

修改/etc/ssh/sshd_config里的#Banner none为Banner /etc/issue.net

本地远程登录后都有效的提示信息文件/etc/motd

原文地址:https://www.cnblogs.com/xiongjiawei/p/7327932.html