当前位置:网站首页>rhcsa——第二天
rhcsa——第二天
2022-08-08 06:24:00 【捍胃者】

1.手动调整当前主机时间(时区和时间更改)
[[email protected] ~]# date 050510102000.10
Fri May 5 10:10:10 CST 2000
[[email protected] ~]# timedatectl set-timezone Asia/Shanghai2.查看系统时间按照‘年/月/日 时:分:秒’格式显示并将结果写入time文件
[[email protected] ~]# touch time
[[email protected] ~]# ll
total 16
lrwxrwxrwx. 1 root root 15 Jul 30 11:49 aaa.ink -> anaconda-ks.cfg
-rw-------. 1 root root 1205 Jul 27 11:44 anaconda-ks.cfg
drwxr-xr-x. 2 root root 6 Jul 27 13:55 Desktop
drwxr-xr-x. 2 root root 6 Jul 27 13:55 Documents
drwxr-xr-x. 2 root root 6 Jul 27 13:55 Downloads
-rw-r--r--. 4 root root 29 Aug 1 21:36 file
lrwxrwxrwx. 1 root root 4 Jul 30 11:44 file.lnk -> file
-rw-r--r--. 1 root root 1477 Jul 27 13:54 initial-setup-ks.cfg
drwxr-xr-x. 2 root root 6 Jul 27 13:55 Music
-rw-r--r--. 4 root root 29 Aug 1 21:36 newfile
drwxr-xr-x. 2 root root 6 Jul 27 13:55 Pictures
drwxr-xr-x. 2 root root 6 Jul 27 13:55 Public
drwxr-xr-x. 2 root root 6 Jul 27 13:55 Templates
drwxr-xr-x. 2 root root 6 Jul 30 14:13 test
-rw-r--r--. 1 root root 0 Aug 1 21:37 time
drwxr-xr-x. 2 root root 6 Jul 27 13:55 Videos
[[email protected] ~]# date -s "2022-8-01 21:37:30"
[[email protected] ~]# date > time
[[email protected] ~]# cat time
Mon Aug 1 21:37:49 CST 2022
3.查看主机/etc/下的group文件,是什么类型文件
[[email protected] ~]# ll -d /etc/sysconfig
drwxr-xr-x. 5 root root 4096 Jul 27 2022 /etc/sysconfig
4.查看/etc/sysconfig目录文件的属性
[[email protected] ~]# touch /etc/group
[[email protected] ~]#
[[email protected] ~]# ll -d /etc/group
-rw-r--r--. 1 root root 981 Jul 27 2022 /etc/group
5.在root用户的家目录下创建file文件,在/pub创建该文件的软链接文件newfile,在/test创建硬链接文件file.lnk
软链接:
[[email protected] ~]# touch /root/file
[[email protected] ~]# ln -s /root/file /pub/newfile
[[email protected] ~]# ll /pub
lrwxrwxrwx. 1 root root 10 May 5 11:21 newfile -> /root/file
硬链接:
[[email protected] ~]# ln /root/file /test/file.ink
[[email protected] ~]# ll -i
35309880 -rw-r--r--. 4 root root 29 May 5 11:20 file
[[email protected] ~]# ll -i /test
35309880 -rw-r--r--. 4 root root 29 May 5 11:20 file.ink
6.在文件中编辑一下内容:
Good good study,day day up
[[email protected] ~]# nano /root/file
[[email protected] ~]# cat /root//file
Good good study,day day up
边栏推荐
猜你喜欢

一.Redis 概述

略解损失函数

【嵌入式Linux】SQLite数据库

1.Mysql索引的原理

Analysis of the status quo of the chemical industry: the polyolefin market consumption is nearly 200 million tons

2022年中国儿童食品市场规模与发展趋势

Rose essential oil market research: the current market output value exceeds 2.3 billion yuan, and the market demand gap is about 10%

jupyter notebook添加目录

Lamp analysis: LED lamps are expected to reach $45.9 billion in 2028

文件常用操作 IO流原理及分类
随机推荐
Accelerate CNNs from Three Dimensions: A Comprehensive Pruning Framework详解
Paramenter-Efficient Transfer Learning for NLP
redis笔记
Meta-Learning and in-context Learning
玫瑰精油市场研究:目前市场产值超过23亿元,市场需求缺口约10%
Prompt for Extraction? PAIE:Prompting Arguement Interaction for Event Argument Extraction
Variational Inference with Normalizing Flows
Google Colab 快速上手
PyTorch向量变换基本操作
基于深度学习的关系抽取
ER图是什么?
人脸识别数据集总结
六.Redis 持久化之 RDB
Flask study notes
【嵌入式Linux】SQLite数据库
神经网络的图像识别技术,神经网络的层数怎么看
Flutter 实现一款简单的音乐播放器
bp神经网络预测模型原理,神经网络模型怎么预测
4.MySQL索引优化实战
树基础入门