X window
* Switch display mode (1024 x 768, 800 x 600, 640, 480)
Ctrl - Alt - + / -
* Switch desktop
Ctrl - Alt - <Left> / <Right>
1. Chinese Input: (only for FC4 / FC3)
/etc/X11/xinit/xinitrc.d/xinput.sh
export LC_CTYPE=zh_CN.UTF-8
2. tcpdump
tcpdump -s 2000 -w web.log port 80
tcpdump -nnXs 2000 -r web.log | less
3. gdb
3.1 C structure style show information
set print pretty on
3.2 Unlimit string content
set print element 0
3.3 Show memory
x/100cb variable
x/100b 0x400000
3.4 others
handle SIGPIPE nostop
handle SIGPIPE noprint
set args -X
* Switch display mode (1024 x 768, 800 x 600, 640, 480)
Ctrl - Alt - + / -
* Switch desktop
Ctrl - Alt - <Left> / <Right>
1. Chinese Input: (only for FC4 / FC3)
/etc/X11/xinit/xinitrc.d/xinput.sh
| # setup XMODIFIERS [ -z "$XMODIFIERS" -a -n "$XIM" ] && XMODIFIERS="@im=$XIM" [ -n "$XMODIFIERS" ] && export XMODIFIERS export XIM=htt export XIM_PROGRAM=httx export GTK_IM_MODULE=iiim gnome-im-settings-daemon >/dev/null # execute XIM_PROGRAM |
export LC_CTYPE=zh_CN.UTF-8
2. tcpdump
tcpdump -s 2000 -w web.log port 80
tcpdump -nnXs 2000 -r web.log | less
3. gdb
3.1 C structure style show information
set print pretty on
3.2 Unlimit string content
set print element 0
3.3 Show memory
x/100cb variable
x/100b 0x400000
3.4 others
handle SIGPIPE nostop
handle SIGPIPE noprint
set args -X
本文介绍了如何使用XWindow进行显示模式切换,并详细解释了中文输入设置的方法。此外,还提供了使用tcpdump进行网络流量抓包的具体命令示例,以及利用gdb调试程序时的一些实用设置。
1408

被折叠的 条评论
为什么被折叠?



