你只需要将这个脚本放置在/etc/profile.d/目录下,并授权可执行权限,下次登录系统时,就会自动显示系统基本信息了,如下:

具体操作:
cp systeminfo.sh /etc/profile.d/
chmod +x /etc/profile.d/systeminfo.sh再增加一个,显示的信息更多。

你只需要将这个脚本放置在/etc/profile.d/目录下,并授权可执行权限,下次登录系统时,就会自动显示系统基本信息了,如下:

具体操作:
cp systeminfo.sh /etc/profile.d/
chmod +x /etc/profile.d/systeminfo.sh再增加一个,显示的信息更多。

评论 (0)