pidof:查找指定进程名称的进程id号
简介pidof命令用于查找指定名称的进程的进程号id号
说明
pidof命令用于查找指定名称的进程的进程号id号
格式
pidof [option] [name]
常用选项
- -s:仅返回一个进程号;
- -c:仅显示具有相同“root”目录的进程
- -x:显示由脚本开启的进程;
- -o:指定不显示的进程ID
示例
vagrant@homestead:~/code/xthkedu$ pidof nginx
822 817
vagrant@homestead:~/code/xthkedu$ ps -ef|grep nginx
root 817 1 0 07:40 ? 00:00:00 nginx: master process /usr/sbin/nginx -g daemon on; master_process on;
vagrant 822 817 0 07:40 ? 00:00:53 nginx: worker process
vagrant 5498 1657 0 13:56 pts/0 00:00:00 grep --color=auto nginx
Electron页面跳转、浏览器打开链接和打开新窗口
Docker编译镜像出现:fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/main/x86_64/APKINDEX.tar.gz
ERROR: http://dl-cdn.alpinelinux.org/alpine/v3.12/main: temporary error (try again later)
WARNING: Ignoring APKINDEX.2c4ac24e.tar.gz: No such file or directory问题
桌面应用很多都会在系统托盘中出现,那么Flutter的开发的桌面应用该如何增加到系统托盘中呢?本文将带大家一起尝试一下.
Centos中用Chrome将网页导出为PDF,chrome --headless --print-to-pdf https://developer.chrome.com/
快速生成表格
在使用Git的过程中,不想每次都输入用户名和密码去拉取代码,所以就需要保存这些信息,那么既然有保存了,就必须有清除功能。
在Mac电脑中,如何对Git的用户名和密码进行修改呢?起初不懂Mac,所以整了很久,本文将记录如何对这个进行操作,以便后期使用。