kali2源及基本更新 命令

本文介绍了国内Kali和Debian的更新源配置,包括kali官方源、中科大kali源、阿里云kali源、163 DEBIAN源等。还给出了更新操作步骤,如清除缓存索引、更新索引文件、更新软件包文件等,以及内核更新和安装所有kali工具包的命令。

版权声明:本文为博主原创文章,转载时请注明出处,附上链接,谢谢。 https://blog.youkuaiyun.com/lendq/article/details/79250842
1.国内更新源
leafpad /etc/apt/sources.list
然后复制粘贴下面的源
#kali官方源
deb http://http.kali.org/kali kali-rolling main non-free contrib

#中科大kali源

deb http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib
deb-src http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib
deb http://mirrors.ustc.edu.cn/kali-security kali-current/updates main contrib non-free
deb-src http://mirrors.ustc.edu.cn/kali-security kali-current/updates main contrib non-free

#阿里云kali源

deb http://mirrors.aliyun.com/kali kali-rolling main non-free contrib
deb-src http://mirrors.aliyun.com/kali kali-rolling main non-free contrib
deb http://mirrors.aliyun.com/kali-security kali-rolling/updates main contrib non-free
deb-src http://mirrors.aliyun.com/kali-security kali-rolling/updates main contrib non-free


#163 DEBIAN源
deb http://mirrors.163.com/debian wheezy main non-free contrib 
deb-src http://mirrors.163.com/debian wheezy main non-free contrib 
deb http://mirrors.163.com/debian wheezy-proposed-updates main non-free contrib 
deb-src http://mirrors.163.com/debian wheezy-proposed-updates main non-free contrib 
deb-src http://mirrors.163.com/debian-security wheezy/updates main non-free contrib 
deb http://mirrors.163.com/debian-security wheezy/updates main non-free contrib


#163 DEBIAN源
deb http://mirrors.163.com/debian wheezy main non-free contrib 
deb-src http://mirrors.163.com/debian wheezy main non-free contrib 
deb http://mirrors.163.com/debian wheezy-proposed-updates main non-free contrib 
deb-src http://mirrors.163.com/debian wheezy-proposed-updates main non-free contrib 
deb-src http://mirrors.163.com/debian-security wheezy/updates main non-free contrib 
deb http://mirrors.163.com/debian-security wheezy/updates main non-free contrib


自用
deb http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib
deb-src http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib


#阿里云kali源

deb http://mirrors.aliyun.com/kali kali-rolling main non-free contrib
deb-src http://mirrors.aliyun.com/kali kali-rolling main non-free contrib


#163 DEBIAN源
deb http://mirrors.163.com/debian wheezy main non-free contrib 
deb-src http://mirrors.163.com/debian wheezy main non-free contrib 
deb http://mirrors.163.com/debian wheezy-proposed-updates main non-free contrib 
deb-src http://mirrors.163.com/debian wheezy-proposed-updates main non-free contrib 
deb-src http://mirrors.163.com/debian-security wheezy/updates main non-free contrib 


更新
apt-get clean //清除缓存索引
apt-get update //更新索引文件

apt-get upgrade -y //更新实际的软件包文件
apt-get dist-upgrade -y //根据依赖关系更新

apt-get install kali-linux-all //安装所有kali工具包

内核更新
apt-get install linux-headers-$(uname -r)
--------------------- 
作者:lendq 
来源:优快云 
原文:https://blog.youkuaiyun.com/lendq/article/details/79250842 
版权声明:本文为博主原创文章,转载请附上博文链接!

### Kali Linux 终端基本命令 Kali Linux 是一种基于 Debian 的 Linux 发行版,主要用于高级渗透测试和安全审计。掌握其终端的基本命令对于有效使用该操作系统至关重要[^1]。 以下是常用的 Kali Linux 终端命令及其功能: #### 文件管理 - **ls**: 列出当前目录中的文件和子目录。 ```bash ls -l ``` - **cd**: 更改工作目录。 ```bash cd /path/to/directory ``` - **pwd**: 显示当前工作目录路径。 ```bash pwd ``` #### 文件操作 - **cp**: 复制文件或目录。 ```bash cp source_file destination_path ``` - **mv**: 移动或重命名文件。 ```bash mv old_name new_name ``` - **rm**: 删除文件。 ```bash rm file_to_delete ``` - **mkdir**: 创建新目录。 ```bash mkdir new_directory ``` - **rmdir**: 删除空目录。 ```bash rmdir directory_to_remove ``` #### 用户与权限 - **whoami**: 查看当前登录用户名。 ```bash whoami ``` - **chmod**: 修改文件或目录的访问权限。 ```bash chmod permissions filename ``` - **chown**: 改变文件或目录的所有者。 ```bash chown user:group filename ``` #### 系统信息 - **df**: 显示磁盘空间使用情况。 ```bash df -h ``` - **free**: 显示内存使用情况。 ```bash free -m ``` - **top**: 实时显示系统进程状态。 ```bash top ``` #### 软件包管理 - **apt-get update**: 更新软件列表。 ```bash sudo apt-get update ``` - **apt-get install**: 安装新的软件包。 ```bash sudo apt-get install package_name ``` - **apt-get remove**: 卸载已安装的软件包。 ```bash sudo apt-get remove package_name ``` 以上是一些基础命令,适合初学者入门并熟悉 Kali Linux 的环境配置和日常操作。 ```python print("Hello, this is a Python example to show how commands can be executed.") ```
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值