Linux 点滴命令笔记

Samba 没有权限访问
root@ubuntu:/# chmod 777 /home/dw
[dw]
path = /home/dw
comment = dw
;browseable = yes
public = yes
writable = yes

Git教程
回退版本
root@ubuntu:/home/dw/work/ML16# git reset --hard b264f62fa7f097153409439a21e56464d029c1bb
拉取代码
root@ubuntu:/home/dw/work/ML16# git pull origin master
代码提交
git commit -m “”
dw@ubuntu:~/project/msm8953-spf-2-0$ git push origin S600C
查看分支
dw@ubuntu:~/product/J1$ git branch
切换分支

dw@ubuntu:~/project/msm8953-spf-2-0--2/msm8953-spf-2-0$ git checkout WZF-TL53-001

第一次Git clone 代码后,输入命令 Git status 会出现很多文件,
解决方法: old mode
git config --global core.filemode falsegit config core.filemode false
撤销修改
命令git checkout -- readme.txt意思就是,把readme.txt文件在工作区的修改全部撤销

切换jdk

dw@ubuntu:~/work/R310/LINUX/android$ sudo update-alternatives --config javac
dw@ubuntu:~/work/R310/LINUX/android$ sudo update-alternatives --config javap
dw@ubuntu:~/work/R310/LINUX/android$ sudo update-alternatives --config javadoc


烧录全部

fastboot flash aboot emmc_appsboot.mbn
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash persist persist.img
fastboot flash userdata userdata.img
fastboot flash cache cache.img
fastboot flash system system.img
fastboot flash mdtp mdtp.img

查看磁盘大小
df -h
adb 命令查看一个txt文件的修改日期
ls -all


//备份
dw@ubuntu:~/project/msm8953-spf-2-0$ cp device/qcom/common/base.mk device/qcom/common/base.mk.bak

为多个文件生成补丁
$ diff -uprN linux-2.6.28.8.orig/net/sunrpc/ linux-2.6.28.8/net/sunrpc/
dw@ubuntu:~/project/msm8909_4.4/packages/apps$ diff -uprN Settings Settings_newBak>sett.patch


出现以下问题
C:\Users\Administrator>adb remount
remount of /system failed: Read-only file system
remount failed
输入 adb disable-verity

Beyong Compare 4 过了30天试用期
删除C:\Users\Administrator\AppData\Roaming\Scooter Software






阅读更多

没有更多推荐了,返回首页