网络软件相关命令

文章目录

网络配置

  • 虚拟机中安装Ubuntu
模式 默认网卡 与主机通信 外部网络通信 访问局域网其他设备
桥接模式 Vmnet0 可以 可以 可以
nat模式 Vmnet8 可以 可以 不可以
仅主机模式 Vmnet1 可以 不可以 不可以
  • 如果ifconfig命令不好使,需要执行<font style="color:rgb(51,51,51);">sudo apt install net-tools</font>

软件管理

  • 更新源 (update) → 安装 (install) → 验证 → 配置 → 卸载 (remove/purge) → 清理(autoremove)

更新软件源

  • 更换软件源:
  • 更新软件源
    • sudo apt update
    • 不需要经常搞

安装

  • sudo apt install 文件名
    • sudo apt install cmatrix # 终端"矩阵雨"效果
    • <font style="color:rgb(51,51,51);">sudo apt install sl -y</font> # 终端"小火车"动画
    • <font style="color:rgb(51,51,51);">sudo apt install fortune-mod -y</font> # 随机趣味语录
    • <font style="color:rgb(51,51,51);">sudo apt install cowsay -y</font> 会说话的牛
  • -y 表示后续选择yes/no时自动yes

卸载

  • sudo apt remove 文件名

清除配置

  • sudo apt purge 文件名

清理

  • sudo apt autoremove
相关推荐
CIb0la1 小时前
Complete Bug Bounty tool List for free
linux·运维·bug
ytadpole1 小时前
若依验证码渲染失效问题
java·linux·后端
上78将1 小时前
什么是Stream流
linux·开发语言·python
似水流年 光阴已逝1 小时前
Linux系统“No space left on device”错误:从根因到修复的全攻略
linux·运维·服务器
Koma_zhe1 小时前
【Puter开源个人云平台】在家搭个私人网盘!Puter 让数据访问不受限
linux·笔记·开源·ssh
玩具猴_wjh1 小时前
Linux常用命令详细介绍
linux·运维·服务器
Y淑滢潇潇1 小时前
RHCE Day 9 SHELL条件测试
linux·运维·服务器
cqsztech1 小时前
oracle linux 9.6上安装oracle database 19.3 标准版 docker
linux·数据库·oracle
yenggd1 小时前
Centos7.9系统安装kvm
linux