diff --git "a/linux\344\275\234\344\270\232.md" "b/04 \351\237\251\346\226\207\346\235\260\345\244\247\345\270\205\345\223\245/linux\344\275\234\344\270\232.md" similarity index 100% rename from "linux\344\275\234\344\270\232.md" rename to "04 \351\237\251\346\226\207\346\235\260\345\244\247\345\270\205\345\223\245/linux\344\275\234\344\270\232.md" diff --git "a/linux\345\205\245\351\227\250.md" "b/04 \351\237\251\346\226\207\346\235\260\345\244\247\345\270\205\345\223\245/linux\345\205\245\351\227\250.md" similarity index 100% rename from "linux\345\205\245\351\227\250.md" rename to "04 \351\237\251\346\226\207\346\235\260\345\244\247\345\270\205\345\223\245/linux\345\205\245\351\227\250.md" diff --git "a/\345\221\250\346\234\237.md" "b/04 \351\237\251\346\226\207\346\235\260\345\244\247\345\270\205\345\223\245/\345\221\250\346\234\237.md" similarity index 100% rename from "\345\221\250\346\234\237.md" rename to "04 \351\237\251\346\226\207\346\235\260\345\244\247\345\270\205\345\223\245/\345\221\250\346\234\237.md" diff --git "a/04 \351\237\251\346\226\207\346\235\260\345\244\247\345\270\205\345\223\245/\347\216\257\345\242\203\345\217\230\351\207\217.md" "b/04 \351\237\251\346\226\207\346\235\260\345\244\247\345\270\205\345\223\245/\347\216\257\345\242\203\345\217\230\351\207\217.md" new file mode 100644 index 0000000000000000000000000000000000000000..828a38f865259658f4ad73a36f341632ba4da6d7 --- /dev/null +++ "b/04 \351\237\251\346\226\207\346\235\260\345\244\247\345\270\205\345\223\245/\347\216\257\345\242\203\345\217\230\351\207\217.md" @@ -0,0 +1,109 @@ +| 练习题 1: 显示当前所有的环境变量 | | | +| -------------------------------- | ------------------------------------------------------------ | ------------------------------------------------------------ | +| | [2](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_2) | | +| | [3](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_3) | * 使用`printenv`或`env`命令来显示所有的环境变量。 | +| | [4](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_4) | | +| | [5](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_5) | | +| | [6](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_6) | ```bash | +| | [7](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_7) | env | +| | [8](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_8) | ``` | +| | [9](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_9) | ### 练习题 2: 显示`HOME`环境变量的值 | +| | [10](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_10) | | +| | [11](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_11) | * 使用`echo`命令和`$`符号来显示`HOME`环境变量的值。 | +| | [12](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_12) | | +| | [13](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_13) | | +| | [14](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_14) | ```bash | +| | [15](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_15) | echo $HOME | +| | [16](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_16) | ``` | +| | [17](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_17) | ### 练习题 3: 临时设置一个新的环境变量 | +| | [18](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_18) | | +| | [19](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_19) | * 设置一个名为`MY_AGE`的环境变量,并将其值设置为`18`。 | +| | [20](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_20) | | +| | [21](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_21) | | +| | [22](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_22) | ```bash | +| | [23](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_23) | MY_AGE=18 | +| | [24](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_24) | | +| | [25](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_25) | ``` | +| | [26](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_26) | ### 练习题 4: 显示新设置的环境变量 | +| | [27](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_27) | | +| | [28](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_28) | * 使用`echo`命令来显示`MY_AGE`的值。 | +| | [29](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_29) | | +| | [30](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_30) | | +| | [31](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_31) | ```bash | +| | [32](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_32) | echo $MY_VARIABLE | +| | [33](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_33) | ``` | +| | [34](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_34) | ### 练习题 5: 在新的shell会话中检查环境变量 | +| | [35](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_35) | | +| | [36](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_36) | * 打开一个新的终端窗口或标签页,并尝试显示`MY_AGE`的值。你会看到什么?为什么? | +| | [37](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_37) | 会看到空白的,因为这个是临时的环境变量重启后就会消失 | +| | [38](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_38) | ### 练习题 6: 修改`PATH`环境变量 | +| | [39](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_39) | | +| | [40](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_40) | * 将`你当前用户的家目录`添加到你的`PATH`环境变量的末尾位置 | +| | [41](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_41) | | +| | [42](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_42) | | +| | [43](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_43) | ```bash | +| | [44](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_44) | vim .bachrc | +| | [45](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_45) | export PATH=$PATH:/home/lin | +| | [46](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_46) | ``` | +| | [47](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_47) | 将`/tmp`添加到你的`PATH`环境变量的开始位置,(注意:这可能会覆盖其他路径中的同名命令,所以请谨慎操作)。 | +| | [48](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_48) | | +| | [49](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_49) | ``` | +| | [50](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_50) | export PATH=/tmp $PATH:/home/lin | +| | [51](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_51) | ``` | +| | [52](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_52) | | +| | [53](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_53) | ### 练习题 7: 验证`PATH`的修改 | +| | [54](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_54) | | +| | [55](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_55) | * 使用`echo`命令显示`PATH`的值,并确认`前面添加的目录`已经被添加到对应位置。 | +| | [56](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_56) | | +| | [57](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_57) | | +| | [58](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_58) | ```bash | +| | [59](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_59) | echo $PATH | +| | [60](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_60) | ``` | +| | [61](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_61) | ### 练习题 8: 永久设置环境变量 | +| | [62](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_62) | | +| | [63](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_63) | * 在你的shell配置文件中(如`~/.bashrc`、`~/.bash_profile`、`~/.zshrc`等,取决于你使用的shell和配置)添加一行来永久设置`MY_NAME`,值设置为`奥德彪`。 | +| | [64](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_64) | | +| | [65](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_65) | 例如,对于bash shell,你可以使用: | +| | [66](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_66) | | +| | [67](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_67) | | +| | [68](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_68) | ```bash | +| | [69](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_69) | export MY_NAME="奥德彪" | +| | [70](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_70) | ``` | +| | [71](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_71) | 如何让`MY_NAME`生效,并验证 | +| | [72](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_72) | | +| | [73](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_73) | ``` | +| | [74](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_74) | source .bachrc | +| | [75](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_75) | echo $MY_NAME | +| | [76](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_76) | ``` | +| | [77](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_77) | | +| | [78](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_78) | ### 练习题 9: 清理 | +| | [79](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_79) | | +| | [80](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_80) | * 清除你之前设置的`MY_AGE`和`PATH`的修改(如果你不想永久保留它们)。 | +| | [81](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_81) | | +| | [82](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_82) | | +| | [83](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_83) | ```bash | +| | [84](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_84) | unset MY_AGE | +| | [85](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_85) | unset PATH | +| | [86](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_86) | ``` | +| | [87](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_87) | ### 练习题 10: 修改默认器 | +| | [88](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_88) | | +| | [89](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_89) | * 使用`EDITOR`变量,修改你默认的编辑器为nano。 | +| | [90](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_90) | | +| | [91](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_91) | | +| | [92](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_92) | ```bash | +| | [93](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_93) | editor nano | +| | [94](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_94) | ``` | +| | [95](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_95) | | +| | [96](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_96) | ### 练习题 11: 修改语言 | +| | [97](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_97) | | +| | [98](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_98) | * 使用`LANG`变量,让你的文件支持中文和utf8编码来避免乱码。 | +| | [99](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_99) | | +| | [100](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_100) | ``` | +| | [101](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_101) | | +| | [102](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_102) | export LANG=zh_CN.UTF-8 | +| | [103](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_103) | ``` | +| | [104](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_104) | | +| | [105](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_105) | - 使用`LANGUAGE`变量,让你的命令提示为中文 | +| | [106](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_106) | | +| | [107](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_107) | ``` | +| | [108](https://gitee.com/implementation-level-22/linux-fundamentals/commit/0ef061c1f7cc08d801c006dfc196d8c2efb59dc6#a8fd928a67b83ac5aae7d028249c72140fe37ce1_0_108) | export LANGUAGE=zh_CN.UTF-8 | \ No newline at end of file