Common commands for ADB common commands +linux

Source: Internet
Author: User

1. Displays all the emulators currently running:
ADB devices

2. Install the application:
adb install-r 123.apk

3. Get the files in the emulator:
adb pull <remote> <local>

4. Write the file to the emulator:
adb push <local> <remote>

5. Enter the shell mode of the simulator:
adb Shell

6. Uninstall APK Package:
adb shell
CD Data/app
RM 123.apk
Exit
ADB uninstall 123.apk
ADB install-r 123.apk

7. View the ADB command Help information:
adb Help
8. Remove the System application:
adb remount (re-mount the system partition so that the system partition is re-writable).
ADB shell
CD System/app
RM 123.apk

9. Get Administrator privileges:
adb root

10. Copy files:
to copy a file or directory to a device:
adb push <source> <destination></destination></source>
such as:adb push update.zip/sdcard/
copy a file or directory from your device:
adb pull <source> <destination></destination></source>
such as:adb pull/sdcard/update.zip.

11. Obtain a list of instances of the currently running device and the status of each instance:
ADB devices

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

# CD system/sd/data //Enter the specified folder in the system
           CD: Returns to the previous level of the directory
           Cd.. /.. Returns the two-level directory
           CD enters the personal home directory  
       &NBSP;&NBSP;&NBSP;&NBSP;CD ~user1 enters the personal home directory  
  &NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;CD- returns the directory where it was last


#LS //list displays the current folder contents
#Rm-r xxx //delete the folder with the name xxx and all the files inside it
#RM xxx //delete file xxx
#rmdir xxx //delete xxx folder

#mkdir-p xxx //recursively create folder for XXX
#CP [Options] [source file] [destination file ],-d copy a shortcut/-r copy a directory/-i to an existing file, ask whether to overwrite
#MV [option] [source file] [destination file ],-u The destination file will not take effect if the source file is newer than the target file will move/-i to an existing file, ask whether to overwrite;


#Cat Common Command, which is to view the contents of a file and display it on the screen.
More is also used to view the contents of a file. When the contents of the file too much, a screen can not occupy, use more when a screen after reading press the space bar to continue to see the next screen. After reading all the content, you will exit. If you want to quit early, just press the Q key.
Less is the same as more, but better than the more good can be turned upside down. The SPACEBAR can also be paged, while pressing the "J" key can be moved downward (click to move down one line) and press "K" key to move up. When you use more and less to view a file, you can click the "/" key and then enter a word carriage return so that you can find the word. If you have more than one word, you can press the "N" key to display the next. Alternatively, you can press "/" instead of "?" In the same word as word, the only difference is that "/" is searched down the current line, and "?" is to search up the current line.

Common commands for ADB common commands +linux

Related Article

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.