当前位置:网站首页>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
边栏推荐
- 7-40 奥运排行榜 (25 分)多项排序
- 7-41 PAT排名汇总 (25 分)多样排序
- [Remote Control Development Basic Tutorial 3] Crazy Shell Open Source Formation UAV-ADC (Joystick Control)
- MySQL8--Windows下使用压缩包安装的方法
- dropout
- #{}和${}的区别
- Lua安装及常用命令使用
- Invalid bound statement (not found)出现的原因和解决方法
- Foundry教程:使用多种方式编写可升级的智能代理合约(下)
- Go语学习笔记 - gorm使用 - 表增删改查 Web框架Gin(八)
猜你喜欢

JSP WebSehll backdoor script

Foundry教程:使用多种方式编写可升级的智能代理合约(下)

二维数组实战项目--------《三子棋》

(Reposted) The relationship between hashcode and equals

IPIDEA的使用方式

MySQL8.0.26 installation and configuration tutorial (windows 64-bit)

MySQL8.0.26安装配置教程(windows 64位)

Common SQL interview questions: 50 classic examples

(转帖)hashcode和equals的关系

Scaffolding installation
随机推荐
基于优化的多核局部费舍尔判别分析的故障分类
MySQL8.0.28 installation tutorial
深度自编码网络的集成学习ICPS入侵检测模型
嘉为蓝鲸携手东风集团、上汽零束再获信通院四项大奖
WebShell特征值汇总与检测工具
Webshell upload method
Kubernetes 基本概念
Good Key, Bad Key (thinking, temporary exchange, classic method)
二维数组实战项目--------《三子棋》
基于时延估计的动力型下肢假肢分段控制策略研究
Double Strings (don't always forget substr)
基于分布式随机森林的火电厂燃烧系统设备建模方法
2022ACM夏季集训周报(五)
PyTorch(六)——PyTorch可视化
精益思想如何加速企业的全局价值流动?
三维数字孪生引擎与实景互动,案例解析
基于可逆网络的单一图像超分辨率
支付通道对接常见的问题有哪些?
MySQL8.0.28安装教程
MySQL中的时间函数