centos6.8设置终端登录提示
2016-07-26 16:18
239 查看
过程
我们知道设置终端登录提示在配置文件/etc/issue中配置。
首先使用帮助命令查看相关帮助。
man issue命令得出参照帮助
在使用帮助命令查看man agetty得出很多参数的帮助
下面介绍几个常见的参数
d Insert the current date.
插入当前日期。
s Insert the system name, thename of the operating system.
插入系统名称,操作系统的名称
l Insert the name of the current tty line.
插入当前终端登录名称
m Insert the architectureidentifier of the machine, eg. i486
插入计算机的体系结构的标识符,例如。 i486的
n Insert the nodename of themachine, also known as the hostname.
插入机器的节点名,也称为主机名
o Insert the NIS domainnameof the machine.
机器的NIS域名
O Insert the DNS domainnameof the machine.
计算机的DNS域名。
r Insert the release numberof the OS, eg. 1.1.9.
操作系统内核的版本号
t Insert the current time.
插入当前时间
u Insert the number ofcurrent users logged in.
将记录在当前的用户数
练习:
字符终端登录时,显示当前登录终端号,主机名和当前时间
我们知道设置终端登录提示在配置文件/etc/issue中配置。
首先使用帮助命令查看相关帮助。
man issue命令得出参照帮助
在使用帮助命令查看man agetty得出很多参数的帮助
下面介绍几个常见的参数
d Insert the current date.
插入当前日期。
s Insert the system name, thename of the operating system.
插入系统名称,操作系统的名称
l Insert the name of the current tty line.
插入当前终端登录名称
m Insert the architectureidentifier of the machine, eg. i486
插入计算机的体系结构的标识符,例如。 i486的
n Insert the nodename of themachine, also known as the hostname.
插入机器的节点名,也称为主机名
o Insert the NIS domainnameof the machine.
机器的NIS域名
O Insert the DNS domainnameof the machine.
计算机的DNS域名。
r Insert the release numberof the OS, eg. 1.1.9.
操作系统内核的版本号
t Insert the current time.
插入当前时间
u Insert the number ofcurrent users logged in.
将记录在当前的用户数
练习:
字符终端登录时,显示当前登录终端号,主机名和当前时间
相关文章推荐
- android wifi 无线调试
- 对《大家都在点赞 Windows Terminal,我决定给你泼一盆冷水》一文的商榷
- 对《大家都在点赞 Windows Terminal,我决定给你泼一盆冷水》一文的商榷
- 命令行:增强版
- 由于这台计算机没有终端服务器客户端访问许可证,远程会话被中断
- 简化shell终端命令输入的脚本式快捷键工具
- Shell脚本制作的终端会话回放功能脚本分享
- Shell脚本实现关闭多余的tty终端
- 怎样在Linux上录制你的终端操作及回放
- Linux Shell脚本系列教程(二):终端打印命令详解
- 在Mac OS的终端中运行Swift应用的方法
- macbook配置zsh详情
- Linux终端彩色打印+终端进度条
- Linux中安装使用RXVT命令行终端窗口程序的教程
- linux下的超级终端Minicom
- shell下使用echo打印彩色字体及彩色背景
- Linux系统的文件传输工具RZSZ
- solaris终端控制常用命令
- iOS终端命令
- 终端 ctrl+s 锁屏问题