Linux command logging

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.