Linux操作系统入门操作

一。查看当前安装配置模式

vi /etc/update-manager/release-upgrades

# Default prompting and upgrade behavior, valid options:
#
#  never  - Never check for, or allow upgrading to, a new release.
#  normal - Check to see if a new release is available.  If more than one new
#           release is found, the release upgrader will attempt to upgrade to
#           the supported release that immediately succeeds the
#           currently-running release.
#  lts    - Check to see if a new LTS release is available.  The upgrader
#           will attempt to upgrade to the first LTS release available after
#           the currently-running one.  Note that if this option is used and
#           the currently-running release is not itself an LTS release the
#           upgrader will assume prompt was meant to be normal.

Prompt=never

二. ubuntu退出插入模式的方法:

1.按“esc”键退出编辑模式,回到命令模式。

2.再输入相关命令退出,例如:

:wq! //保存并退出

:q! //不保存退出

:! //强制退出

:q // 正常退出

WSL 操作,打开power shell 

  • To see a list of available Linux distributions available for download through the online store, enter: wsl --list --online or wsl -l -o.
  • To install additional Linux distributions after the initial install, you may also use the command: wsl --install -d <Distribution Name>.
  • To set the default version to WSL 1 or WSL 2 when a new Linux distribution is installed, use the command: wsl --set-default-version <Version#>, replacing <Version#> with either 1 or 2.
  • List installed Linux distributions

    PowerShellCopy

  • wsl --list --verbose

Basic commands for WSL | Microsoft Learn 

docker 的基本操作

对于有相同ID的Image,删除时要通过名字+tag的方式删除

PS C:\worksapace> docker image ls

REPOSITORY    TAG       IMAGE ID       CREATED          SIZE

hello                   latest    b04f25060c00   14 minutes ago   53.8MB
nginx                  latest    5ef79149e0ec   8 days ago       188MB
qdwyj/nginx       1.1        5ef79149e0ec   8 days ago       188MB
hello-world         latest    d2c94e258dcb   15 months ago    13.3kB

PS C:\worksapace> docker image rm qdwyj/nginx:1.0

Untagged: qdwyj/nginx:1.1

PS C:\worksapace> docker image ls     
REPOSITORY    TAG       IMAGE ID       CREATED         SIZE  
nginx            latest    5ef79149e0ec    8 days ago      188MB 
hello-world   latest    d2c94e258dcb   15 months ago   13.3kB

qdwyj/nginx:1.0已经被删除了。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值