Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: Simplify pushing file/directory from Termux to Linux distribution #460

Open
CitronTRD opened this issue Oct 20, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@CitronTRD
Copy link

CitronTRD commented Oct 20, 2024

Feature description

Pushing files to Linux could be a little tedious:

cp -a /path/to/file-or-dir ~/../usr/var/lib/proot-distro/installed-rootfs/ubuntu/root/

To simplify the commands, would there be something like:

pd push /path/to/file-or-dir ubuntu

or maybe using an alias:

pd cp /path/to/file-or-dir ubuntu

Also, sometimes we simplily move the files instead of copying:

mv /path/to/file-or-dir ~/../usr/var/lib/proot-distro/installed-rootfs/ubuntu/root/

I noticed that the alias mv has already been used by rename, maybe there could be something like:

pd push --move /path/to/file-or-dir ubuntu

Thanks for consideration.

@CitronTRD CitronTRD added the enhancement New feature or request label Oct 20, 2024
@twaik
Copy link
Member

twaik commented Oct 20, 2024

Probably scp or docker syntax will fit here better, like

pd cp ubuntu:/path/to/file ~/file

@CitronTRD
Copy link
Author

Probably scp or docker syntax will fit here better, like

pd cp ubuntu:/path/to/file ~/file

Thx that's good. I'm not insisting on the syntax. It would be appreciated if the feature could be implemented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants