网站建设资讯

NEWS

网站建设资讯

安卓linux命令,android linux命令

Android Linux下有哪些常用命令

建议你买本书对照着学,或者在日常生活中使用linux慢慢学习使用我常用的命令:pwd打印当前工作目录cd切换目录ssh用于连接用vi编辑用cat打印|管道符sudo提升权限chmod更改权限apt-get、yum、pacman软件包管理器rpm、dpkg、tar-zxvf等用于安装或编译软件su切换用户shutdown-hnow关机其实有很多,关键在日常使用中边用边学祝你早日熟悉linux命令!

目前创新互联已为上千多家的企业提供了网站建设、域名、虚拟主机、网站托管、服务器租用、企业网站设计、南漳网站维护等服务,公司将坚持客户导向、应用为本的策略,正道将秉承"和谐、参与、激情"的文化,与客户和合作伙伴齐心协力一起成长,共同发展。

android 中linux 命令pm常见用法(安装卸载app)

27种用法格式 :

用法说明 :

1、 pm list packages : prints all packages, optionally only those whose package name contains the text in FILTER. Options:

例子:列出系统中所有packages

2、 pm list permission-groups : prints all known permission groups.

例子:

3、 pm list permissions : prints all known permissions, optionally only those in GROUP. Options:

例子:列出系统所有许可

4、 pm list instrumentation : use to list all test packages; optionally supply to list the test packages for a particular application. Options:

-f: list the .apk file for the test package.

5、 pm list features : prints all features of the system.

例子:列出所有手机特性

6、 pm list users : prints all users on the system.

例子:

7、 pm path : print the path to the .apk of the given PACKAGE.

例子:按包名查找apk文件所在路径

8、 pm dump : print system state associated with the given PACKAGE.

9、 pm install : installs a package to the system. Options:

例子:

10、 pm uninstall : removes a package from the system. Options:

-k: keep the data and cache directories around after package removal. 保留数据

例子:

11、 pm clear : deletes all data associated with a package..

例子:只删除数据

12、 pm enable, disable, disable-user, disable-until-used : these commands change the enabled state of a given package or component (written as "package/class").

13、 pm grant, revoke : these commands either grant or revoke permissions to applications. Only optional permissions the application has declared can be granted or revoked.

14、 pm get-install-location : returns the current install location.

15、 pm set-install-location : changes the default install location.

NOTE: this is only intended for debugging; using this can cause applications to break and other undersireable behavior.

16、 pm trim-caches : trim cache files to reach the given free space.

17、 pm create-user : create a new user with the given USER_NAME, printing the new user identifier of the user. 创建新用户

18、 pm remove-user : remove the user with the given USER_IDENTIFIER, deleting all data associated with that user 。 按用户ID删除用户

安卓Linux环境下的dd命令使用总结

dd :用指定大小的块拷贝一个文件,并在拷贝的同时进行指定的转换。

注意:指定数字的地方若以下列字符结尾,则乘以相应的数字: b=512 ; c=1 ; k=1024 ; w=2

参数注释:

4、备份与恢复MBR

·备份文件开始的512个字节大小的MBR信息到指定文件:

#dd if=/system/xbin/busybox of=/data/local/tmp/bb count=1 bs=512

· count=1 指仅拷贝一个块; bs=512 指块大小为512个字节

·恢复:

#dd if=/data/local/tmp/bb of=/data/local/tmp/bbb

·将备份的MBR信息写到磁盘开始部分

/dev/null ,外号叫无底洞,你可以向它输出任何数据,它通吃,并且不会撑着!

/dev/zero ,是一个输入设备,你可你用它来初始化文件。该设备无穷尽地提供 0 ,可以使用任何你需要的数目——设备提供的要多的多。他可以用于向设备或文件写入字符串 0 。

/dev/null ——它是空设备,也称为位桶( bit bucket )。任何写入它的输出都会被抛弃。如果不想让消息以标准输出显示或写入文件,那么可以将消息重定向到位桶。


本文标题:安卓linux命令,android linux命令
分享链接:http://cdweb.net/article/hdcdpi.html