BusyBox: Difference between revisions
Prabuanand (talk | contribs) m (changed heading) |
Prabuanand (talk | contribs) (added other references in wiki. removed draft notice) |
||
Line 1: | Line 1: | ||
BusyBox combines tiny versions of many common UNIX utilities into a single small executable. It provides replacements for most of the utilities usually found in GNU fileutils, shellutils, etc. The utilities in BusyBox generally have fewer options than their full-featured GNU counterparts. | |||
BusyBox combines tiny versions of many common UNIX utilities into a single small executable. It provides replacements for most of the utilities | |||
== Ash shell == | == Ash shell == | ||
Alpine uses Busybox Ash for its default shell. | Alpine Linux uses Busybox Ash for its default shell. Refer [[Change default shell|change default shell]] page for more information. | ||
=== | === Aliases === | ||
When using Ash shell, one can’t set aliases in the {{Path|~/.profile}}, but environment variables can be set in it. In order to use aliases with Busybox Ash, you must set the ENV environment variable to refer the aliases file. | |||
First create the file {{Path|/etc/profile.d/profile.sh}} as follows: | First create the file {{Path|/etc/profile.d/profile.sh}} as follows: | ||
Line 25: | Line 21: | ||
{{Cat|~/.config/ash/ashrc|su{{=}}"doas -s" | {{Cat|~/.config/ash/ashrc|su{{=}}"doas -s" | ||
}} | }} | ||
== Replacing Busybox symlinks == | |||
{{Main|How to get regular stuff working}} | |||
If you find busybox lacking in features or options, it is easy to [[How to get regular stuff working|replace]] busybox endpoints by their full-featured utilities. | |||
== See Also == | == See Also == | ||
* [https://www.busybox.net/ Official website] | * [https://www.busybox.net/ Official website] | ||
* [https://man.archlinux.org/man/busybox.1.en Online Manual] | * [https://man.archlinux.org/man/busybox.1.en Online Manual] | ||
[[Category:System Administration]] |
Revision as of 18:09, 21 October 2024
BusyBox combines tiny versions of many common UNIX utilities into a single small executable. It provides replacements for most of the utilities usually found in GNU fileutils, shellutils, etc. The utilities in BusyBox generally have fewer options than their full-featured GNU counterparts.
Ash shell
Alpine Linux uses Busybox Ash for its default shell. Refer change default shell page for more information.
Aliases
When using Ash shell, one can’t set aliases in the ~/.profile, but environment variables can be set in it. In order to use aliases with Busybox Ash, you must set the ENV environment variable to refer the aliases file.
First create the file /etc/profile.d/profile.sh as follows:
Contents of /etc/profile.d/profile.sh
Next create the file ~/.config/ash/profile as follows:
Contents of ~/.config/ash/profile
Now aliases can be added in the file ~/.config/ash/ashrc:
Contents of ~/.config/ash/ashrc
Replacing Busybox symlinks
If you find busybox lacking in features or options, it is easy to replace busybox endpoints by their full-featured utilities.