当前位置:网站首页>RHCSA第二天
RHCSA第二天
2022-08-02 03:16:00 【m0_54803732】
如有错误,敬请谅解!
此文章仅为本人学习笔记,仅供参考,如有冒犯,请联系作者删除!!!
1.手动调整当前主机时间(时区和时间更改)
2.查看系统时间按照年/月/日 时:分:秒格式显示并将结果写入time文件。
3.查看主机/etc/下是否存在group文件,是什么类型文件。
4.查看/etc/sysconfig目录文件的属性
5.在root用户的家目下创建file文件,在/oub创建该文件的软连接文件newfile在/test创建硬链接文件filenk
6.在文件中编辑一下内容: Good good study day day up...
问题1.手动调整当前主机时间(时区和时间更改)
[[email protected] ~]# timedatectl set-timezone Asia/Shanghai
[[email protected] ~]# timedatectl set-time 2001-11-29
[[email protected] ~]# date
Thu Nov 29 00:00:04 CST 2001
问题2.查看系统时间按照年/月/日 时:分:秒格式显示并将结果写入time文件。
[[email protected] ~]# date "+%y-%m-%d %h:%M:%S" >file
[[email protected] ~]# cat file
22-08-01 Aug:29:58
问题3.查看主机/etc/下是否存在group文件,是什么类型文件。
[[email protected] Desktop]# ll /etc/group
-rw-r--r--. 1 root root 988 Jul 28 22:32 /etc/group
如图可知文件类型以-开头,所以为普通文件
问题4.查看/etc/sysconfig目录文件的属性
[[email protected] Desktop]# ll -d /etc/sysconfig
drwxr-xr-x. 5 root root 4096 Jul 28 22:32 /etc/sysconfig
问题5.在root用户的家目下创建file文件,在/oub创建该文件的软连接文件newfile在/test创建硬链接文件filenk
[[email protected] Desktop]# cd /home
[[email protected] home]# touch file
[[email protected] ~]# mkdir /oub
[[email protected] ~]# ln -s /home/file /oub/newfile
[[email protected] ~]# ll /oub
total 0
lrwxrwxrwx. 1 root root 10 Aug 1 14:21 newfile -> /home/file[[email protected] ~]# ln /home/file /test/filenk
问题6.在文件中编辑一下内容: Good good study day day up...
[[email protected] Desktop]# echo good good study day day up >file2
[[email protected] Desktop]# cat file2
good good study day day up
边栏推荐
猜你喜欢

1. 获取数据-requests.get()

Lua安装及常用命令使用

Daily practice------There are n integers, so that the previous numbers are moved back m positions in order, and the last m numbers become the first m numbers

Heao Technology Network Interview (with reference answers)

PHP WebSehll backdoor script and detection tool

JunitTest单元测试

WebShell connection tools (Chinese kitchen knife, WeBaCoo, Weevely) use

LeetCode:第304场周赛【总结】

Brute force visitors

PyTorch(六)——PyTorch可视化
随机推荐
MongoDB文档存储
[LeetCode] 83. Delete duplicate elements in the sorted list
多个el-select下拉框无法选中相同内容
STL入门基础 map和set容器
JDBC--Druid数据库连接池以及Template基本用法
Day34 LeetCode
【LeetCode】206. Reverse linked list
一种基于行为空间的回声状态网络参数优化方法
关于#sql#的问题:该怎么写sql语句,
PyTorch(六)——PyTorch可视化
蓝鲸DevOps荣获平台类工具企业选择率第一
2022ACM夏季集训周报(五)
7-36 社交网络图中结点的“重要性”计算 (30 分) 不用迪杰斯特拉也不用弗洛伊德
CV-Model【4】:MobileNet v3
(转帖)HashCode总结(2)
线性代数学习笔记3-1:矩阵与线性变换、常见矩阵(逆矩阵、伴随矩阵、正交矩阵等)
(Reposted) The relationship between hashcode and equals
精益思想如何加速企业的全局价值流动?
01-Node-Express系统框架搭建(express-generator)
SSM网上商城购物系统(前台+后台)