• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Some expert can explain this?

regressist

Newbie
Hi all,
I do not understand what is this, trying to execute file named 4 on a tablet Toshiba AT-100 (Android 4.4) within Terminal, file has to be moved in the home of the Terminal app but does not cp or mv. Note I have done this without a glitch on various phones NOT rooted, I do not understand why not on the Toshiba AT-100: The file is in /sdcard

>ls /sdcard/4 and the file 4 is there
>ls -al
-rwxrwxr-x root sdcard_rw 95550 2021-11-21 17:00 4
>cd [I move to the dir /data/data/jackpal.androidterm/app_HOME (this should allow to change the execution rights without being root)]

>cp /sdcard/4 .
/system/bin/sh: cp: not found
[is it unable to find the command cp or what?]
>mv /sdcard/4 .
failed on '/sdcard/4' - Cross-device link

>cd /sdcard
>./4
/system/bin/sh: ./4: cannot execute - Permission denied

Is anybody able to understand? Thanks in advance to whomever will explain
 
The owner is root, but as owner, group and everyone else all have the x (execute) permission, you should be able to execute the file.
Are you sure that it is an executable file. And both the CP and MV commands need both the source and destinations to be specified.
 
The owner is root, but as owner, group and everyone else all have the x (execute) permission, you should be able to execute the file.
Are you sure that it is an executable file. And both the CP and MV commands need both the source and destinations to be specified.

Yes I am sure, they run on the phone. cp and move have the dot as destination, again the same commands work on phone. I have also tried with another name, but I get the same error. Is it possible that the system does not find the commands cp and mv?
 
That's possible, try running this command in a terminal -
compgen -c

it should list all commands available to you. If that gives a 'command not found' or similar error, you should install busybox (It does not need root).
 
That's possible, try running this command in a terminal -
compgen -c

it should list all commands available to you. If that gives a 'command not found' or similar error, you should install busybox (It does not need root).

Thanks a lot for your reply. Yes compgen gives compgen not found. I looked for Busybox, there are many, I installed this because it said in the play store no root
https://play.google.com/store/apps/details?id=com.jrummy.busybox.installer&hl=en
But when I started busy box it said Not rooted and must be to work properly.
I switched off the tablet and started it again, but when I opened the terminal compgen gave the same message. I have uninstalled this tool
Tried also
https://play.google.com/store/apps/details?id=burrows.apps.busybox&hl=en
and
https://play.google.com/store/apps/details?id=busybox.lite&hl=en
They do not work...
Please advise and thanks again
 
Last edited:
Back
Top Bottom