kali基本命令
文件
关闭系统立即关闭shutdown -h now
orinit 0
重启reboot
创建文件夹mkdir
{文件夹名}
创建文件touch
{文件名}
重命名文件mv
{文件or文件夹名}
删除文件rm
{文件名文件夹加参数(-r)}
网络配置
配置网卡vim /etc/network/interfaces
auto eth0 iface eth0 inet static netmask 255.255.255.0#子网掩码 address 172.16.30.102#要设置的主机IP地址 gateway 172.16.30.254#网关
重启网卡service networking restart
配置DNSnano /etc/resolv.conf
orvim /etc/resolv.conf
nameserver 8.8.8.8
ifconfig
1.命令格式:
ifconfig [网络设备] [参数]
2.命令功能:
ifconfig 命令用来查看网络和配置设备
3.命令参数