Tcpdump和wireshark一起使用,抓包分析.在MacOSX上terminal中安装wireshark前需要先装XQuartz。使用如下命令:tcpdumptcp-ieth0-nn-t-s0-c100anddstport!22andsrcnet192.168.1.0/24-w./target.cap(1)tcp:ipicmparprarp和tcp、udp、icmp这些选项等都要放到第一个参数的位置,用..
分类:
其他好文 时间:
2014-11-17 06:58:06
阅读次数:
171
前言
说说gdb的重要性
一般来说,提到gdb,都是用命令来调试。“命令”,这个对于用户来说几乎等同于繁杂的词语。尽管事实确实如此,但实际的开发调试必须用到gdb。现在,大多数Linux系统是存在于服务器当中。我们想操作这些系统时,一般是通过Terminal来操作。也就是说这些Linux系统不具有图形界面。而调试一般分两部分,开发时调试和运行时调试。当我们的程序部署到Linux上时,那就需要忘...
分类:
数据库 时间:
2014-11-17 00:29:54
阅读次数:
376
Linuxshell/terminal命令非常强大,即使一个简单的命令就可能导致文件夹、文件或者路径文件夹等被删除。在一些情况下,Linux甚至不会询问你而直接执行命令,导致你丢失各种数据信息。一般来说在Web上推荐新的Linux用户执行这些命令,当然,也有人哪些写过这代码的人不这么想,因为这玩意你...
分类:
系统相关 时间:
2014-11-15 18:18:19
阅读次数:
355
You are to determine the value of the leaf node in a given binary tree that is the terminal node of a path of least value from the root of the binary tree to any leaf. The value of a path is the sum o...
分类:
其他好文 时间:
2014-11-11 22:57:13
阅读次数:
280
相信长期浸泡在终端和代码的小伙伴们都有一套自己喜爱的配色方案。以前一直在用简单、适合阅读的 Terminal.app 配色方案,换到 MacBook Pro with Retina display?后发现这个配色时间看长了眼睛有点累。不断有人推...
分类:
系统相关 时间:
2014-11-11 19:24:28
阅读次数:
277
前段时间因为需要多用户同时远程连接 windows server 2012,但找了半天也没找到远程桌面管理,最后从搜索中找到如下方法,经测试可行!打开注册表,进入路径:[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Serv...
1.系统默认: ctrl+alt+t打开终端;
//12.04用unity桌面 ,没有主菜单,所以ctrl+alt+t 是终端的快捷键,或者左侧有个栏,有个叫Terminal的就是终端的启动器。//若有主菜单的版本可以:应用程序-》附件-》终端
2.alt+f2: 输入 : gnome-terminal 打开终端
3.win+a打开unity的dash界面, 输入: gnome-te...
分类:
系统相关 时间:
2014-11-10 10:08:22
阅读次数:
206
Ctrl + Alt + t -----> open terminal Ctrl + Shift + t ----> open a table on the terminal Alt + NUMBER -----> NUMBER=1 : switch the first table of the terminal; NUMBER=2 : switch the third table of t...
分类:
其他好文 时间:
2014-11-09 19:37:26
阅读次数:
168
在mac10.10上使用octave的时候,键入 plot(x, y)的时候会出现如下错误:set terminal aqua enhanced title "Figure 1" font "*,6" dashlength 1 ^ line 0: unknown or ambiguous ter.....
分类:
系统相关 时间:
2014-11-09 19:29:22
阅读次数:
602
发现gnuplot在mac上编译安装相当方便,在线下为了测试java老堆和lucene索引大小,需要绘制两条线,但是直接点连的线非常难看,所以后面使用贝塞尔曲线。
脚本如下:
#! /usr/local/bin/gnuplot -p
set terminal canvas;
set output "canvas.html"
set title "Illustration";
...
分类:
其他好文 时间:
2014-11-08 10:34:16
阅读次数:
241