zoukankan      html  css  js  c++  java
  • 命令相关

    存档:

    =======================================
                                             R E P O
    =======================================

    单个project下载:

    repo sync -qcj8 [project name]

    git clone ssh://hongguangkim@163.com:[port]/[project name] -b [branch_name]

    ----------------------------------------------------------------------------

    Registering Public key:

      1) ssh-keygen -t rsa

      2) cat ~/.ssh/id_rsa.pub (copy contents)

      3) log on to gerrit site

    Public Key Check
     ssh -p [port] [Gerrit site]

    ----------------------------------------------------------------------------

    repo init  。。。-b 。。。-m。。。

    repo sync --no-tags -qcj8

    repo start [branchName] --all

    ----------------------------------------------------------------------------

    cd android

    source ./build/envsetup.sh

    lunch [product]-userdebug

    m -j4

    ----------------------------------------------------------------------------

    1. modem build【这不是命令】

    2. make image【这不是命令】

    =======================================
                                             S H E L L
    =======================================

    搜索mk文件同时查找内容忽略.git等目录

    find ./ -name "*.mk"|xargs grep -rn -i "text"

    grep -rn -i "text" --exclude-dir=.git  --exclude-dir=out*

    当前目录中搜索文件

    find . -maxdepth 1 -name *.mk

    排除.git,out*目录>>追加

    find ./ -path './out*'  -prune -o -type f  -name '*.mk' -print > find_log.txt

    查看1小时内修改的文件

    find ./ -type f -mtime -1

    查看操作记录

    history

    =======================================
                                             A D B
    =======================================

    内存分区查看

    adb shell df

    某一个进程内存使用情况

    dumpsys meminfo <PID> or <package_name>

    查看cpu使用情况

    top -m 10 -s cpu(-m显示最大数量,-s 按指定行排序)

    查看已安装程序列表

    adb shell pm list package adb shell dumpsys package

    启动Activity

    adb shell am start -n 包名/包名+类名  

    获取设备的ID和序列号

    adb get-product adb get-serialno

    显示当前进程内存使用情况

    adb shell free

    显示进程的自身标识信息

    adb shell ps

  • 相关阅读:
    jsp分页原理
    解决PowerDesigner 错误:Invalid repository user or password!
    JSP禁用缓存常用方法
    PowerDesigner 15破解补丁
    PowerDesigner建立与数据库的连接,以便生成数据库和从数据库生成到PD中。[Oracle 10G版]
    二十三、Intent
    axis2+spring集成
    ASP.NET获取MS SQL Server安装实例
    显示非站点目录图片
    行为的抽象即是接口(Interface)
  • 原文地址:https://www.cnblogs.com/hongguang-kim/p/5164317.html
Copyright © 2011-2022 走看看