CINXE.COM
FAQ - Termux Wiki
<!DOCTYPE html> <html class="client-nojs" lang="en" dir="ltr"> <head> <meta charset="UTF-8"/> <title>FAQ - Termux Wiki</title> <script>document.documentElement.className="client-js";RLCONF={"wgBreakFrames":false,"wgSeparatorTransformTable":["",""],"wgDigitTransformTable":["",""],"wgDefaultDateFormat":"dmy","wgMonthNames":["","January","February","March","April","May","June","July","August","September","October","November","December"],"wgRequestId":"beb78a91eb66cfddc8e6f5e9","wgCSPNonce":false,"wgCanonicalNamespace":"","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":0,"wgPageName":"FAQ","wgTitle":"FAQ","wgCurRevisionId":6537,"wgRevisionId":6537,"wgArticleId":41,"wgIsArticle":true,"wgIsRedirect":false,"wgAction":"view","wgUserName":null,"wgUserGroups":["*"],"wgCategories":[],"wgPageContentLanguage":"en","wgPageContentModel":"wikitext","wgRelevantPageName":"FAQ","wgRelevantArticleId":41,"wgIsProbablyEditable":false,"wgRelevantPageIsProbablyEditable":false,"wgRestrictionEdit":[],"wgRestrictionMove":[]};RLSTATE={"site.styles":"ready","user.styles":"ready","user":"ready","user.options":"loading", "skins.tweeki.mediawiki.styles":"ready","skins.tweeki.awesome.styles":"ready","skins.tweeki.styles":"ready","skins.tweeki.externallinks.styles":"ready"};RLPAGEMODULES=["site","mediawiki.page.ready","mediawiki.toc","skins.tweeki.messages","skins.tweeki.scripts"];</script> <script>(RLQ=window.RLQ||[]).push(function(){mw.loader.implement("user.options@12s5i",function($,jQuery,require,module){mw.user.tokens.set({"patrolToken":"+\\","watchToken":"+\\","csrfToken":"+\\"});});});</script> <link rel="stylesheet" href="/load.php?lang=en&modules=skins.tweeki.awesome.styles%7Cskins.tweeki.externallinks.styles%7Cskins.tweeki.mediawiki.styles%7Cskins.tweeki.styles&only=styles&skin=tweeki"/> <script async="" src="/load.php?lang=en&modules=startup&only=scripts&raw=1&skin=tweeki"></script> <meta name="ResourceLoaderDynamicStyles" content=""/> <link rel="stylesheet" href="/load.php?lang=en&modules=site.styles&only=styles&skin=tweeki"/> <meta name="generator" content="MediaWiki 1.40.1"/> <meta name="robots" content="max-image-preview:standard"/> <meta name="format-detection" content="telephone=no"/> <meta name="viewport" content="width=1000"/> <meta name="viewport" content="width=device-width, initial-scale=1"/> <link rel="icon" href="/favicon.ico"/> <link rel="search" type="application/opensearchdescription+xml" href="/opensearch_desc.php" title="Termux Wiki (en)"/> <link rel="EditURI" type="application/rsd+xml" href="https://wiki.termux.com/api.php?action=rsd"/> <link rel="license" href="https://creativecommons.org/licenses/by/4.0/"/> <link rel="alternate" type="application/atom+xml" title="Termux Wiki Atom feed" href="/index.php?title=Special:RecentChanges&feed=atom"/> </head> <body class="mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-0 ns-subject page-FAQ rootpage-FAQ skin-tweeki action-view tweeki-animateLayout tweeki-non-advanced tweeki-user-anon"> <header> <nav id="mw-navigation" class="navbar navbar-default navbar-fixed-top navbar-expand-lg fixed-top navbar-light bg-light"> <div class="container"> <a href="/wiki/Main_Page" class="navbar-brand">Termux Wiki</a> <button type="button" class="navbar-toggler" data-toggle="collapse" data-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation"> <span class="navbar-toggler-icon"></span> </button> <div id="navbar" class="collapse navbar-collapse"> <ul class="navbar-nav mr-auto"> </ul> <ul class="navbar-nav"> </ul> <form class="navbar-form navbar-right" action="/index.php" id="searchform"> <div class="form-inline"><input type="search" name="search" placeholder="Search Termux Wiki" aria-label="Search Termux Wiki" autocapitalize="sentences" title="Search Termux Wiki [f]" accesskey="f" id="searchInput" class="search-query form-control"/><input class="searchButton btn d-none" type="submit" name="go" title="Go to a page with this exact name if it exists" id="mw-searchButton" value="Go"/> </div> </form><ul class="nav navbar-nav navbar-right"><li class="nav-item dropdown"><a href="#" id="n-wiki" class="nav-link dropdown-toggle" data-toggle="dropdown" aria-haspopup="true">Wiki</a><div class="dropdown-menu dropdown-menu-right"><a href="/wiki/Special:RecentChanges" id="n-recentchanges-url" tabindex="-1" class="dropdown-item">Recent changes</a><a href="/wiki/Termux_Wiki:Content_Guidelines" id="n-termux_wiki%3Acontent_guidelines" tabindex="-1" class="dropdown-item">Content Guidelines</a><a href="/wiki/Special:UserLogin" id="n-special%3Auserlogin" tabindex="-1" class="dropdown-item">Login or Create Account</a></div></li> </ul> </div> </div> </nav> </header> <main role="main"> <div id="mw-page-base"></div> <div id="mw-head-base"></div> <a id="top"></a> <div id="contentwrapper" class="user-loggedout not-editable container with-navbar with-navbar-fixed"> <div class="row"> <div id="maincontentwrapper" class="col-md-9"> <!-- content --> <main role="main"> <div class="mw-body" id="content"> <div id="mw-js-message" style="display:none;"></div> <h1 id="firstHeading" class="firstHeading page-header" lang="en"><span dir="auto"><span class="mw-page-title-main">FAQ</span></span></h1> <!-- bodyContent --> <div id="bodyContent"> <div id="siteSub">From Termux Wiki</div> <div id="contentSub"><div id="mw-content-subtitle"></div></div> <div id="jump-to-nav" class="mw-jump"> Jump to: <a href="#mw-navigation">navigation</a>, <a href="#p-search">search</a> </div> <div id="mw-content-text" class="mw-body-content mw-content-ltr" lang="en" dir="ltr"><div class="mw-parser-output"><p><br /> It is strongly suggested to start from these pages because FAQ does not provide tips and tricks about Termux usage. </p> <ul><li><a href="/wiki/User_Interface" title="User Interface">User Interface</a> - description of available buttons, menus, etc.</li> <li><a href="/wiki/Package_Management" title="Package Management">Package Management</a> - how to install, remove and upgrade packages.</li> <li><a href="/wiki/Touch_Keyboard" title="Touch Keyboard">Touch Keyboard</a> - Touch keyboard shortcuts and extra keys layout configuration.</li> <li><a href="/wiki/PRoot" title="PRoot">PRoot</a> - Running Linux distributions inside Termux (userspace chroot mode)</li> <li><a href="/wiki/Recover_a_broken_environment" title="Recover a broken environment">Recover a broken environment</a> - Fixing broken Termux installations.</li> <li><a href="/wiki/Special:AllPages" title="Special:AllPages">Special:AllPages</a> - List of the all available Wiki pages.</li></ul> <p><br /> You may contribute to Termux project by making pull requests in our <a rel="nofollow" class="external text" href="https://github.com/termux">Github repositories</a> or by improving Termux Wiki. </p> <div id="toc" class="toc" role="navigation" aria-labelledby="mw-toc-heading"><input type="checkbox" role="button" id="toctogglecheckbox" class="toctogglecheckbox" style="display:none" /><div class="toctitle" lang="en" dir="ltr"><h2 id="mw-toc-heading">Contents</h2><span class="toctogglespan"><label class="toctogglelabel" for="toctogglecheckbox"></label></span></div> <ul> <li class="toclevel-1 tocsection-1"><a href="#What_is_Termux"><span class="tocnumber">1</span> <span class="toctext">What is Termux</span></a></li> <li class="toclevel-1 tocsection-2"><a href="#Is_Termux_an_emulator"><span class="tocnumber">2</span> <span class="toctext">Is Termux an emulator</span></a></li> <li class="toclevel-1 tocsection-3"><a href="#What_are_system_requirements"><span class="tocnumber">3</span> <span class="toctext">What are system requirements</span></a></li> <li class="toclevel-1 tocsection-4"><a href="#Will_Termux_work_on_Android_11"><span class="tocnumber">4</span> <span class="toctext">Will Termux work on Android 11</span></a></li> <li class="toclevel-1 tocsection-5"><a href="#Why_does_htop_or_netstat_not_work_on_my_device"><span class="tocnumber">5</span> <span class="toctext">Why does htop or netstat not work on my device</span></a></li> <li class="toclevel-1 tocsection-6"><a href="#Why_does_ps_not_show_Android_processes"><span class="tocnumber">6</span> <span class="toctext">Why does ps not show Android processes</span></a></li> <li class="toclevel-1 tocsection-7"><a href="#Why_my_Termux_is_32bit_while_CPU_supports_64bit"><span class="tocnumber">7</span> <span class="toctext">Why my Termux is 32bit while CPU supports 64bit</span></a></li> <li class="toclevel-1 tocsection-8"><a href="#Can_Termux_be_installed_on_the_external_storage"><span class="tocnumber">8</span> <span class="toctext">Can Termux be installed on the external storage</span></a></li> <li class="toclevel-1 tocsection-9"><a href="#Any_tips_for_using_Termux"><span class="tocnumber">9</span> <span class="toctext">Any tips for using Termux</span></a></li> <li class="toclevel-1 tocsection-10"><a href="#What_do_you_use_Termux_for"><span class="tocnumber">10</span> <span class="toctext">What do you use Termux for</span></a></li> <li class="toclevel-1 tocsection-11"><a href="#Are_there_any_Termux_tutorials"><span class="tocnumber">11</span> <span class="toctext">Are there any Termux tutorials</span></a></li> <li class="toclevel-1 tocsection-12"><a href="#What_are_advantages_of_root_in_Termux"><span class="tocnumber">12</span> <span class="toctext">What are advantages of root in Termux</span></a></li> <li class="toclevel-1 tocsection-13"><a href="#What_is_a_fake_root"><span class="tocnumber">13</span> <span class="toctext">What is a fake root</span></a></li> <li class="toclevel-1 tocsection-14"><a href="#Can_I_hack_a_social_media_with_Termux"><span class="tocnumber">14</span> <span class="toctext">Can I hack a social media with Termux</span></a></li> <li class="toclevel-1 tocsection-15"><a href="#Where_are_Metasploit_and_Hydra_packages"><span class="tocnumber">15</span> <span class="toctext">Where are Metasploit and Hydra packages</span></a></li> <li class="toclevel-1 tocsection-16"><a href="#Why_app_from_F-Droid_cannot_be_installed"><span class="tocnumber">16</span> <span class="toctext">Why app from F-Droid cannot be installed</span></a></li> <li class="toclevel-1 tocsection-17"><a href="#Why_Termux_add-ons_on_Google_Play_are_paid_even_though_their_sources_are_on_GitHub"><span class="tocnumber">17</span> <span class="toctext">Why Termux add-ons on Google Play are paid even though their sources are on GitHub</span></a></li> <li class="toclevel-1 tocsection-18"><a href="#How_can_I_keep_my_data_when_reinstalling_Termux"><span class="tocnumber">18</span> <span class="toctext">How can I keep my data when reinstalling Termux</span></a></li> <li class="toclevel-1 tocsection-19"><a href="#Repositories_are_down_and_return_403_404_errors"><span class="tocnumber">19</span> <span class="toctext">Repositories are down and return 403 404 errors</span></a></li> <li class="toclevel-1 tocsection-20"><a href="#How_to_open_failsafe_shell"><span class="tocnumber">20</span> <span class="toctext">How to open failsafe shell</span></a></li> <li class="toclevel-1 tocsection-21"><a href="#How_can_I_access_device_storage_with_Termux"><span class="tocnumber">21</span> <span class="toctext">How can I access device storage with Termux</span></a></li> <li class="toclevel-1 tocsection-22"><a href="#How_can_I_hide_the_extra_keys"><span class="tocnumber">22</span> <span class="toctext">How can I hide the extra keys</span></a></li> <li class="toclevel-1 tocsection-23"><a href="#Why_text_appears_only_after_hitting_space"><span class="tocnumber">23</span> <span class="toctext">Why text appears only after hitting space</span></a></li> <li class="toclevel-1 tocsection-24"><a href="#How_do_I_get_help_for_a_specific_package"><span class="tocnumber">24</span> <span class="toctext">How do I get help for a specific package</span></a></li> <li class="toclevel-1 tocsection-25"><a href="#Why_does_a_compiled_program_show_warnings"><span class="tocnumber">25</span> <span class="toctext">Why does a compiled program show warnings</span></a></li> <li class="toclevel-1 tocsection-26"><a href="#Can_I_use_Termux_packages_in_my_own_project"><span class="tocnumber">26</span> <span class="toctext">Can I use Termux packages in my own project</span></a></li> <li class="toclevel-1 tocsection-27"><a href="#How_to_run_Termux_commands_from_other_application"><span class="tocnumber">27</span> <span class="toctext">How to run Termux commands from other application</span></a></li> <li class="toclevel-1 tocsection-28"><a href="#Can_Termux_run_some_commands_automatically_right_after_installation"><span class="tocnumber">28</span> <span class="toctext">Can Termux run some commands automatically right after installation</span></a></li> <li class="toclevel-1 tocsection-29"><a href="#See_Also"><span class="tocnumber">29</span> <span class="toctext">See Also</span></a></li> </ul> </div> <h2><span class="mw-headline" id="What_is_Termux">What is Termux</span></h2> <p><i>Main Article: <a href="/wiki/Getting_started" title="Getting started">Getting started</a></i> </p><p>Termux is a <a rel="nofollow" class="external text" href="https://en.wikipedia.org/wiki/Terminal_emulator">terminal emulator</a> for Android OS with its own package ecosystem. There are more than 1000 packages for various purposes, including code editors, compilers, etc. </p> <h2><span class="mw-headline" id="Is_Termux_an_emulator">Is Termux an emulator</span></h2> <p>Termux is an emulator and is not. It does not emulate any system; Programs are executed natively. On the other hand, it is a terminal emulator in the same way as many common Linux distribution programs are; e.g., GNOME terminal, Konsole, Xterm and many more. </p><p><a rel="nofollow" class="external text" href="https://en.wikipedia.org/wiki/Computer_terminal">Terminal</a> is a hardware device typically used before traditional desktop computers appeared. </p><p><a rel="nofollow" class="external text" href="https://en.wikipedia.org/wiki/Terminal_emulator">Terminal emulator</a> is a software that emulates a display (not CPU or whole system) with capabilities of specific hardware terminal. </p> <h2><span class="mw-headline" id="What_are_system_requirements">What are system requirements</span></h2> <p>Android OS of version 7.0 as minimum. Be prepared that Termux uses much of internal storage, you are dealing with packages ported from Linux distributions. That's 500 MB - 5 GB typically, in some cases more... Everything depends on your use cases. </p><p>Also it is preferable to have AOSP Android, to avoid vendor-specific quirks with process management and power-saving. </p> <h2><span class="mw-headline" id="Will_Termux_work_on_Android_11">Will Termux work on Android 11</span></h2> <p>In short: yes, it works on Android 11 and 12 beta. </p><p>Android security improvements in new versions often become a subject of controversial discussions and recent `execve()` system call restriction by SELinux configuration introduced with Android 10 was not the exception. There lots of misinformation and conspiracy (aka "Google want to kill Linux on Android") from people claiming themselves "advanced users" about what is actually happening. </p><p>Applications built with target SDK level 29 (means compatibility with Android 10) will no longer be able to execute data files. All executables must be packaged within the APK file. That's a reasonable restriction. Application must not be able to modify itself. Updates and new features must come within the APK of newer version. However there is a problem: Termux is technically a bridge between Android application and Linux environments. </p><p>Fortunately, we chose to force use compatibility with Android 9 APIs (SDK 28) at the cost of ability to publish updates on Google Play. That is until we will workaround the issue. For now do not worry - it works perfectly. </p><p>Termux also supports Android 12 but running the app on this version of Android would kill phantom processes and crash the app, meaning spawning several processes would randomly close the application unintentionally. if you plan to upgrade your device to Android 12, upgrade at your own risk! </p><p>Related issue: <a rel="nofollow" class="external free" href="https://github.com/termux/termux-app/issues/2366">https://github.com/termux/termux-app/issues/2366</a> </p> <h2><span class="mw-headline" id="Why_does_htop_or_netstat_not_work_on_my_device">Why does htop or netstat not work on my device</span></h2> <p>In order to stop leaking sensitive information via side channels, Android has blocked access to certain interfaces in /proc. This is done for your privacy. </p><p>Specifically: </p> <ul><li>/proc/net/*</li> <li>/proc/loadavg</li> <li>/proc/stat</li> <li>/proc/uptime</li> <li>/proc/version</li> <li>/proc/vmstat</li> <li>And few others.</li></ul> <p><br /> Restrictions vary between Android OS versions. Thus Android 7 is less restrictive than 8/9/10+. You can use root to bypass them. </p><p>Do not open issues in our repositories on this or complain how Google is evil. We do not support such opinion or other Android-specific conspiracy. </p> <h2><span class="mw-headline" id="Why_does_ps_not_show_Android_processes">Why does ps not show Android processes</span></h2> <p>Since Android 7, regular applications no longer can explore foreign processes in /proc. This has been <a rel="nofollow" class="external text" href="https://android.googlesource.com/platform/system/core/+/c39ba5a">implemented</a> via hidepid=2 mount option. </p><p>Termux can list only its own processes. You can see more only under rooted shell or ADB. </p><p>This restriction has weird effect on some programs. For example, some processes like <code>ssh-agent</code> or <code>tor</code> daemons will no longer be visible through <code>ps</code> and as result can't be terminated with <code>pkill <NAME></code> or <code>killall <NAME></code> but only with <code>kill <PID></code>. </p> <h2><span class="mw-headline" id="Why_my_Termux_is_32bit_while_CPU_supports_64bit">Why my Termux is 32bit while CPU supports 64bit</span></h2> <p>If Android OS reports support only of 32-bit ABIs, Termux will perform a 32-bit installation only. Its environment is not standalone and relies on libraries provided by operating system. So if your system is 32-bit only, you are out of luck. That is common issue with some device models where manufacturer installed only 32-bit OS due to small system partition. </p> <h2><span class="mw-headline" id="Can_Termux_be_installed_on_the_external_storage">Can Termux be installed on the external storage</span></h2> <p>This can't be done, at least if your device is not rooted. </p><p>Termux requires a native Linux file system such as <a rel="nofollow" class="external text" href="https://en.wikipedia.org/wiki/Ext4">EXT4</a> or <a rel="nofollow" class="external text" href="https://en.wikipedia.org/wiki/F2FS">F2FS</a> for supporting special files like <a rel="nofollow" class="external text" href="https://en.wikipedia.org/wiki/Symbolic_link">symbolic links</a>, <a rel="nofollow" class="external text" href="https://en.wikipedia.org/wiki/Unix_domain_socket">sockets</a> and Unix file attributes. Neither <a rel="nofollow" class="external text" href="https://en.wikipedia.org/wiki/File_Allocation_Table">FAT32</a> or exFAT supports them. Furthermore, Android applies a special overlay to any general purpose file storage which turns underlying file system into FAT32 or exFAT-like in order to solve certain issues and provide a better experience for average user. </p><p>If your device is rooted and you want to install Termux on external storage, please refer to post on <a rel="nofollow" class="external text" href="https://android.stackexchange.com/questions/228443/can-the-termux-environment-be-put-on-an-external-sd-card">Android Enthusiasts Stack Exchange</a>. </p> <h2><span class="mw-headline" id="Any_tips_for_using_Termux">Any tips for using Termux</span></h2> <p>Here are the ones which should help you to survive in Termux shell: </p> <ul><li>Learn shell scripting!</li> <li>Always do <code>pkg upgrade</code>!</li> <li>Do backups, always!</li> <li>Do not execute things which you do not know!</li> <li>Carefully read everything that has been printed to terminal!</li></ul> <h2><span class="mw-headline" id="What_do_you_use_Termux_for">What do you use Termux for</span></h2> <p>You can do everything, specifically what you are able to do with it. That is the case where you are limited mostly by your skills. Of course, OS and device hardware restriction matter too, but they are insignificant. </p><p>Here are just few ideas for Termux usage: </p> <ul><li>Device automation with scripting and Termux Tasker add-on.</li> <li>File transfer & synchronization via syncthing, rsync, rclone, etc.</li> <li><a rel="nofollow" class="external text" href="https://en.wikipedia.org/wiki/SSH_(Secure_Shell)">SSH</a> client (dropbear, openssh).</li> <li>Programming (clang, python, vim, etc).</li></ul> <h2><span class="mw-headline" id="Are_there_any_Termux_tutorials">Are there any Termux tutorials</span></h2> <p>Please check page <a href="/wiki/Getting_started" title="Getting started">Getting started</a>. </p><p>Note that while you can learn shell scripting with Termux, it is not the best tool for this due to few <a href="/wiki/Differences_from_Linux" title="Differences from Linux">fundamental differences</a> from the Linux distributions. </p> <h2><span class="mw-headline" id="What_are_advantages_of_root_in_Termux">What are advantages of root in Termux</span></h2> <p>Root gains you control over system components. You will be able to access freely all file systems, modify device firmware (ROM) as well as perform fine tuning of kernel configuration, networking, etc. </p><p>Certain tools like cryptsetup, mount, nmap (advanced scan modes), tcpdump require root access. </p> <h2><span class="mw-headline" id="What_is_a_fake_root">What is a fake root</span></h2> <p>Fake root means exactly "fake root", i.e., not real root. It does not provide any real superuser privileges. It just changes user ID and label to assist in certain tasks. </p><p>There 2 ways to get a fake root: </p> <ul><li>Package `fakeroot` - useful solely for packagers who need to create archives with files having certain ownership and permissions. Of course, using the real root in this case is overkill.</li> <li>Package `proot` - run a rootless Linux distribution "chroot".</li></ul> <p><br /> Fake root will not help you to root your device. Neither will help you to run a software requiring superuser privileges. </p> <h2><span class="mw-headline" id="Can_I_hack_a_social_media_with_Termux">Can I hack a social media with Termux</span></h2> <p><i>Main Article: <a href="/wiki/Hacking" title="Hacking">Hacking</a></i> </p><p>As some people say, there nothing impossible in the world, and that's true in case of Termux and specifically this question. However we do not provide any help on it - you are on your own. </p><p>Hacking and phishing topics are discouraged within all official Termux communities. </p> <h2><span class="mw-headline" id="Where_are_Metasploit_and_Hydra_packages">Where are Metasploit and Hydra packages</span></h2> <p><i>Main Article: <a href="/wiki/Hacking" title="Hacking">Hacking</a></i> </p><p>Packages Hashcat, Hydra, Metasploit and Sqlmap have been removed from Termux repositories. We do not accept requests of hacking packages and neither provide help for using or installing them. </p> <h2><span class="mw-headline" id="Why_app_from_F-Droid_cannot_be_installed">Why app from F-Droid cannot be installed</span></h2> <p>Open your Android settings --> Applications and check whether you have applications containing the word "Termux" in their name. If so, uninstall all of them: Termux, Termux:API, Termux:Styling, Termux:Widget, Termux:Boot and others. And yes, paid add-dons should be uninstalled too. </p><p>After that you should be able to install Termux app from F-Droid. </p> <h2><span class="mw-headline" id="Why_Termux_add-ons_on_Google_Play_are_paid_even_though_their_sources_are_on_GitHub">Why Termux add-ons on Google Play are paid even though their sources are on GitHub</span></h2> <p>This has been made as kind of donation. If you do not want to donate, use application and add-ons from F-Droid or custom builds from sources. </p><p>Remember that open-source or free software does not mean that software cannot be paid. This is not forbidden by licenses of our source code. Also "free" means "freedom", in context of GNU GPL which even explicitly states that free software can be paid as soon as sources are freely available. </p> <h2><span class="mw-headline" id="How_can_I_keep_my_data_when_reinstalling_Termux">How can I keep my data when reinstalling Termux</span></h2> <p><i>Main Article: <a href="/wiki/Backing_up_Termux" title="Backing up Termux">Backing up Termux</a></i> </p><p>You need to archive contents of these directories: </p> <pre>/data/data/com.termux/files/usr /data/data/com.termux/files/home </pre> <p>You can use utility <code>tar</code>. Before uninstalling the app, ensure that archives are placed to safe location such as <code>/sdcard</code>. </p> <h2><span class="mw-headline" id="Repositories_are_down_and_return_403_404_errors">Repositories are down and return 403 404 errors</span></h2> <p>Switch to a working repository with `termux-change-repo`. You will need to select repositories which do not work, if unsure what to select - select everything. </p><p><a rel="nofollow" class="external free" href="https://github.com/termux/termux-packages/issues/6726">https://github.com/termux/termux-packages/issues/6726</a> </p> <h2><span class="mw-headline" id="How_to_open_failsafe_shell">How to open failsafe shell</span></h2> <p>There are 2 variants how to do that: 1. Open drawer by swiping rightwards -> long tap on "new session" -> tap "failsafe". 2. Close Termux app -> long tap on icon -> tap "failsafe". </p><p>See <a href="/wiki/Recover_a_broken_environment" title="Recover a broken environment">Recover a broken environment</a> for more information on Termux recovery topic. </p> <h2><span class="mw-headline" id="How_can_I_access_device_storage_with_Termux">How can I access device storage with Termux</span></h2> <p><i>Main Article: <a href="/wiki/Internal_and_external_storage" title="Internal and external storage">Internal and external storage</a></i> </p><p>You need to grant a <i>Storage access permission</i> to application. We recommend to do that through command </p> <pre>termux-setup-storage </pre> <p>It will ask for permission and once it was granted, it will setup a symlinks in directory ~/storage to standard directories like DCIM, Download, etc. </p><p>Storage (shared) is usually accessible through: </p> <ul><li>/storage/emulated/0</li> <li>/storage/self/primary</li> <li>$HOME/storage/shared</li></ul> <p><br /> External storage is restricted by Android OS. You can read files but cannot write them, except ones located in Termux private directory accessible through <code>$HOME/storage/external-1</code>. Termux cannot have write access to external storage like file manager applications do. </p><p>If you are on Android 11 and storage suddenly has become inaccessible, then revoke permission from Android settings and grant again. </p> <h2><span class="mw-headline" id="How_can_I_hide_the_extra_keys">How can I hide the extra keys</span></h2> <p>Tap key combination <i>Volume Up + K</i>. </p><p>Alternate approach is to open drawer via swiping rightwards from the left screen side and then long tap on "Keyboard" button. </p> <h2><span class="mw-headline" id="Why_text_appears_only_after_hitting_space">Why text appears only after hitting space</span></h2> <p>This is a keyboard-specific known issue. It happens because keyboard has not internally reset input method type and tries to use unsupported features like auto-correction or prediction. </p><p>In order to solve issue you need to use either a different keyboard or run these commands: </p> <pre>mkdir -p ~/.termux echo "enforce-char-based-input = true" >> ~/.termux/termux.properties </pre> <p>Restart application after making changes to "termux.properties" file. </p> <h2><span class="mw-headline" id="How_do_I_get_help_for_a_specific_package">How do I get help for a specific package</span></h2> <p>Usually you can use next commands to get a brief usage of the utility: </p> <pre>packagename -h packagename --help </pre> <p>More advanced information can be viewed by using a <code>man</code> tool. It can be <a href="/wiki/Package_Management" title="Package Management">installed</a> by </p> <pre>pkg install man </pre> <p>Here is an example how to view information for utility <code>ls</code>: </p> <pre>man ls </pre> <p>Tips, when reading a man page: </p> <ul><li>Use q to quit</li> <li>Use space for next page</li> <li>/search for search</li> <li>n for repeat search</li></ul> <p><br /> Sometimes utility name may not match the package name. If you encountered a such package, consult its online home page to get a brief introduction or use utility <code>apt-file</code> to list the available files including utilities and documentation. </p> <h2><span class="mw-headline" id="Why_does_a_compiled_program_show_warnings">Why does a compiled program show warnings</span></h2> <p>Warnings produced by dynamic linker about unused sections are safe. They just notify developer that ELF header of executable file has extra information which cannot be interpreted by current linker version. In case of DT_FLAGS_1=0x8, it warns about RTLD_NODELETE ELF section. Besides DT_FLAGS_1=0x8, there more types of ELF sections which are not handled by Android linker. </p><p>To make this warning disappear you need to use utility "termux-elf-cleaner" binary file and probably on all its dependencies. </p> <pre>pkg install termux-elf-cleaner termux-elf-cleaner ./myprogram termux-elf-cleaner ./libmysharedlibrary.so </pre> <p>Number of supported ELF sections increases with each Android OS version. On Android >7.0 you may not get such warnings. </p> <h2><span class="mw-headline" id="Can_I_use_Termux_packages_in_my_own_project">Can I use Termux packages in my own project</span></h2> <p>Yes, as Termux is open-source and uses a GNU GPL v3.0 and in some components Apache-2.0 license, you can freely re-use existing components as soon as you met the license requirements. </p><p>However license does not cover "free" use of our hosting capabilities which are somewhat limited. You cannot use our package repositories in your own project(s). Please build packages and host them yourself. </p><p>Get started with information on developer's wiki pages: <a rel="nofollow" class="external free" href="https://github.com/termux/termux-packages/wiki">https://github.com/termux/termux-packages/wiki</a>. </p> <h2><span class="mw-headline" id="How_to_run_Termux_commands_from_other_application">How to run Termux commands from other application</span></h2> <p>Termux provides optional interface for processing command execution requests made by third-party applications. </p><p>Detailed information with examples is available at <a rel="nofollow" class="external free" href="https://github.com/termux/termux-app/wiki/RUN_COMMAND-Intent">https://github.com/termux/termux-app/wiki/RUN_COMMAND-Intent</a>. </p> <h2><span class="mw-headline" id="Can_Termux_run_some_commands_automatically_right_after_installation">Can Termux run some commands automatically right after installation</span></h2> <p>No, this feature has not been implemented. Unconditional automated execution of arbitrary commands (script on shared storage) also implies a security issue. </p><p>Worth to note that Termux does not have storage access by default and we have not re-considered this behavior. </p><p>Related pull request: <a rel="nofollow" class="external free" href="https://github.com/termux/termux-app/pull/1455">https://github.com/termux/termux-app/pull/1455</a> </p> <h1><span class="mw-headline" id="See_Also">See Also</span></h1> <ul><li><a href="/wiki/Community" title="Community">Community</a></li> <li><a href="/wiki/Development" title="Development">Development</a></li></ul> <!-- NewPP limit report Cached time: 20250409213748 Cache expiry: 86400 Reduced expiry: false Complications: [show鈥恡oc, no鈥恡oc鈥恈onversion] CPU time usage: 0.017 seconds Real time usage: 0.018 seconds Preprocessor visited node count: 128/1000000 Post鈥恊xpand include size: 185/2097152 bytes Template argument size: 75/2097152 bytes Highest expansion depth: 3/100 Expensive parser function count: 0/100 Unstrip recursion depth: 0/20 Unstrip post鈥恊xpand size: 0/5000000 bytes --> <!-- Transclusion expansion time report (%,ms,calls,template) 100.00% 2.194 1 -total 86.05% 1.888 5 Template:Main --> <!-- Saved in parser cache with key wiki.termux.com:pcache:idhash:41-0!canonical!groups=* and timestamp 20250409213748 and revision id 6537. Rendering was triggered because: diff-page --> </div></div> <div class="printfooter"> Retrieved from "<a dir="ltr" href="https://wiki.termux.com/index.php?title=FAQ&oldid=6537">https://wiki.termux.com/index.php?title=FAQ&oldid=6537</a>" </div> <div id="catlinks" class="catlinks catlinks-allhidden" data-mw="interface"></div> <div class="visualClear"></div> </div> <!-- /bodyContent --> </div> </main> <!-- /content --> </div> <!-- sidebar-right --> <div id="sidebar-right" class="col-md-3 sidebar-sticky"> <div class="btn-group btn-block dropdown"><a href="/index.php?title=FAQ&action=edit" id="ca-edit" name="ca-edit-ext" class="btn btn-primary" title="Edit this page [e]" accesskey="e"><span class="fa fa-pen"></span> Edit </a><a class="dropdown-toggle dropdown-toggle-split btn btn-primary" href="#" data-toggle="dropdown" aria-haspopup="true"><span class="sr-only">Toggle Dropdown</span></a><div class="dropdown-menu dropdown-menu-right"><a class="dropdown-item" href="/index.php?title=FAQ&action=history" id="ca-history" tabindex="-1" title="Past revisions of this page [h]" accesskey="h">View history</a></div></div><div id="tweekiTOC"></div> </div> <!-- /sidebar-right --> </div> </div> </main> <footer id="footer" role="contentinfo" class="footer footer-sticky bg-light"> <div class="container"> <div class="row"> <div class="col-12 col-sm footer-widget"><ul id="footer-places"><li id="footer-places-privacy"><a href="/wiki/Termux_Wiki:Privacy_policy">Privacy policy</a></li><li id="footer-places-about"><a href="/wiki/Termux_Wiki:About">About Termux Wiki</a></li><li id="footer-places-disclaimers"><a href="/wiki/Termux_Wiki:General_disclaimer">Disclaimers</a></li></ul></div><div class="col-12 col-sm footer-widget"><ul id="footer-custom"><li class="dropup"><a href="/index.php?title=Special:UserLogin&returnto=FAQ" title="You are encouraged to log in; however, it is not mandatory [o]" accesskey="o">Log in</a></li><li class="dropup"><a href="/index.php?title=Special:CreateAccount&returnto=FAQ" title="You are encouraged to create an account and log in; however, it is not mandatory">Create account</a></li></ul></div><div class="col-12 col-sm footer-widget"><ul id="footer-icons"><li id="footer-copyrightico"><span><a href="https://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution</a></span></li><li id="footer-poweredbyico"><span><a href="https://www.mediawiki.org/">Powered by MediaWiki</a></span></li></ul></div> </div> </div> </footer> </body> </html> <script>(RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgBackendResponseTime":119,"wgPageParseReport":{"limitreport":{"cputime":"0.017","walltime":"0.018","ppvisitednodes":{"value":128,"limit":1000000},"postexpandincludesize":{"value":185,"limit":2097152},"templateargumentsize":{"value":75,"limit":2097152},"expansiondepth":{"value":3,"limit":100},"expensivefunctioncount":{"value":0,"limit":100},"unstrip-depth":{"value":0,"limit":20},"unstrip-size":{"value":0,"limit":5000000},"timingprofile":["100.00% 2.194 1 -total"," 86.05% 1.888 5 Template:Main"]},"cachereport":{"timestamp":"20250409213748","ttl":86400,"transientcontent":false}}});});</script> </body> </html>