上一页 1 ··· 47 48 49 50 51 52 53 54 55 ··· 77 下一页
摘要: 答: git push origin --delete branch_name 阅读全文
posted @ 2019-02-28 11:15 Jello 阅读(386) 评论(0) 推荐(0)
摘要: 答: cat jello.txt | awk 'END {print}' 阅读全文
posted @ 2019-02-27 16:36 Jello 阅读(5512) 评论(0) 推荐(0)
摘要: 答:在子shell执行,那么变量的值总是不能如愿以偿的改变,示例如下: 看见示例中的管道了吗!这是个陷阱,会导致while在子shell 中执行,以至于var的值并没有被改变 解决方法: 阅读全文
posted @ 2019-02-26 17:53 Jello 阅读(385) 评论(0) 推荐(0)
摘要: 答:cat file | awk '{$1=null;print $0}' (删除第一列) 阅读全文
posted @ 2019-02-26 15:42 Jello 阅读(4227) 评论(0) 推荐(0)
摘要: 答:git log --oneline --no-decorate --oneline: 将commit显示成一行 --no-decorate: 将tag和head名隐藏掉 阅读全文
posted @ 2019-02-26 15:38 Jello 阅读(910) 评论(0) 推荐(0)
摘要: 答:git log --name-status 阅读全文
posted @ 2019-02-26 15:17 Jello 阅读(1658) 评论(0) 推荐(0)
摘要: 答:一共分成以下几个步骤: 注:笔者使用的是ubuntu 1.设置ip sudo ifconfig eth0 192.168.1.121 2.设置网关 sudo route add default gw 192.168.1.1 eth0 3.设置dns sudo -i echo "nameserve 阅读全文
posted @ 2019-02-23 21:52 Jello 阅读(4619) 评论(0) 推荐(0)
摘要: 答:使用一下命令即可: sudo dpkg --add-architecture i386 阅读全文
posted @ 2019-02-22 15:56 Jello 阅读(310) 评论(0) 推荐(0)
摘要: 答:使用netstat工具 在命令行下输入netstat -atun即可列出当前机器提供的服务 netstat各选项解析: -a 列出所有服务 -t 列出tcp相关 -u 列出udp相关 -n 以数字形式显示主机、端口或用户名 阅读全文
posted @ 2019-02-21 18:24 Jello 阅读(2272) 评论(0) 推荐(0)
摘要: 答:往~/.vimrc或/etc/vimrc的最后添加以下行: hi comment ctermfg=6 阅读全文
posted @ 2019-02-21 14:57 Jello 阅读(505) 评论(1) 推荐(0)
上一页 1 ··· 47 48 49 50 51 52 53 54 55 ··· 77 下一页