一。查看当前安装配置模式
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
orwsl -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已经被删除了。