zoukankan      html  css  js  c++  java
  • 2、Linux基础练习题

    题目

    答案

    1、答案
    [root@centos7 ~]# date +'%F %T'
    2019-07-23 10:21:35
    
    2、答案
    [root@centos7 ~]# date +%A -d '-2 days'
    星期日
    
    3、答案
    [root@centos7 ~]# date -s '2019-08-07 06:05:10'
    2019年 08月 07日 星期三 06:05:10 CST
    

    4、答案

    通过man手册查看issue帮助,再查看agetty或mingetty帮助
    • motd是登录后的显示信息,issue是登陆前的提示信息
    [root@centos7 ~]# cat /etc/issue
    current terminel:l
    current time:	
    current hostname:s
    S
    Kernel 
     on an m
    
    显示效果:

    5、答案

    查看shutdown帮助
    [root@centos7 ~]# shutdown 18:30 "今天18:30系统自动关机"
    Shutdown scheduled for 三 2019-08-07 18:30:00 CST, use 'shutdown -c' to cancel.
    
  • 相关阅读:
    java学习——内部类、匿名内部类
    Java中接口之间的继承
    Settings
    POM
    Maven指令
    Maven生命周期
    内部类
    Modules
    Simple Maven Project
    Maven概述
  • 原文地址:https://www.cnblogs.com/uscWIFI/p/11230440.html
Copyright © 2011-2022 走看看