常用命令备忘录

Liunx命令大全参考手册

1. gdb 调试利器 — Linux Tools Quick Tutorial

1. strip命令删除执行文件的debug信息

[root@localhost testclient]# strip hello_server
##使用 strip 命令之前
-rwxr-xr-x. 1 root root 12416 Sep 8 09:45 hello_server
##使用 strip 命令之后
-rwxr-xr-x. 1 root root 6312 Sep 8 09:55 hello_server

2. ulimit命令详解

3. gdb常用命令一览表

命令名称命令缩写命令说明
runr运行一个程序
continuec让暂停的程序继续运行
nextn运行到下一行
steps如果有调用函数,进入调用的函数内部,相当于 step into
untilu运行到指定行停下来
finishfi结束当前调用函数,到上一层函数调用处
returnreturn结束当前调用函数并返回指定值,到上一层函数调用处
jumpj将当前程序执行流跳转到指定行或地址
printp打印变量或寄存器值
backtracebt查看当前线程的调用堆栈
framef切换到当前调用线程的指定堆栈,具体堆栈通过堆栈序号指定
threadthread切换到指定线程
breakb添加断点
tbreaktb添加临时断点
deletedel删除断点
enableenable启用某个断点
disabledisable禁用某个断点
watchwatch监视某一个变量或内存地址的值是否发生变化
listl显示源码
infoinfo查看断点 / 线程等信息
ptypeptype查看变量类型
disassembledis查看汇编代码
set args设置程序启动命令行参数
show args查看设置的命令行参数

4. linux lsof命令详解

5. dos2unix命令

6. find命令

7. 比较文件的md5值 

    Liunx: md5sum

    Windows: CertUtil -hashfile <path to file> MD5

                    Depending on the size of the file it may take a few seconds to run the calculation but if successful the MD5 hash will be displayed.

                    It is also possible to generate checksums for other hash algorithms by replacing the MD5 parameter used above with any of the following(note

                    that if you don't specify a value then SHA1 is used by default):

                   *MD2  *MD4   *MD5   *SHA1   *SHA256    *SHA384     *SHA512

                   So, if all you need is to determine the checksum of a downloaded file then there really isn't any reason to install yet another utility to do so.

8.开启core,debug信息

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值