在Fedora中,您可以通过多种方式访问命令行界面。最常见的方式是使用终端应用程序,如GNOME Terminal、Konsole或Terminator。默认情况下,Fedora使用Bash(Bourne Again Shell)作为用户的默认Shell,但您也可以选择其他Shell,如Zsh或Fish。
• ip:显示和操作路由、网络设备、策略路由和隧道ip addr show # 显示所有网络接口的IP地址
ip link show # 显示所有网络接口的状态
ip route show # 显示路由表
ip addr add 192.168.1.100/24 dev eth0 # 为接口添加IP地址
ip link set eth0 up # 启用网络接口
ip link set eth0 down # 禁用网络接口
• ifconfig:配置网络接口(传统工具,已逐渐被ip命令替代)ifconfig # 显示所有网络接口
ifconfig eth0 # 显示特定接口
ifconfig eth0 up # 启用接口
ifconfig eth0 down # 禁用接口
• 查看DNF历史记录:dnf history # 显示DNF操作历史
dnf history info ID # 显示特定操作的详细信息
dnf history list ID # 显示特定操作影响的软件包
• 回滚操作:sudo dnf history undo ID # 撤销特定操作
sudo dnf history redo ID # 重做特定操作
1. 官方文档:Fedora DocumentationBash Reference Manual
2. Fedora Documentation
3. Bash Reference Manual
4. 在线教程和网站:The Linux Documentation ProjectLinux JourneyExplain Shell- 解释命令行命令
5. The Linux Documentation Project
6. Linux Journey
7. Explain Shell- 解释命令行命令
8. 书籍推荐:“The Linux Command Line” by William Shotts“How Linux Works” by Brian Ward“Shell Scripting: Expert Recipes for Linux, Bash and more” by Jason Cannon
9. “The Linux Command Line” by William Shotts
10. “How Linux Works” by Brian Ward
11. “Shell Scripting: Expert Recipes for Linux, Bash and more” by Jason Cannon
12. 实践平台:OverTheWire- 提供命令行安全游戏Linux Academy- 提供Linux课程和实验环境
13. OverTheWire- 提供命令行安全游戏
14. Linux Academy- 提供Linux课程和实验环境
15. 社区和论坛:Fedora ForumStack Exchange Unix & LinuxReddit r/linux4noobs
16. Fedora Forum
17. Stack Exchange Unix & Linux
18. Reddit r/linux4noobs
官方文档:
• Fedora Documentation
• Bash Reference Manual
在线教程和网站:
• The Linux Documentation Project
• Linux Journey
• Explain Shell- 解释命令行命令
书籍推荐:
• “The Linux Command Line” by William Shotts
• “How Linux Works” by Brian Ward
• “Shell Scripting: Expert Recipes for Linux, Bash and more” by Jason Cannon
实践平台:
• OverTheWire- 提供命令行安全游戏
• Linux Academy- 提供Linux课程和实验环境
社区和论坛:
• Fedora Forum
• Stack Exchange Unix & Linux
• Reddit r/linux4noobs