
linux命令
ComingFlying
这个作者很懒,什么都没留下…
展开
-
grep过滤目录或文件方法
在使用grep在指定目录下查找包含指定字符串的文件是,我们想过滤(即不递归查询指定目录)时!可以使用 –exclude-dir 参数单个目录实例搜索.目录但不搜索在.目录下的.svg目录中包含“string”字符串的文件grep -E "string" . -R --exclude-dir=.svg多个目录实例过滤.git,res,bin目录grep -...转载 2018-02-20 23:59:18 · 10762 阅读 · 0 评论 -
新装Ubuntu后的一些配置
一:Ubuntu 16.04 开启root用户和使用root用户登陆1. 编辑/etc/lightdm/lightdm.conf autologin-guest=false autologin-user=root autologin-user-timeout=0 greeter-session=lightdm-gtk-greeter2. 编辑/root/.p...原创 2018-04-02 07:56:47 · 410 阅读 · 0 评论 -
git 配置
安装 gitapt install git配置 git一. 添加用户明与邮箱 git config --global user.name "XXXX" git config --global user.name "XXXX@XXX.com"二. 添加ssh密钥1. 查看是否已存在ssh密钥, id_rsa(密钥)和id_rsa.pub(公钥)2. 生产...原创 2018-04-17 17:25:09 · 317 阅读 · 0 评论