1.修改主机名:
查看主机名
2.查看日期
使用指定格式输出日期 YY-mm-DD HH:MM:SS
在这里插入代码片[root@rhcsa ~]# date "+%Y-%m-%d %H:%M:%S"
2021-11-21 14:48:54
3.将"We are learning RHCSA"输出在屏幕上
在这里插入代码片[root@rhcsa ~]# echo -e "We are learning RHCSA"
We are learning RHCSA
4.使用timedatectl查看时间状态
列出所有已知时区
修改时区为列出时区的某一个
在这里插入代码片[root@rhcsa ~]# 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
lines 1-20...skipping...
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
lines 1-31
5.使用wget命令在https://www.pearvideo.com/这个网站下载任意一个视
```python
在这里插入代码片[root@rhcsa ~]# ip a s
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: ens160: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 00:0c:29:ad:cf:8e brd ff:ff:ff:ff:ff:ff
inet 192.168.26.135/24 brd 192.168.26.255 scope global dynamic noprefixroute ens160
valid_lft 1379sec preferred_lft 1379sec
inet6 fe80::7b87:3174:5173:af58/64 scope link noprefixroute
valid_lft forever preferred_lft forever
3: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
link/ether 52:54:00:da:b7:3a brd ff:ff:ff:ff:ff:ff
inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0
valid_lft forever preferred_lft forever
4: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc fq_codel master virbr0 state DOWN group default qlen 1000
link/ether 52:54:00:da:b7:3a brd ff:ff:ff:ff:ff:ff
6.查看ip的命令(多种