T
Termux2mo ago
koomball

how to move files into termux?

Hello I am trying to move a file into the home directory of termux but haven't been able to find any way to do so. Closest I got was by tring to move it within ACode which gives this error.
Solution:
mv ~/storage/shared/downloads/thatfile ~/web-service-gin/
Jump to solution
22 Replies
koomball
koomball2mo ago
Android 11
Dr. Jaska
Dr. Jaska2mo ago
@koomball move files into shared storage by however and then use Termux to copy/move those files into its files
koomball
koomball2mo ago
Where's the shared storage located? I have run the command to make it and it says it exists but haven't been able to find it
Dr. Jaska
Dr. Jaska2mo ago
~/storage/shared
koomball
koomball2mo ago
Dr. Jaska
Dr. Jaska2mo ago
That place. All of those are directories which are in it.
koomball
koomball2mo ago
so how can I move the file from downloads to home/web-service-gin
Dr. Jaska
Dr. Jaska2mo ago
termux-setup-storage
koomball
koomball2mo ago
I have run that command already
Solution
Dr. Jaska
Dr. Jaska2mo ago
mv ~/storage/shared/downloads/thatfile ~/web-service-gin/
Dr. Jaska
Dr. Jaska2mo ago
You may need to mkdir ~/web-service-gin first
koomball
koomball2mo ago
Is the shared stuff seperate? Moved the file its no longer in its original location but it also didn't go to the folder directed not sure where it is now lol
Dr. Jaska
Dr. Jaska2mo ago
I don't understand what you mean by separate. Android filesystem sandboxes applications' storage so that each one is separate and apps can only see into the shared storage with permission. It's still the same UNIX filesystem there. You didn't show how you moved it or what it was supposed to contain Looking at that more closely I don't understand why your netflix_titles.csv isn't in ~/gin-web-service
koomball
koomball2mo ago
That's what I'm saying That's why I asked if it's seperate as in is the shared storage a clone of home I wasn't sure and was the first idea I had to why it wasn't there.
Dr. Jaska
Dr. Jaska2mo ago
It's not in that csv dir either?
koomball
koomball2mo ago
nope Might have to find a different way to get the csv file then, just trying to learn go lol
Dr. Jaska
Dr. Jaska2mo ago
@koomball you're not in the dir where you moved it web service gin gin web service
koomball
koomball2mo ago
Ah I see now weird it didn't say that doesn't exist as it appears I made the same typo when I tried gin-web-service/csv Thank you aha odd gin-web-service doesn't even exist it just moved the file to nowhere :why: Welp I'll just re-download the file thank you again.
Dr. Jaska
Dr. Jaska2mo ago
It renamed the file into that dir The dir didn't exist and you didn't append /
koomball
koomball2mo ago
oh does it do that? I see
Dr. Jaska
Dr. Jaska2mo ago
So it moved the file to be ~/gin-web-service without a filetype suffix As long as you don't replace any existing files mv doesn't cause data loss when used like that
koomball
koomball2mo ago
Good to know I can use it for renaming thank you. Perfect got the file where it needs to be now