个人常用命令/资料集合

以下代码均为老白博客个人收集自用,不涉及对外分享,如有侵权,请联系删除!

个人常用命令集合

1.Linux服务器相关命令

1.1 crontab

ubuntu修改crontab: ctrl+o保存,crtl+x退出进入:

EDITOR=nano crontab -e

编辑定时任务

crontab -e 

1.2 Linux清理系统

卸载所有自动安装且不再使用的软件包

sudo apt --purge autoremove

1.3 Linux修改root密码

腾讯云服务器提示:su: Authentication failure,按以下命令修改root密码即可

sudo passwd root
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully

1.4 Ubuntu修改hosts

老白主要用来添加GitHub的,解决国内服务器安装GitHub时速度慢的问题

查看:cat /etc/hosts
修改:vim /etc/hosts
i 切换至编辑模式。
输入完成后,按 Esc,输入 :wq,保存文件并返回。

1.5 删除文件夹

sudo rm -r /home/xcbtmw.com/public_html/wp-content/plugins/google-sitemap-generator

2.服务器管理面板

2.1 openlitespeedcyberpanel

openlitespeed忘记密码

/usr/local/lsws/admin/misc/admpass.sh

cyberpanel修改密码

adminPass 123456789

cyberpanel关闭防火墙

systemctl stop firewalld

systemctl disable firewalld

 

3.未分类

3.1 GitHub

下载文件镜像:https://tool.mintimate.cn/gh/

浏览镜像:https://hub.nuaa.cf/

https://c.aalib.net/tool/github/

3.2 在线检测网站

http3/quic在线检测:https://http3check.net/

lscache检测:https://check.lscache.io/

ttfb检测:https://speedvitals.com/ttfb-test?

4.软件类

4.1 软件安装包

火狐浏览器单文件PE版:https://www.yrxitong.com/h-nd-1005.html

图片本地压缩工具:https://www.lanzoue.com/iMpcA151dqjg

百度网盘单文件版:https://www.lanzoux.com/iSOp6fpnp1e

4.2 使用教程