Linux中修改终端登录欢迎界面
终端登陆前欢迎界面
- 修改/etc/issus
Last login: Thu Mar 25 01:33:36 2021 from 10.0.0.1
[01:49:37 root@C8-3-55 ~]#cat /etc/issue
\S
Kernel \r on an \m
\d ##日期
\t ##时间
\l ##当前连接的终端
\m ##服务器架构
\n ##主机名
\o ##domain name
\r ##相当于uname -r
\s ##操作系统名称;
\v ##操作系统版本;
Don't STOP,Never Give UP!__....__.gd$$$$$$$$$$bp..-"^^^T$$$$$$$$$$$$$p..' "^T$$$$$$$$$$$$b..' `T$$$$$$$$$$$$b./ .d$$b. T$$$$$$$$$$$$$b/ d$$$$$$b $$$$$$$$$$$$$$b: :$$$$$$$$; :$$$$$$$$$$$$$$;; T$$$$$$P :$$$$$$$$$$$$$$$
: "^$$^" $$$$$$$$$$$$$$$$;
; d$$$$$$$$$$$$$$$$$
| .d$$$$$$$$$$$$$$$$$$
; d$$$$$$$$$$$$$$$$$$$$
: :$$$$$$P^""^T$$$$$$$$;; $$$$$$P T$$$$$$$: $$$$$$ $$$$$$;\ :$$$$$b d$$$$$P\ T$$$$$bp..gd$$$$$P`. `T$$$$$$$$$$$$P'`. "^$$$$$$$$P'"-. "^^T$P'Sun "--...____...--" MY凡所有相,皆是虚妄。若见诸相非相,即见如来。
CentOS8Ubuntu
远程终端登录后欢迎信息
CentOS
- 修改/etc/motd
[01:54:20 root@C8-3-55 ~]#cat /etc/motd,.,_> `. ,';,-`' `' '`'._,,-) ---._ | .---''`-),.,' `. \ ; / _,' `,,--' ____ \ ' ,' ___ `-,_> /--. `-. .-'.--\ \__'-, ( `. `.,`~ \~'-. ,' ,' ) _\_< \ \ ,' ') ) `. / / <,.,-' _, \ ,' ( / `. / `-,`-.,-' `.,' ` `.,' `\ ,-',' _ / ,,, ,,, \ `-. `-._/-, ,' ; ' _ \ / _ ` ; `. `(`-\/-, ; (o) (o) ; `'`,,~-' ,-' \ ' ` / \ <_/-. ,' \ / \ ,-''`, ,' `-/ \-' `. `-. </_ / / (_ _) \ \ `,`-._; ,' | .::.`-.-' :.. | `-. _\_/ \ `:: ,^. :.:' / `. \,-''`. ,-' /`-..-'-.-`-..-'\ `-.>_ / ; (\/( ' )\/) ; `-. _<,-' `. \`-^^^-'/ ,' \ _<`-, ,' `. `"""""' ,' `-. <`'') `._.,,_.' \ ,-''._ '`'`' \ <> ,' , `-. <`'`,/ \ ,-``, ,' | / /'; / ; (_)| ` (`') .-'<_ \ / Sunmy@admin\ /\(`;/ `
Ubuntu
- Ubuntu中没有/etc/motd
- 相关欢迎信息存储在/etc/update-mod.d/中的文件中
[14:03 u20@u20-0-52 ~ ]$ ll /etc/update-motd.d/
total 56
drwxr-xr-x 2 root root 4096 Mar 22 09:31 ./
drwxr-xr-x 95 root root 4096 Mar 24 11:42 ../
-rwxr-xr-x 1 root root 1220 Dec 5 2019 00-header*
-rwxr-xr-x 1 root root 1157 Dec 5 2019 10-help-text*
lrwxrwxrwx 1 root root 46 Apr 23 2020 50-landscape-sysinfo -> /usr/share/landscape/landscape-sysinfo.wrapper*
-rwxr-xr-x 1 root root 4677 Dec 5 2019 50-motd-news*
-rwxr-xr-x 1 root root 96 Apr 2 2020 85-fwupd*
-rwxr-xr-x 1 root root 218 Apr 2 2020 90-updates-available*
-rwxr-xr-x 1 root root 299 Dec 19 2019 91-release-upgrade*
-rwxr-xr-x 1 root root 165 Apr 14 2020 92-unattended-upgrades*
-rwxr-xr-x 1 root root 129 Apr 2 2020 95-hwe-eol*
-rwxr-xr-x 1 root root 111 Feb 26 2020 97-overlayroot*
-rwxr-xr-x 1 root root 142 Apr 2 2020 98-fsck-at-reboot*
-rwxr-xr-x 1 root root 144 Apr 2 2020 98-reboot-required*
- 查看其中的00-header
[14:35 u20@u20-0-52 ~ ]$ cat /etc/update-motd.d/00-header
#!/bin/sh
#
# 00-header - create the header of the MOTD
# Copyright (C) 2009-2010 Canonical Ltd.
#
# Authors: Dustin Kirkland <kirkland@canonical.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.[ -r /etc/lsb-release ] && . /etc/lsb-releaseif [ -z "$DISTRIB_DESCRIPTION" ] && [ -x /usr/bin/lsb_release ]; then# Fall back to using the very slow lsb_release utilityDISTRIB_DESCRIPTION=$(lsb_release -s -d)
fiprintf "Welcome to %s (%s %s %s)\n" "$DISTRIB_DESCRIPTION" "$(uname -o)" "$(uname -r)" "$(uname -m)"
- 新建欢迎脚本
[14:52 u20@u20-0-52 ~ ]$ cat /etc/update-motd.d/welcom-test _ `-._ `-. `. \ : / .' .-' _.-' _ `--._ `-._ `-. `. `. : .' .' .-' _.-' _.--' `--._ `-._ `-. `. \ : / .' .-' _.-' _.--' `--.__ `--._ `-._ `-. `. `. : .' .' .-' _.-' _.--' __.--' __ `--.__ `--._ `-._ `-. `. \:/ .' .-' _.-' _.--' __.--' __ `--..__ `--.__ `--._ `-._`-.`_=_'.-'_.-' _.--' __.--' __..--' --..__ `--..__ `--.__ `--._`-q(-_-)p-'_.--' __.--' __..--' __..-- ``--..__ `--..__ `--.__ `-'_) (_`-' __.--' __..--' __..--'' ...___ ``--..__ `--..__`--/__/ \--'__..--' __..--'' ___... ```---...___ ``--..__`_(<_ _/)_'__..--'' ___...---''' ```-----....._____```---...___(__\_\_|_/__)___...---'''_____.....-----''' SunMY@Administrator
- 在00-header文件末尾添加cat /etc/update-motd.d/welcom-test
- 然后执行:run-parts /etc/update-motd.d/
Linux中修改终端登录欢迎界面相关推荐
- Linux中在终端打开图形界面的文件夹的方法
- Linux中修改登录提示文件
Linux中修改登录提示文件 一.登录前提示信息文件:/etc/issue和/etc/issue.net 1.进行清空修改 ①.方法一: ②.方法二 ③.方法三 二.登录后提示信息文件:/etc/mo ...
- linux路由修改密码,Linux中修改Mysql root用户密码的方法
Linux中修改Mysql root用户密码的方法 下面给大家分享下在Linux下如何修改Mysql的用户(root)的密码,分两种情况:第一种当拥有原来的mysql的root密码,第二种情况忘记原来 ...
- 安装启动gui卡住_为Kali Linux中的Sqlmap配置 WEB-GUI 界面
大家好,在本文中,我们将为大家介绍如何为SQLMAP设置Web-GUI界面.这里的Web-GUI,是指借助于浏览器,通过HTTP/HTTPS服务为我们的工具提供的图形用户界面. 在对含有MySQL安全 ...
- 8.linux中的远程登录服务
8.linux中的远程登录服务 1.Linux中软件包的类型 1.DEB UBlinux DEBlinux 2.RPM redhat centOS fadora 3.bz2|gz|xz 1.需要源码安 ...
- linux环境配置以后生效,Linux中修改环境变量及生效方法
Linux中修改环境变量及生效方法 在/etc/profile文件中添加变量[对所有用户生效(永久的)] 用VI在文件/etc/profile文件中增加变量,该变量将会对Linux下所有用户有效,并且 ...
- 在Linux中修改打开文件数量和进程数量限制的3种方法
方法一:使用ulimit命令 ulimit命令可用来增加在shell中打开文件的数量.这个命令是系统内置命令,因此它只影响bash和从它启动的程序. ulimit -n 65535 方法二:使用PAM ...
- Linux下修改SSH登录端口
Linux下修改SSH登录端口 LINUX 的默认SSH 端口是 22.为了防止别人暴力破解,建议修改SSH 访问端口:vim /etc/ssh/sshd_config 找到Port 22 这一行,这 ...
- Linux中修改用户UID和组GID的方法
Linux中修改用户UID和组GID的方法 http://www.sijitao.net/2401.html 发表时间:2016-04-20 21:30 | 分类: Linux | 浏览:2,344 ...
最新文章
- ios Runloop
- POJ3522Slim Span(最大边与最小边差值最小的生成树)
- fuse java_java中的Fuse文件系统 - JVM错误双重免费或损坏
- cad快速看图需要替换的4个vip文件_看不懂施工图怎么办?20年老师傅教你看图技巧,学会受用一生...
- Matlab guide菜单+快捷菜单的使用
- 5个让人赞不绝口的微信小程序,拒绝占用手机内存!
- Runtime.getRuntime().exec()----记录日志案例
- 汉若塔c语言源码,汉诺塔C语言.doc
- JSON对象超详细讲解|对象、循环对象、嵌套对象、修改和删除对象属性
- 全国研究生数学建模竞赛资料【2004-2021】【详细整理】
- 倍福plc的型号_倍福模块选型
- java解析json字符串数据
- SQL Server 2005“错误1706。安装程序找不到需要的文件。请检查……”的处理办法
- 软硬链接、引号符号、逻辑符号、系统通配符
- 《不能承受的生命之轻》
- 【LOJ#10064】黑暗城堡
- eax,ebx,ecx,edx,esi,edi,ebp,esp寄存器的作用
- insert 锁表 mysql_mysql insert锁机制【转】
- 数据库拆分:横向拆分和纵向拆分
- Accumulation point