December 14, 2022

Enable kvm nested virtualization function on Linux

kvm supports nested virtualization, that is, virtual machines can be created within virtual machines. This article mainly introduces how to enable the nested virtualization function of KVM in CentOS7 using Intel processors. Kvm is mainly implemented through the kernel module, so we check whether the system has enabled kvm nested virtualization, only need: You can […]

November 28, 2022

vi replace string

Vi/vim can use the :s command to replace strings. In the past, only one format was used to replace the full text. Today, I found that there are many ways to write this command, and record a few here for future reference.:s/vivian/sky/ Replace the first vivian in the current line with sky:s/vivian/sky/g Replace all vivian […]

November 27, 2022

Prevent Overwriting Of Files When Using Scp

rsync seems to be the solution the problem. Here’s an example I got from here: The -a option will preserve permissions, directory structure, ownership, and symlinks. You can also specify any of those options individually as well. -v and -z mean verbose and compress respectively. You don’t really need them although -z is nice if you are […]