摘要:
1. 删除乱码文件名文件:使用find命令 ls -il 查找inode号 find -inum 12345 -exec rm '{}' \;2. 查看某个文件 阅读全文
posted @ 2013-02-14 18:11
leaving
阅读(133)
评论(0)
推荐(0)
摘要:
1。strace调试 strace ls strace -e ls 查看命令调用的systemcall strace -e trace=open,read ls / strace -o output.txt ls strace -t -p pid -o output.txt 跟踪pid进程,输出到output.txt文件中,并且添加时间戳 阅读全文
posted @ 2013-02-14 17:15
leaving
阅读(147)
评论(0)
推荐(0)
摘要:
1. 打开所有的编译时警告: -Wall gcc main.c -o main -Wall2. 只生成预编译文件: -E gcc -E main.c > main.i3. 只生存汇编文件: -S gcc -S main.c > main.s4. 只生成编译后代码: -C gcc -C main.c5. 生成中间临时文件: -save-temps gcc -save-temps main.c6. 动态库以及使用 gcc -shared -fPIC -o libmy.so my.c gcc -o p2 main.c ./libmy.so -Iinclude 或者 gcc -Lso... 阅读全文
posted @ 2013-02-14 15:29
leaving
阅读(272)
评论(0)
推荐(0)
浙公网安备 33010602011771号