# Useful Command **Repository Path**: tongwanglin/Useful-Command ## Basic Information - **Project Name**: Useful Command - **Description**: 常用的命令行 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2014-11-19 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #常用的命令 自己平时一些需要用到的命令行 这里做一个备份 #####查看apk的信息(包名等) aapt dump badging [apk_file_path] #####反编译classes.dex dex2jar.sh [classes.dex_file_path] #####解压apk后查看签名 keytool -printcert -file [CERT.RSA_file_path] #####查看keystore签名 keytool -list -v -keystore [keystore_file_path] -storepass [keystore_password] #####重置Mac OS X LaunchPad defaults write com.apple.dock ResetLaunchPad -bool true killall Dock #####java服务端启动jetty并指定端口号的脚本 cd [project_dir_path] nohup mvn jetty:run -Djetty.port=[port] > [log.log_file_path] & PS:需要将log文件名追加一个时间戳可以这么写:xxx-`date '+%Y%m%d%H%M%S'`.log #####nodejs启动脚本 forever stop ./bin/www forever start -o ./logs/log-$`date +%Y%m%d%H%M%S`.log ./bin/www #####nodejs webot debug webot send --token token --des http网关 --user 用户openid --host hostName webot send --token steven --des http://localhost:3000/wechat --user stevenopenidistest --host testHost #####从ssh服务器上拷贝文件 scp -r root@ip:/a/javaapps/logs ../Desktop/logs/ #####git remote查看与修改 git remote -v git remote set-url origin [url]