您的位置:首页 > 运维架构 > Linux

常用Linux或者Android命令

2015-05-05 09:01 197 查看
删除SVN文件夹中所有文件,保留SVN文件夹

rm `find . ! \( -name '.svn' -prune \) -and ! \( -type d \)`

拷贝目录到另外一个目录并更改目录名称

cp -a -T ~/tmp/AE14/AE14/source/local_src/r1k-monitor-applications/ responder-source/

启动Android网络调试

Connect device via USB and make sure debugging is working.

adb tcpip 5555

adb connect 10.0.0.2:5555

(replace with device's IP address)

Disconnect USB and proceed with wireless debugging.

adb usb to switch back when done.

映射蓝牙设备到虚拟机

1.Stop bluetooth device discovery service in windows

2. In VM Ubuntu

sudo hciconfig hci0 reset before each test

3. Disable all bluetooth services when bluetooth device already attached to VM

使用gcov

# gcc -fprofile-arcs -ftest-coverage -o test test.c

/svn/CAM_PERFORCE/trunk/CAM/buildme/MCU/BluetoothManager/Source$ gcov -o ./CMakeFiles/BluetoothManager.dir/ ./CMakeFiles/BluetoothManager.dir/*.gcda

windows命令设置网络

netsh interface ip set address "网络连接名" static 192.168.0.88 255.255.255.0 192.168.0.1 1

netsh interface ip set dns "网络连接名" static 202.216.224.66

netsh interface ip add dns "网络连接名" 202.216.224.67

如果要改成动态分配ip和自动获得dns使用下面命令。

netsh interface ip set address "网络连接名" dhcp

netsh interface ip set dns "网络连接名" dhcp

Ubuntu安装virtualbox插件

VBoxManage internalcommands sethduuid E:\VirtualBox\Win7_Ultimate_SP1_1\Win7_Ultimate_SP1.vdi

install virtualbox addon:

sudo apt-get install build-essential module-assistant

sudo m-a prepare

lsmod | grep -io vboxguest | xargs modinfo | grep -iw version

sudo ln -s /opt/VBoxGuestAdditions-4.3.10/lib/VBoxGuestAdditions \

/usr/lib/VBoxGuestAdditions
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: