RHEL入门
RHEL一般指Red Hat Enterprise Linux。 Red Hat公司发布的面向企业用户的Linux操作系统。
RHEL 免费开源 Redhat linux、Centos、redflag、debian、opensuse、ubuntu、arch、freeBSD等等。
特点:安全 稳定 占资源少
缺点:操作复杂,需要专业工程师
Windows:
特点:图形界面,简单易用
缺点:占用资源较高、安全性差、稳定性也差
unix: solaris AIX(IBM)HP-UX 小型机
第一梯队:redhat centos fedora
第二梯队:debian ubuntu
rhel:redhat enterprise linux
基本指令
cat /etc/redhat-release #查看版本
uname -a #内核版本
clear #清屏
history #回显历史命令
Ctrl+shift+‘+’ #字体放大
tar xzvf aaa.tar.gz #解压缩
!n #执行history中第n条指令
root #最高管理员权限
pwd #回显当前光标的路径
init 0 # 关机
reboot #重启
ctrl+alt+F1 #切换到图形
ctrl+alt+F3 #切换到命令行
ctrl + ‘-’ #缩小字体
ls #(list)查看列出
cd aaa #改变目录,进入新目录aaa
cd … #返回上一级目录
cp #复制
mkdir aaa #创建目录aaa
touch aaa #创建文件aaa
rmdir aaa #删除空目录aaa
rm -rf aaa #强制删除aaa
mv #剪切
df -h #查看磁盘分区使用情况
cat
tac
mount /dev/cdrom /mnt #光驱临时挂载到mnt目录下
date
ifconfig
find
cut
awk
fdisk -l
cal 2000 #2000日历
hostname
who
which
echo aaa #输出aaa
配置yum源头(软件仓库)
cd /etc/yum.repos.d/
rm -rf *
vim BaseOS.repo
[BaseOS]
name=BaseOS
baseurl=///mnt/BaseOS
enable=1
gpgcheck=0
[AppStream]
name=AppStream
baseurl=///mnt/AppStream
enable=1
gpgcheck=0
使用yum
yum repolist
yum install xxx #安装软件xxx
yum remove xxx #卸载软件xxx
yum -y install wireshark
free
top
ps aux
kill -9 xxx
systemctl status sshd.service
systemctl stop xxx
systemctl start xxx
systemctl restart xxx
systemctl enable xxx
systemctl disable xxx
yum -y install lrzsz
rz 上传
sz 下载