timedatectl:(1)[root@localhost ~]# timedatectl status
Local time: Tue 2022-03-22 18:10:09 CST
Universal time: Tue 2022-03-22 10:10:09 UTC
RTC time: Tue 2022-03-22 10:10:09
Time zone: Asia/Shanghai (CST, +0800)
System clock synchronized: no
NTP service: inactive
RTC in local TZ: no
(2)[root@localhost ~]# timedatectl set-timezone "America/New_York"
[root@localhost ~]# timedatectl status
Local time: Tue 2022-03-22 06:11:55 EDT
Universal time: Tue 2022-03-22 10:11:55 UTC
RTC time: Tue 2022-03-22 10:11:55
Time zone: America/New_York (EDT, -0400)
System clock synchronized: no
NTP service: inactive
RTC in local TZ: no
文件类型:
1. 普通文件:一个普通的文件:视频,音频,文本等等
2. 目录文件: 指的是目录
3. 链接文件:符号链接,用于不同目录下的文件共享, 指向另一个文件
4. 设备文件:
块设备:就是我们的磁盘
字符设备:按照字符进行操作的终端 tty, 键盘
5. 管道文件:主要用于进程间数据的传递
6. 套接字文件:主要应用于网络数据连接
隐藏文件:就是在文件名称的前边加.,以.开始的文件的名,被认为是隐藏文件。必须使用-a选项的ls命令。
.: 代表当前目录的意思: ./
..: 代表上一级目录
符号表示:l: link 链接文件
c: character: 字符, 字符设备文件
b: block: 块,块设备文件
p: pipe: 管道,管道文件
s: socket: 套接字, 套接字文件
创建[root@localhost ~]# mkdir test/test1
[root@localhost ~]# mkdir test/test1/test2
[root@localhost ~]# mkdir test/test1/test2/test3】
输出路径
[root@localhost ~]# ls -R test
test:
son test1
test/test1:
test2
test/test1/test2:
test3
test/test1/test2/test3:
[root@localhost ~]# touch -d 20220319 file1
[root@localhost ~]# stat file1
File: file1
Size: 0 Blocks: 0 IO Block: 4096 regular empty file
Device: fd00h/64768d Inode: 34346385 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
Context: unconfined_u:object_r:admin_home_t:s0
Access: 2022-03-19 00:00:00.000000000 -0400
Modify: 2022-03-19 00:00:00.000000000 -0400
Change: 2022-03-23 06:13:17.814643223 -0400
Birth: -