天天看点

日常笔记:命令记录

linux:

  1. 查询某个应用的安装路径:
  • ps -ef|grep redis 查询redis进程号
  • ls -l /proc/端口号/cwd 得到安装目录git

git:

  1. 项目clone:git clone http://用户名:密码@IP:端口/项目路径+名称
  2. 查询git用户名:git config user.name
  3. 修改git用户名:git config --global user.name "xxxx",
  4. 查询git邮箱:git config user.email
  5. 修改git邮箱:git --global user.email "[email protected]"

macOS:

  1. 远程连接服务器:ssh -p端口号 用户名@服务器地址

继续阅读