标签 Linux 中的文章

安卓手机在linux下刷入twrp第三方recovery

1 自行下载需要刷入的twrp.img文件 下载地址:https://twrp.me/Devices/ 2 安装adb fastboot sudo apt install adb sudo apt install fastboot 3 手机开启开发者模式,并连接电脑 4 依次运行下面命令即可 // 进入fastboot adb reboot bootloader // 刷入 twrp镜像,twrp-xxxx.img 替换为你自己的twrp镜……

阅读全文

linux crontab命令详解

crontab命令被用来提交和管理用户的需要周期性执行的任务,与windows下的计划任务类似,当安装完成操作系统后,默认会安装此服务工具,并且会自动启动crond进程,crond进程每分钟会定期检查是否有要执行的任务,如果有要执行的任务,则自动执行该任务。 #语法 crontab(……

阅读全文

oneinstack helper

oneinstack help ./install.sh version: 1.7 updated date: 2018-04-20 Usage: ./install.sh command ...[parameters].... --help, -h Show this help message, More: https://oneinstack.com/auto --version, -v Show version info --nginx_option [1-3] Install Nginx server version --apache_option [1-2] Install Apache server version --php_option [1-7] Install PHP version --phpcache_option [1-4] Install PHP opcode cache, default: 1 opcache --php_extensions [ext name] Install PHP extension, include zendguardloader,ioncube,imagick,gmagick --tomcat_option [1-4] Install Tomcat version --jdk_option [1-4] Install JDK version --db_option [1-15] Install DB version --dbinstallmethod [1-2] DB install method, default: 1 binary install --dbrootpwd [password] DB super password --pureftpd Install Pure-Ftpd --redis Install Redis --memcached Install Memcached --phpmyadmin Install phpMyAdmin --hhvm Install HHVM --ssh_port [22] SSH port, default: 22 --iptables Enable iptables --reboot Restart the server after installation ./vhost.sh Usage: ./vhost.sh [ add | del | list | dnsapi ] add --->Add Virtualhost del --->Delete Virtualhost list --->List Virtualhost dnsapi……

阅读全文

两种判断shell执行用户是否为root用户

方式一: # Check if user is root if [ $(id -u) != "0" ]; then echo "Error: You must be root to run this script, please use root to run" exit 1 fi 方式二: # Check if user is root [ $(id -u) != "0" ] && { echo "${CFAILURE}Error: You must be root to run this script${CEND}"; exit 1; }……

阅读全文

统计代码git提交的行数

统计某人的代码提交量,包括增加,删除: git log --author="$(git config --get user.name)" --pretty=tformat: --numstat | gawk '{ add += $1 ; subs += $2 ; loc += $1 - $2 } END { printf "added lines: %s removed lines : %s total lines: %s\n",add,subs,loc }' - 仓库提交者排名前 5(如果看全部,去掉 head 管道即可): git log --pretty='%aN' | sort | uniq -c | sort -k1 -n -r | head -n 5 仓库提交者(邮箱)排名前 5:这个统计可能不会太准,因为很多人有不同的邮箱,但会……

阅读全文

vim/vi卡死原因

使用vim时,如果你不小心按了Ctrl + s后,你会发现不能输入任何东西了,像死掉了一般,其实vim并没有死掉,这时vim只是停止向终端输出而已,要想退出这种状态,只需按Ctrl + q即可恢复正常。……

阅读全文

shell 判断文件夹或文件是否存在

文件夹不存在则创建 if [ ! -d "/data/" ];then mkdir /data else echo "文件夹已经存在" fi 文件存在则删除 if [ ! -f "/data/filename" ];then echo "文件不存在" else rm -rf /data/filename fi 判断文件夹是否存在 if [ -d "/data/" ];then echo "文件夹存在" else echo "文件夹不存在" fi 判断文件是否存在 if [ -d "/data/test" ];then echo "文……

阅读全文

Linux下 ln 命令详解

这是linux中一个非常重要命令,请大家一定要熟悉。它的功能是为某一个文件或目录在另外一个位置建立一个同步的链接,类似Windows下的超级链接。 这个命令最常用的参数是-s,具体用法是: sudo ln -s 源文件 目标文件 举例: 当前目录是/local,而我经常要访问/usr/local/linu……

阅读全文

最近文章

分类

标签

ADB CSS Chrome DNS Docker FreeBSD Git Go Golang K8S Laravel Linux Lumen MySQL Nginx PHP PowerISO RSS订阅 ThinkPHP ubuntu Windows acme.sh adminer amis android anyproxy argo-cd canal ceph codeigniter codex coredns crontab cryptomator dapr dbeaver eclipse electron etcd fastboot ffmpeg gin gitea goquery gorm gorse grafana grpc grpc-gateway harness helm html hugo jaeger java javaee javascript jetbrains jquery js k3s kubernetes let's encrypt library license server longhorn meilisearch nodejs oneinstack open-webui openchamber opencode phpmyadmin phpstorm pi podman pritunl prometheus recovery redis release reset resty rook rufus screen shell ssl supervisor traefik trarfik twrp typecho ubuntu ueditor unzip vagrant vim virtualbox vitess xmind zip zsh 七牛云 下载 产品 从零开始 代理 何时 分区 初体验 刷机 压缩 启动 启动盘 命令 命令大全 命令行 坑 增量订阅 墨刀 好不好 学习路线 安装 实例 密码 小程序 工具 常用命令 开发 开始 引导 微信 微信第三方 快捷键 思维导图 怡和 怡和物业 成立 成长之路 技能树 抖音 指向 授权 排错 推广 提升 搜索 效率 文件 新手 新用户 方案 昆明 昆明水库 最新活动 权限 水库 泛域名 流程图 消费组件 润城 激活 爬虫 版本更新 狼人杀 磨刀 程序 笔记本 管理 米粉卡 系统 终身会员 维修 编程 老用户 联通 自加 解压 解析 设计 设计规范 证书 详解 语法 跨域 软件 迁移 钓鱼 阿里云 面板

友情链接

其它