rhcsa第二天

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: -
 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值