The first day after today's work, but also always in the memory of the holiday, the previous use of some of the commands are always forgotten, hereby recorded:
1, check the current user's home directory $home
Echo $HOME
2. View current working directory
Psw
The PSW means print working directory
3, about the use of ADB push
The command line to push some files to the phone, because it is the first time to use this command, a lot of conditions.
The adbpush format is adbpush"local directory" remote directory,Adbpush is the command to pass files between the PC and ME(that is, the destination device).
Use an example to illustrate the areas to note:
PutFDisk ofJAVAIn the folderExampleIn the sub-file onlyAaa.txtAndBbb.docTwo files to addAaa.txtFilePushto the phoneSDCard ofTargetfolder,DocThe command line steps are as follows:
① adb shell
② CD mnt
③CD SDcard
④mkdir Target
⑤Exit
⑥ Adbpush f:\java\example\aaa.txt/mnt/sdcard/target/
if sd The card already has target folder, you do not need to ① to ⑤ step to create this folder, directly on the command line to enter the sixth step.
If you want to folder in Germany so file, i.e. aaa.txt and bbb.doc two files at a time Span style= "Font-family:times New roman,serif" >push to target , the command line is as follows:
⑥ adb push f:\java\example/mnt/sdcard/target/
Note that the "local directory" and "remote directory" must be separated by a space, "remote directory" must finally remember to add "/", otherwise the command will not be executed.
Linux command logging