标题:命令行
只看楼主
madfrogme
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
威 望:21
帖 子:1160
专家分:1106
注 册:2009-6-24
结帖率:98.63%
 问题点数:0 回复次数:10 
命令行
$ nslookup -q=txt <topic>.wp.dg.cx

比如
$ nslookup -q=txt otaku.wp.dg.cx


[ 本帖最后由 madfrogme 于 2012-9-4 00:22 编辑 ]
2012-07-18 23:25
madfrogme
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
威 望:21
帖 子:1160
专家分:1106
注 册:2009-6-24
得分:0 
命令行注销桌面
$ gnome-session-save --force-logout


[ 本帖最后由 madfrogme 于 2012-9-1 14:12 编辑 ]

The quieter you become, the more you can hear
2012-09-01 13:10
madfrogme
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
威 望:21
帖 子:1160
专家分:1106
注 册:2009-6-24
得分:0 
Mac OS 中的抓图

$ screencapture -s ./Desktop/screen.jpg 

鼠标拖拽

The quieter you become, the more you can hear
2012-09-01 17:00
madfrogme
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
威 望:21
帖 子:1160
专家分:1106
注 册:2009-6-24
得分:0 
直接在Vim 中运行gcc
:!gcc -o hello % && ./hello


当使用 :!   时 % 被替换为 当前打开的文件名

The quieter you become, the more you can hear
2012-09-03 23:26
madfrogme
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
威 望:21
帖 子:1160
专家分:1106
注 册:2009-6-24
得分:0 
VIM 中<esc> 太远,把<esc> 映射为 <f4> 按键
:imap <f4> <esc>

The quieter you become, the more you can hear
2012-09-03 23:49
madfrogme
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
威 望:21
帖 子:1160
专家分:1106
注 册:2009-6-24
得分:0 
查阅系统已装的包,和版本,排列
$ dpkg-query -Wf '${Package} - ${Version}' | sort -n


-f 指定输出格式

The quieter you become, the more you can hear
2012-09-04 23:49
madfrogme
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
威 望:21
帖 子:1160
专家分:1106
注 册:2009-6-24
得分:0 
从/etc/passwd 中抽出用户名和指定的shell
cat /etc/passwd | egrep -v "noshell|false|nologin" | cut -d: -f1,7


-v: 是指找到不匹配的行

The quieter you become, the more you can hear
2012-09-05 00:17
madfrogme
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
威 望:21
帖 子:1160
专家分:1106
注 册:2009-6-24
得分:0 
[ is a bash builtin, while [[ is a bash keyword. They are both used for testing stuff, but since [[ is a keyword rather than a builtin

The quieter you become, the more you can hear
2012-09-05 00:28
madfrogme
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
威 望:21
帖 子:1160
专家分:1106
注 册:2009-6-24
得分:0 
$ mkdir -p "$HOME/bin"
$ echo 'PATH="$HOME/bin:$PATH"' >> "$HOME/.bashrc"
$ exec bash


第三行是用一个新的Bash代替当前,读取 ~/.bashrc 文件

The quieter you become, the more you can hear
2012-09-05 00:32
madfrogme
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
威 望:21
帖 子:1160
专家分:1106
注 册:2009-6-24
得分:0 
在系统中删除一个用户可以用这个命令
# userdel username
系统中有越多的帐号,就越容易受到攻击。可以据此删除一些不必要的用户,比如
# userdel uucp
# userdel games

The quieter you become, the more you can hear
2012-09-05 11:38



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-373675-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.523061 second(s), 7 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved