Welcome to Termux
Docs: https://doc.termux.com
Community: https://community.termux.com
Working with packages:
- Search: pkg search <query>
- Install: pkg install <package>
- Upgrade: pkg upgrade
Report issues at https://bugs.termux.com
~/SusuLib $ ls
-f README.md build.sh deb hooks logs2 sh
'4 2.cxx' SECURITY.md build.sh.bash downloads libxml obj table-of-contents.md
Info TODO2 c git-rebase-todo libxml2 packages.sh tensorflow
LICENSE a.out compile_commands.json gitlog libxml2.c posts tidy
LICENSE_GPLv2 bin cxx gitlogstat logs robots.txt
~/SusuLib $ rm -f
~/SusuLib $ ls
-f README.md build.sh deb hooks logs2 sh
'4 2.cxx' SECURITY.md build.sh.bash downloads libxml obj table-of-contents.md
Info TODO2 c git-rebase-todo libxml2 packages.sh tensorflow
LICENSE a.out compile_commands.json gitlog libxml2.c posts tidy
LICENSE_GPLv2 bin cxx gitlogstat logs robots.txt
~/SusuLib $ rm \-f
~/SusuLib $ ls
-f README.md build.sh deb hooks logs2 sh
'4 2.cxx' SECURITY.md build.sh.bash downloads libxml obj table-of-contents.md
Info TODO2 c git-rebase-todo libxml2 packages.sh tensorflow
LICENSE a.out compile_commands.json gitlog libxml2.c posts tidy
LICENSE_GPLv2 bin cxx gitlogstat logs robots.txt
~/SusuLib $ rm "-f"
~/SusuLib $ ls
-f README.md build.sh deb hooks logs2 sh
'4 2.cxx' SECURITY.md build.sh.bash downloads libxml obj table-of-contents.md
Info TODO2 c git-rebase-todo libxml2 packages.sh tensorflow
LICENSE a.out compile_commands.json gitlog libxml2.c posts tidy
LICENSE_GPLv2 bin cxx gitlogstat logs robots.txt
~/SusuLib $ cat -f
/data/data/com.termux/files/usr/bin/cat: invalid option -- 'f'
Try '/data/data/com.termux/files/usr/bin/cat --help' for more information.
~/SusuLib $ cat \-f
/data/data/com.termux/files/usr/bin/cat: invalid option -- 'f'
Try '/data/data/com.termux/files/usr/bin/cat --help' for more information.
~/SusuLib $ cat "-f"
/data/data/com.termux/files/usr/bin/cat: invalid option -- 'f'
Try '/data/data/com.termux/files/usr/bin/cat --help' for more information.
~/SusuLib $ cat "\-f"
cat: '\-f': No such file or directory
~/SusuLib $ cat '-f'
/data/data/com.termux/files/usr/bin/cat: invalid option -- 'f'
Try '/data/data/com.termux/files/usr/bin/cat --help' for more information.
~/SusuLib $ cat '\-f'
cat: '\-f': No such file or directory
~/SusuLib $ stat -f
stat: missing operand
Try '/data/data/com.termux/files/usr/bin/stat --help' for more information.
~/SusuLib $ stat \-f
stat: missing operand
Try '/data/data/com.termux/files/usr/bin/stat --help' for more information.
~/SusuLib $ stat "-f"
stat: missing operand
Try '/data/data/com.termux/files/usr/bin/stat --help' for more information.
~/SusuLib $ stat "\-f"
stat: cannot statx '\-f': No such file or directory
~/SusuLib $ stat '-f'
stat: missing operand
Try '/data/data/com.termux/files/usr/bin/stat --help' for more information.
~/SusuLib $ stat '\-f'
stat: cannot statx '\-f': No such file or directory
~/SusuLib $
This was on an Android smartphone.
Have since archived this folder (with tar -jcf ar.tar ./), decompressed this folder (with tar -xf ar.tar, on Ubuntu), executed the above commands through Ubuntu, but there are no differences.
cat,rm,lsorstathave anything to do with bash (the GNU shell a programming language and interactive tool specialised in running other commands).cat,rmandlsare standard POSIX commands,statis not.tar,ddand the shell, but they're not OS-dependent either)-f,"-f",\-f, what the tool itself sees as the argument is just-f. Though in"\-f"and'\-f', the backslash itself is quoted, so the tool sees\-f. But that doesn't help, since now it looks for a file literally named with a backslash. :)