首先,在你的Windows系统上要想有linux系统,那就必须先安装一款软件:VMware-workstation,←这里提供的是14、15的,还有ISO镜像
安装VMware:略
新建虚拟机之前将ISO镜像加到配置,不然无法启动虚拟机
注意:安装Linux操作系统时对内存的最低要求为:512M
hostnamectl set-homename 主机名
# ?方法1 vim /etc/hosts进入文件编辑,输入10.0.0.100 主机名,保存退出 # 方法2 echo ‘10.0.0.100‘ 主机名>>/etc/hosts 然后执行命令:ping 主机名,能ping通就说明OK了
# 检查防火墙是否开启
iptables -L
# 临时关闭防火墙
iptables -F
service iptablesa stop
# 永久关闭防火墙
systemctl disable firewalld
chkconfig iptables off
# 查询selinux防火墙
getenforce(Enforcing 强制)
# 临时关闭
setenforce 0
# 永久关闭
vim /etc/selinux/config 将SELINUX=disabled
# 重启
退出当前用户: Ctrl + d 查找: Ctrl + r 历史: history 锁屏: Ctrl + s 解锁: Ctrl + q 关机: poweroff 重启: reboot
命令格式:命令 [选项] [参数]
关机:init 0
切换用户:Ctrl+Alt[F1~F6]
退出: exit
浏览
ls(当前文件夹下)
ls -l 详细信息
ll 详细信息
ls -a 显示隐藏文件
ls -ltr /var/log/ (时间倒序排列)
日期
date
date ‘月日时分年‘(同步系统时间)
hwclock -s(同步硬件时间)
万年历
cal
cal 月 年
清空屏幕
ctrl+l
clear
帮助信息
man
--help
info
原文:https://www.cnblogs.com/rongge95500/p/10222203.html