Termux应用程序是终端仿真器。如果我在那里创建文件或文件夹,然后使用另一个文件资源管理器应用程序来浏览我的设备,在哪里可以找到这些文件?
Termux应用程序是终端仿真器。如果我在那里创建文件或文件夹,然后使用另一个文件资源管理器应用程序来浏览我的设备,在哪里可以找到这些文件?
The Termux app is a terminal emulator. If I create a file or a folder there, and then use another file explorer app to browse my device, where can I find these files?
您不需要root您的设备。您需要做的就是在非生根(或rooted)设备上运行以下命令,以允许Termux访问现有目录,特别是 Abcdefghijklmnabcdefghijklmn0
:
termux-setup-storage
这在termux中创建一个新目录, ~/storage
,它包含Simlinks到 abcdefghijklmn3
,可以由标准GUI文件管理器访问。
在运行命令后,您需要在出现提示时授予文件访问。
请参阅这里。
You don't need to root your device. All you need to do is run the following command on a non-rooted (or rooted) device to allow termux to access your existing directories, particularly /storage/emulated/0
:
termux-setup-storage
this creates a new directory in termux, ~/storage
, which contains simlinks to /storage/emulated/0
and can be accessed by a standard gui file manager.
You will need to grant file access to termux when prompted after you run the command.
See here.
默认目录是: /data/data/com.termux/files/home
。
由于Termux支持Bash命令,用户可以运行 pwd
以打印当前工作目录。
注意: pwd
是 p rint w orking d Inercortory。
参考: unix.se - 如何获取当前工作目录?
The default directory is: /data/data/com.termux/files/home
.
Since Termux supports bash commands, user can run pwd
to print current working directory.
Note: pwd
is an acronym of print working directory.
Reference: Unix.SE - How to get current working directory?
提供了您不想root手机,可以更改Termux的权限(设置 - >> instumux->权限)并启用存储权限。
以这种方式,您可以访问手机和SDCard存储,您可以在应用程序中使用它作为超级用户(MV,LS和其他命令工作)。
所以,您可以将所需的文件移动或复制到内部存储中。
Provided that you don't want to root your phone, it is possible to change permission for Termux (Settings->Applications->Termux->Permissions) and enable the Storage permission.
This way you are granted access to phone and sdcard storage and you can use it as superuser (mv, ls and other commands work as intended) in the application.
So, you can move or copy the files you need into internal storage.
您可以查询 $HOME
变量以查找"默认文件夹" ,无论您使用的终端应用程序如何:
$ echo $HOME /data/data/com.termux/files/home
You can query the $HOME
variable to find the "default folder" regardless of the terminal app you're using:
$ echo $HOME /data/data/com.termux/files/home
您可以在数据/数据/ com.termux /文件/ home上触摸它。这是Termux的默认主目录。在手机上提到上面提到的,它是不可能找到您在Termux Memic Dir上创建的文件,因为它不会植根于任何设备。它的工作方式是一种服务器。在数据/数据/ com.texmux / files / home上,这是一个是termux的默认主目录,您可以浏览文件,创建文件,操作您使用文件管理器的相同排序
You can touch it on data/data/com.termux/files/home. That's the default main directory of termux. It's impossible to find the file that you've created on termux main dir as I mentioned above on your phone because its not rooted on any device. It works like sort of a server. By there on data/data/com.texmux/files/home, which is the default main directory of termux, you can already browse files, create file, manipulating it same sort you're using your file manager
© 2022 it.wenda123.org All Rights Reserved. 问答之家 版权所有