1、linux的以及目录
- bin 二进制可执行文件
- sbin 二进制可执行文件(root用户权限)
- etc 系统管理和配置文件,例如常见host文件
- home 用户文件的根目录
- usr 用户存放系统应用程序(共享系统资源)
- opt 可选的应用程序
- proc 虚拟文件系统
- root 超级用户
- dev 存放设备文件
- mnt 系统管理员安装临时文件
- boot 系统引导文件
- lib 存放系统运行相关库文件
- tmp 临时文件
- var 需要改变数据文件
- lost+found 垃圾桶
2、linux常用命令解释
cd /root
ls -al
df
dirs
pwd
ping [ip]
netstat
stat
date
ps
who/whoami/whois
top 显示管理执行中的程序
grep
view
cmp
diff
file
find
which
whereis
split
wc test.txt
more/less test.txt
head/tail test.txt
hostname
uname
ifconfig
clear
gzip/gunzip
zip/unzip
tar/untar
chmod
cp
paster
mv
rm
cut
ln
mkdir
rmdir
touch
login/logout/logname
reboot
shutdown
kill -9
ftp
vim
ls -l
ls -a
mkdir -p
wget
rm -f
rm -r
tar -cvf
tar -zcvf
sh
nohup sh
ps -aux
alias showmeit="ps -aux"
unaliax showmeit
systemctl enable
systemctl start
systemctl stop
firewall-cmd --state
systemctl stop firewald.service
systemctl disable firewalld.service
rpm -i xxx.rpm
rpm -qa | grep jdk
rpm -qa | more
yum search jdk
yum install
yum erase
vi [文件]
i
esc
wq
q!
set number
/xxx
n
shift+n
第一部分:linux常用工具安装
第三部分:一些有用的命令行
tail -f 500 all.log
ps -ef|grep java
grep 'search word' all.log
whereis nginx
gzip test.txt
gunzip test.zip
tar test.txt test.tar
untar test.tar
linux高级操作
linux防火墙操作
service firewall start
service firewall restart
service firewall stop
firewall-cmd --list-all
firewall-cmd --query-port=8080/tcp
firewall-cmd --permanent --add-port=8080/tcp
firewall-cmd --permanent --remove-port=8080/tcp
firewall-cmd --reload