20121019 一些工具和linux命令的备忘记录

记性不好,有的东西记录在这里备查。

比较工具:meld diff串口工具:minicom 串口设置:minicom -s选中serial port setup选项进入,修改A – Serial Device的值为/dev/ttyS0,F – Hardware Flow Control的值为No然后保存即可。局域网通讯工具:iptuxsudo apt-get install iptux查看linux系统信息:uname -a查看内核/操作系统/cpu信息:head -n查看操作系统版本:cat /proc/cupinfo查看cpu信息:hostname

linux下不懂的命令,可以用man 查看,例如:man uname

git:安装: sudo apt-get install git下载代码: git clone git://10.30.0.34/proj/Dlna

几个常用svn命令:

svn checkout -r 2650 –username bao_jinyu –password 123456aA http://run-svn/project/cn/DTSTB

svn update -r 2000 –username bao_jinyu –password 123456aA http://run-svn/project/cn/DTSTB

svn add –username bao_jinyu –password 123456aA http://run-svn/project/cn/DTSTB

回收站:/home/bao/.local/share/Trash/files/板子上的一些命令:busybox ashmount -o remount /system /systemputty:账户:caoss 密码:123

通过putty以caoss登录到服务器的终端:ssh caoss@10.20.112.96

sudo ifconfig eth0 <ip> netmask <netmask> up

在终端添加网络功能:ssh -fND localhost:8080 sun_liuying@172.100.20.9

logcat -clogcat -v timehexdump -c /dev/bolck/sda1 //查看u盘中的文件系统df //查看磁盘空间mount -o remount /system /system//netcfg eth0 dhcpipaddrmore -s testfile //诸页显示more +20 testfile //从20行开始显示touch file //将文件时间改为当前时间touch file1 file2grep -rns “string” ./find ./ -name file find . -name filename | grep tagnetcfg eth0 dhcpifconfig eth0 <ip> netmask <netmask> <up or down>find ./ -cmin -20 //查找20分钟内修改的文件find ./ -ctime -2 //查找2天内修改的文件

find ./ -cnewer filebase //将比filebase更新的文件列出来测试端口使用情况:telnet 10.20.112.14 7933telnet 10.20.112.54 7838

adb connect 10.20.112.54adb rootadb remountadb shelladb -s ip:5555 remountadb -s ip:5555 install **.apkadb logcat -v time将板子上网络数据打包:tcpdump -p -vv -s 0 -w searchNotify.pcap

打包后,导入wireshark抓包工具,即可进行分析。

tcpdump工具可从网络上下载。

//ndk中可执行文件位置:(将其加入到PATH中)/home/bao/dlna/android-ndk-r6b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin使用类似下面的命令,快速找到出问题的接口函数:(其中,address是pc的值)arm-linux-androideabi-addr2line -C -f -e /home/bao/dlna/DLNA/libs/libctrlpt.so <address>arm-linux-androideabi-addr2line -C -f -e /home/bao/dlna/DLNA/libs/libctrlpt.so 00032264

tombstone exist in:/data/tomestones//data/system/dropbox/

梦想,并不奢侈,只要勇敢地迈出第一步。

20121019 一些工具和linux命令的备忘记录

相关文章:

你感兴趣的文章:

标签云: