# 确认源 (下面用阿里云的源举例)

echo "deb https://mirrors.aliyun.com/kali kali-rolling main non-free contrib" | sudo tee /etc/apt/sources.list

# 更新和升级(消耗时间较长,消耗带宽)

sudo apt update && sudo apt -y full-upgrade

## 期间出现报错,按tab补全报错,感觉像是把zsh更新的时候弄坏了

解决方法: apt-get install zsh

# 复制模板

cp -rbi /etc/skel/. ~

-r 递归处理,将指定目录下的文件与子目录一并处理。若源文件或目录的形态,不属于目录或符号链接,则一律视为普通文件处理

-i 或 --interactive 覆盖文件之前先询问用户

-p 或 --preserve 保留源文件或目录的属性,包括所有者、所属组、权限与时间

## 扩展了解

skel目录 (skel Directory)

/etc/skel is the directory where files will be copied to the new user directory from here. If we look detailed we will see that there are some default files in it.

/ etc / skel是将文件从此处复制到新用户目录的目录。 如果我们仔细查看,将会发现其中包含一些默认文件。

# 重启操作系统

[ -f /var/run/reboot-required ] && sudo reboot -f

参考资料:

https://www.kali.org/blog/kali-linux-2022-4-release/

最新文章

  1. 编程key note
  2. Redhat Linux 修改主机名(HOSTNAME)
  3. 爬虫:pycurl模块的使用说明
  4. java Scanner
  5. AB串(上帝都不会,我就没救了)
  6. HTML+CSS学习笔记 (6) - 开始学习CSS
  7. 快速排序(quicksort)算法实现
  8. 打包静默安装参数(nsis,msi,InstallShield,InnoSetup)
  9. SQL Prompt——SQL智能提示插件
  10. MVC+Bootstrap+Drapper使用PagedList.Mvc支持多查询条件分页
  11. GIS与水文分析(1)GIS与水文学
  12. 版本控制——TortoiseSVN (3)多版本发布
  13. Django学习笔记(6)——Form表单
  14. c++学习之初话 函数指针和函数对象 的因缘
  15. 使用velodyne16线激光雷达跑loam-velodyne
  16. 【原创】Linux系统不能上互联网情况下软件更新安装方法
  17. centos ping www.baidu.com ping: unknown host www.baidu.com
  18. Nancy 返回值详解
  19. SQL Server 创建和修改数据表
  20. Maven 项目打包需要注意到的那点事儿

热门文章

  1. 详解http和https
  2. channel 死锁
  3. pyinstaller打包Python程序报错OSError: Python library not found: libpython3.8.so, libpython3.8m.so
  4. lg7863
  5. 使用伪元素 before 叹号
  6. 新手必学matplotlib
  7. C++ MFC学习 (六)
  8. vue数组传值到后端
  9. java运算符相关学习
  10. CodeGym自学笔记08——交互对象