你好,游客 登录 注册 搜索
背景:
阅读新闻

Android 基本文件操作命令

[日期:2012-07-11] 来源:Linux社区  作者:Linux [字体:大 中 小]

-----------其他 -----------

 

模拟器使用镜像sdcard

用SDK里的mksdcard工具来创建FAT32磁盘镜像并在模拟器启动时加载它。这样创建镜像:? mksdcard <size> <file>,

比如我要创建一个64M的SD卡模拟文件,文件路径是在D:\workspace\sdcard.img

             mksdcard  64000000 D:\workspace\sdcard.img

Emulator  –sdcard  D:\workspace\sdcard.img

或者在eclipse的run菜单的open run dialog对话框中配置启动参数。

 

#top

Usage: top [ -m max_procs ] [ -n iterations ] [ -d delay ] [ -ssort_column ] [ -t ] [ -h ]

    -m num  Maximum number of processes to display.

    -n num  Updates to show before exiting.

    -d num  Seconds to wait between updates.

    -s col  Column to sort by (cpu,vss,rss,thr).

    -t      Show threads instead of processes.

    -h      Display this help screen.

   

   ********* simple selection*********  ********* selection by list*********

-A all processes                     -C by command name

-N negate selection                  -G by real group ID (supports names)

-a all w/ tty except session leaders -U by real user ID (supports names)

-d all except session leaders        -g by session OR by effective group name

-e all processes                     -p by process ID

T  all processes on thisterminal     -s processes in the sessionsgiven

a  all w/ tty, including otherusers  -t by tty

g  OBSOLETE -- DO NOT USE             -u by effective user ID (supportsnames)

r  only running processes             U processes for specified users

x  processes w/o controllingttys     t  by tty

*********** output format ********** *********** long options ***********

-o,o user-defined  -f full            --Group --User --pid --cols --ppid

-j,j job control   s  signal          --group --user --sid --rows --info

-O,O preloaded -o  v  virtual memory  --cumulative --format --deselect

-l,l long          u  user-oriented   --sort --tty --forest --version

-F   extra full    X registers       --heading--no-heading --context

                    ********* miscoptions *********

-V,V  show version      L list format codes  f  ASCII art forest

-m,m,-L,-T,H  threads   S children in sum    -y change -lformat

-M,Z  security data     c true command name  -c schedulingclass

-w,w  wide output       n numeric WCHAN,UID  -H processhierarchy

 

 

netstat -ano 查看网络连状态

 显示协议统计信息和当前 TCP/IP 网络连接。

 

NETSTAT [-a] [-b] [-e] [-n] [-o] [-p proto] [-r] [-s] [-v] [interval]

 

  -a            显示所有连接和监听端口。

  -b            显示包含于创建每个连接或监听端口的

                可执行组件。在某些情况下已知可执行组件

                拥有多个独立组件,并且在这些情况下

                包含于创建连接或监听端口的组件序列

                被显示。这种情况下,可执行组件名

                在底部的 [] 中,顶部是其调用的组件,

                等等,直到 TCP/IP 部分。注意此选项

                可能需要很长时间,如果没有足够权限

                可能失败。

  -e            显示以太网统计信息。此选项可以与 -s

                选项组合使用。

  -n            以数字形式显示地址和端口号。

  -o            显示与每个连接相关的所属进程 ID。

  -p proto      显示proto 指定的协议的连接;proto 可以是

                下列协议之一: TCP、UDP、TCPv6 或 UDPv6。

                如果与 -s 选项一起使用以显示按协议统计信息,proto 可以是下列协议之一:

                IP、IPv6、ICMP、ICMPv6、TCP、TCPv6、UDP 或 UDPv6。

  -r            显示路由表。

  -s            显示按协议统计信息。默认地,显示 IP、

                IPv6、ICMP、ICMPv6、TCP、TCPv6、UDP 和 UDPv6 的统计信息;

                -p 选项用于指定默认情况的子集。

  -v            与-b 选项一起使用时将显示包含于

                为所有可执行组件创建连接或监听端口的

                组件。

  interval      重新显示选定统计信息,每次显示之间

                暂停时间间隔(以秒计)。按 CTRL+C 停止重新

                显示统计信息。如果省略,netstat 显示当前

                配置信息(只显示一次)

linux
相关资讯       Android命令 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款