Can i run linux commands on android
Connect and share knowledge within a single location that is structured and easy to search. But I'm traveling all this summer, and I'm very interested in doing some programming while I'm on the run. So you are running Linux, but you should consider it as though you are running under a different distribution than say Debian or Redhat.
There's a different set of standard libraries and some files are in different locations. At least on my Droid ext2 support is not built-in by default. There is also no init or cron. Important ones you may miss on standard ROMs are cifs , ext2 , tun , and others.
If you have the source you can cross-compile whatever utilities you need, but read on. You have enough to get by until you Debian has supported ARM for a while. It takes some work, but if you can root your phone, and have a sizeable enough SD card, this is the way to go. This is close to a standard Linux system and under it you can install and run Ruby. Ruby has not been ported to Android, though you might want to check out Ruboto.
For simple editing there are a few options, but I don't believe emacs has been ported either, there are no Market results anyways. Rooting might provide you the ability to run Linux on your phone, but Android is not Linux. Its kernel is largely based on the Linux kernel but that's about it. I'm not sure to what extent native command line apps would need to be rewriten, though of course they would need to be recompiled. The best answers are voted up and rise to the top.
Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams?
Learn more. Can I use Linux commands on Android? Asked 4 years, 10 months ago. Active 4 years, 10 months ago. Viewed 1k times. Improve this question. Thanks in advance. Improve this question. AndroidDev AndroidDev 1 1 gold badge 2 2 silver badges 7 7 bronze badges. Useful link in your search: stackoverflow. I had checked the link but i hasn't found any useful data for my search — AndroidDev.
Add a comment. Active Oldest Votes. Improve this answer. I hasn' got what you want to say exactly — AndroidDev. What I'm saying is that executing a "cd" command is not going to have any effect on you. The reason for this is Runtime I've done a little Googling to see if there is a Java chdir type function and I haven't found much of use.
One possibility an ugly one, much more difficult than it is worth is to create a native function which calls the C chdir function. You would probably be much better off though just appending the full path to file names you refer to -- then it would not matter what your current directory is.
Show 4 more comments. You can optimize your Android device for the Linux features like powering the LAMP server, troubleshooting tool, use your device as a portable network, and pen-testing device. Linux gives you good performance and good UI so that you can do anything you want to do. In case you are looking for a way to install and run Linux on Android devices, there are actually several options for it.
If you want to run any application that is not available on Android, you can go for Linux because it is a good way to access any application. Currently, Android devices offer an ideal system so you can easily run Linux on Android devices. In case you are looking to improve multitasking, you should go for the recent version of Android, but if you want to enhance the feature quality and performance, you should go for Linux.
Linux offers more app development features, such as working in a real desktop environment and advanced image editing. Linux can be installed by rooting your device like tablets, TV boxes, or phones.
You may also easily run the Linux desktop e without rooting it. So you have two choices to run Linux on Android devices, and it is totally up to you. This is mostly the case in the Android environment.
0コメント