Android 终端操作

  • pwd,打印当前目录
  • ls:List information about the FILEs (the current directory by default)
    • -a/--all
    • -d/--directory
  • dir -a
  • 进入如camera的目录后运行dir、ls会卡住(可以ctrl+c退出)。
  • ls、dir经常会遇到cannot open directory '.': Permission denied
    • 可以直接指定cd /storage/emulated/0,绕开无法遍历的文件夹、目录。
  • ln,创建软硬链接。
    • ln -s/-symbolic,创建符号链接(默认为硬链接)。
    • /storage/emulated/0/dcim下尝试,报错ln: failed to create hard/symbolic link '..' => '..': Operation not permitted
  • 与ln类似的symlink命令不存在(No command symlink found)。
  • 在任何位置,可cd /storage/emulated/0/dcim
原文地址:https://www.cnblogs.com/RobertL/p/14664725.html