
shell
墙上芦苇
这个作者很懒,什么都没留下…
展开
-
git_版本回滚
1.git log 查看版本历史,找到当前提交hao要回滚的commit提交号,例如1234562.原创 2014-07-22 17:29:02 · 775 阅读 · 0 评论 -
linux_组操作
1.显示当前用户所属组:#id原创 2014-07-22 15:01:06 · 633 阅读 · 0 评论 -
linux_创建ext4文件
1.dd if=/dev/zero of=test.img bs=1M count=322.mkfs.ext4 -c test.img3.mkdir hello4.sudo mount -t ext4 -o loop test.img hello5.cp ...6.sudo umount hello原创 2014-10-21 09:30:04 · 1368 阅读 · 0 评论 -
linux_grep简单
当前目录下,递归搜索HELLO,并显示行数,以及搜索结果的前后3行grep HELLO * -rsn -C 3原创 2016-04-21 11:09:04 · 549 阅读 · 0 评论 -
linux_find简单
查找当前目录下,三天之内修改的c后缀文件,并显示详细信息find . -name '*.c' -type f -mtime -3 -ls1. -ls 视需求而定2.-mmin -60 表示查找60分钟内修改过的文件原创 2016-04-20 15:23:30 · 492 阅读 · 0 评论 -
linux_group简单
0.假设有一个用户test1.显示当前用户所属组:#id或者#id test#id -Gn2.添加新组:#groupadd helloworld3.删除已有组:#groupdel helloworld4.向已有组helloworld中添加用户test:#gpasswd -a test helloworld5.从已有组helloworld中删除用户te原创 2016-04-20 15:09:22 · 466 阅读 · 0 评论 -
cygwin_简单配置
1.选用http://mirrors.kernel.org作为下载站点,比较稳定高效2.勾选VIM/git和grep/awk/sed等基本工具3.习惯性扩展配置,用alias实现,编辑vi ~/.bashrcalias ll='ls -al'alias clr='printf "\033c"'原创 2016-05-07 11:14:18 · 548 阅读 · 0 评论