1、[root@redhat ~]# timedatectl list-timezones
Africa/Abidjan
Africa/Accra
Africa/Addis_Ababa
Africa/Algiers
Africa/Asmara
Africa/Bamako
Africa/Bangui
Africa/Banjul
Africa/Bissau
Africa/Blantyre
Africa/Brazzaville
Africa/Bujumbura
Africa/Cairo
Africa/Casablanca
Africa/Ceuta
Africa/Conakry
Africa/Dakar
Africa/Dar_es_Salaam
Africa/Djibouti
Africa/Douala
Africa/El_Aaiun
Africa/Freetown
Africa/Gaborone
Africa/Harare
Africa/Johannesburg
Africa/Juba
Africa/Kampala
Africa/Khartoum
Africa/Kigali
Africa/Kinshasa
Africa/Lagos
Africa/Libreville
Africa/Lome
Africa/Luanda
Africa/Lubumbashi
Africa/Lusaka
Africa/Malabo
Africa/Maputo
Africa/Maseru
Africa/Mbabane
Africa/Mogadishu
Africa/Monrovia
Africa/Nairobi
Africa/Ndjamena
Africa/Niamey
Africa/Nouakchott
Africa/Ouagadougou
Africa/Porto-Novo
Africa/Sao_Tome
Africa/Tripoli
Africa/Tunis
Africa/Windhoek
America/Adak
America/Anchorage
America/Anguilla
America/Antigua
America/Araguaina
America/Argentina/Buenos_Aires
America/Argentina/Catamarca
America/Argentina/Cordoba
America/Argentina/Jujuy
America/Argentina/La_Rioja
America/Argentina/Mendoza
America/Argentina/Rio_Gallegos
America/Argentina/Salta
[root@redhat ~]# timedatectl set-timezone "America/Antigua"
[root@redhat ~]# timedatectl status
Local time: Fri 2022-03-25 01:23:43 AST
Universal time: Fri 2022-03-25 05:23:43 UTC
RTC time: Sun 2022-03-20 02:05:36
Time zone: America/Antigua (AST, -0400)
System clock synchronized: no
NTP service: inactive
RTC in local TZ: no
2、
[root@redhat ~]# wget //page.pearvideo.com/webres/v4/js/mainVideo.js?v=4.86
//page.pearvideo.com/webres/v4/js/mainVideo.js?v=4.86: Scheme missing.
[root@redhat ~]# wget https://s4.cnzz.com/z_stat.php?id=1260553744
--2022-03-25 02:23:43-- https://s4.cnzz.com/z_stat.php?id=1260553744
Resolving s4.cnzz.com (s4.cnzz.com)... 111.20.26.241
Connecting to s4.cnzz.com (s4.cnzz.com)|111.20.26.241|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 11744 (11K) [application/javascript]
Saving to: ‘z_stat.php?id=1260553744’
z_stat.php?id=126055374 100%[============================>] 11.47K --.-KB/s in 0s
2022-03-25 02:23:43 (70.4 MB/s) - ‘z_stat.php?id=1260553744’ saved [11744/11744]
[root@redhat ~]# ls
anaconda-ks.cfg initial-setup-ks.cfg test
baidu.html mixue video_1756246
cont-1755372-15845298_adpkg-ad_hd.mp4 Music video_1756300
Desktop parent video_1756300.1
Documents Pictures Videos
Downloads Public 'z_stat.php?id=1260553744'
index.html Templates
3、
Linux文件类型:
1. 普通文件:一个普通的文件:视频,音频,文本等等
2. 目录文件: 指的是目录
3. 链接文件:符号链接,用于不同目录下的文件共享, 指向另一个文件
4. 设备文件:
块设备:就是我们的磁盘
字符设备:按照字符进行操作的终端 tty, 键盘
5. 管道文件:主要用于进程间数据的传递
6. 套接字文件:主要应用于网络数据连接
7、隐藏文件:就是在文件名称的前边加.,以.开始的文件的名,被认为是隐藏文件。必须使用-a选项的ls命令。
符号的表示:
-: 普通文件
d: directory : 目录,目录文件
l: link 链接文件 /bin/sh -> bash => 类似于一个快捷方式
b: block: 块,块设备文件
c: character: 字符, 字符设备文件
#p: pipe: 管道,管道文件
s: socket: 套接字, 套接字文件
隐藏文件:以.开始的文件的名
4、
[root@redhat ~]# mkdir test
[root@redhat ~]# mkdir -p test/test1/test2/test3
[root@redhat ~]#
a、
[root@redhat ~]# ls -R
.:
Desktop Downloads Music Pictures Templates Videos
Documents mixue parent Public test
./Desktop:
./Documents:
./Downloads:
./mixue:
./Music:
./parent:
son
./parent/son:
./Pictures:
./Public:
./Templates:
./test:
test1
./test/test1:
test2
./test/test1/test2:
test3
./test/test1/test2/test3:
./Videos:
b、
[root@redhat ~]# mkdir -p test3/file1
[root@redhat ~]# touch -t 20220319 test3/file1
touch: invalid date format ‘20220319’
C、
[root@redhat test3]# stat file1
File: file1
Size: 6 Blocks: 0 IO Block: 4096 directory
Device: fd00h/64768d Inode: 18245317 Links: 2
Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
Context: unconfined_u:object_r:admin_home_t:s0
Access: 2022-03-25 03:14:44.888397555 -0400
Modify: 2022-03-25 03:13:48.093395018 -0400
Change: 2022-03-25 03:13:48.093395018 -0400
Birth: -