按使用场景分组,点击"复制"按钮一键复制命令
ls -lah
cp -r <src> <dst>
mv <old> <new>
rm -rf <dir>
ln -s <target> <link>
find <dir> -name "*.log"
chmod 755 <file>
chown <user>:<group> <file>
sudo <command>
ps aux | grep <name>
top
kill -9 <pid>
uname -a
cat /etc/os-release
free -h
uptime
netstat -tulnp
ping <host>
wget -O <file> <url>
curl -s -X GET <url>
scp <file> <user>@<host>:/remote/path/
df -h
du -sh <dir>
tar -czvf <name>.tar.gz <dir>
tar -xzvf <name>.tar.gz
zip -r <name>.zip <dir>
unzip <name>.zip
tail -f <file>
tail -n 100 <file>
tail -f <file> | grep <keyword>
grep -rn <keyword> <dir>
awk '{print $1}' <file>
sed -i 's/<old>/<new>/g' <file>
crontab -l
crontab -e
systemctl status <service>
systemctl restart <service>
systemctl enable <service>
journalctl -u <service>
firewall-cmd --list-all
firewall-cmd --add-port=8080/tcp --permanent
firewall-cmd --remove-port=8080/tcp --permanent
firewall-cmd --reload