关于日期:
1:如何查看当前日期:
[root@cfhzx ~]# timedatectl
[root@cfhzx ~]# timedatectl set-timezone "America/New_York" #修改时间为美国纽约时间
查看:[root@cfhzx ~]# timedatectl
显示系统当前时间:
[root@cfhzx ~]# date
修改时间为:
[root@cfhzx ~]# date -s 时间 格式为:年月日时分秒
[root@cfhzx ~]# date -s "20220330 11:29:04"
2022年 03月 30日 星期三 11:29:04 CST
查看时区:
[root@cfhzx ~]# date -R
wget下载资源
, [root@cfhzx ~]# wget -v 显示 Wget 的版本信息并退出
后台下载:
wget -b: 后台下载, 它不在前台显示
wget-O file
# 使用wget下载的时候,可以指定我们下载之后的文件名称
# wget www.baidu.com # 下载下来的文件名称,是服务器上这个文件叫什么名字,我们下载就叫什么名字
-O baidu.html
[root@rhcsa www.baidu.com]# wget -O baidu.html