{"id":30701,"date":"2021-10-07T14:46:50","date_gmt":"2021-10-07T12:46:50","guid":{"rendered":"https:\/\/itedu.center\/ua\/blog\/?p=30701"},"modified":"2026-02-26T11:53:03","modified_gmt":"2026-02-26T09:53:03","slug":"busybox_linux","status":"publish","type":"post","link":"https:\/\/itedu.center\/ua\/blog\/guides\/busybox_linux\/","title":{"rendered":"BusyBox \u0432 Linux: \u0449\u043e \u0446\u0435 \u0437\u0430 \u043f\u0440\u043e\u0454\u043a\u0442 \u0456 \u043d\u0430\u0432\u0456\u0449\u043e \u0432\u0456\u043d \u043f\u043e\u0442\u0440\u0456\u0431\u0435\u043d?"},"content":{"rendered":"\n<p><strong>\u0421\u0438\u0441\u0430\u0434\u043c\u0456\u043d\u0438, \u0430 \u0442\u0430\u043a\u043e\u0436 \u043a\u043e\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447\u0456 UNIX\/Linux-\u0441\u0438\u0441\u0442\u0435\u043c \u0437\u0432\u0438\u043a\u043b\u0438 \u0434\u043e \u0440\u043e\u0431\u043e\u0442\u0438 \u0437\u0456 \u0441\u0432\u043e\u0454\u044e \u0443\u043b\u044e\u0431\u043b\u0435\u043d\u043e\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u044e \u043e\u0431\u043e\u043b\u043e\u043d\u043a\u043e\u044e \u0442\u0430 \u0434\u043e \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u0438\u0445 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043d\u0438\u0445 \u0437\u0430\u0441\u043e\u0431\u0456\u0432. \u0410\u043b\u0435 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 \u0457\u0445 \u0437\u0430\u0432\u0436\u0434\u0438 \u0442\u0430 \u0432\u0441\u044e\u0434\u0438 \u043d\u0435\u043c\u043e\u0436\u043b\u0438\u0432\u043e. \u041d\u0430 \u0434\u043e\u043f\u043e\u043c\u043e\u0433\u0443 \u043f\u0440\u0438\u0439\u0434\u0435 BusyBox \u2014<\/strong> <strong>\u0441\u043f\u0440\u043e\u0449\u0435\u043d\u0438\u0439 shell \u0437 \u043d\u0430\u0431\u043e\u0440\u043e\u043c \u043a\u043e\u043c\u043f\u0430\u043a\u0442\u043d\u0438\u0445 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u0438\u0445 \u0437\u0430\u0441\u043e\u0431\u0456\u0432.<\/strong><\/p>\n\n\n\n<p>\u041a\u043e\u043c\u0430\u043d\u0434\u0438 Linux \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442\u044c\u0441\u044f \u0440\u0430\u0437\u043e\u043c \u0437 \u0441\u0438\u0441\u0442\u0435\u043c\u043e\u044e \u043f\u0440\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0446\u0456 \u0434\u0438\u0441\u0442\u0440\u043e. \u0414\u0435\u044f\u043a\u0456 \u0437 \u043e\u0441\u043d\u043e\u0432\u043d\u0438\u0445 \u043a\u043e\u043c\u0430\u043d\u0434, \u0442\u0430\u043a\u0456 \u044f\u043a <strong>cd<\/strong>, <strong>kill<\/strong> \u0456 <strong>echo<\/strong>, \u0444\u0430\u043a\u0442\u0438\u0447\u043d\u043e \u0432\u0431\u0443\u0434\u043e\u0432\u0430\u043d\u0456 \u0432 \u0432\u0430\u0448\u0443 \u043e\u0431\u043e\u043b\u043e\u043d\u043a\u0443. \u0406\u043d\u0448\u0456, \u043d\u0430\u043f\u0440\u0438\u043a\u043b\u0430\u0434 <strong>ls<\/strong>, <strong>mv<\/strong> \u0456 <strong>cat<\/strong> \u2014 \u0447\u0430\u0441\u0442\u0438\u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0433\u043e \u043f\u0430\u043a\u0435\u0442\u0430 \u0441\u043b\u0443\u0436\u0431\u043e\u0432\u0438\u0445 \u043f\u0440\u043e\u0433\u0440\u0430\u043c. \u0410\u043b\u0435 \u0443 \u0441\u0432\u0456\u0442\u0456 \u0432\u0456\u0434\u043a\u0440\u0438\u0442\u043e\u0433\u043e \u043a\u043e\u0434\u0443 \u0437\u0430\u0432\u0436\u0434\u0438 \u0454 \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u0438, \u0456 \u043e\u0434\u043d\u0430 \u0437 \u043d\u0430\u0439\u0446\u0456\u043a\u0430\u0432\u0456\u0448\u0438\u0445 \u2014 BusyBox.<\/p>\n\n\n\n<p>* <strong>BusyBox<\/strong> \u2014 \u0446\u0435 \u043f\u0440\u043e\u0454\u043a\u0442, \u044f\u043a\u0438\u0439 \u0437\u0430\u0431\u0435\u0437\u043f\u0435\u0447\u0443\u0454 \u043f\u0440\u043e\u0441\u0442\u0443 \u0440\u0435\u0430\u043b\u0456\u0437\u0430\u0446\u0456\u044e \u043c\u0430\u0439\u0436\u0435 400 \u043f\u043e\u0448\u0438\u0440\u0435\u043d\u0438\u0445 \u043a\u043e\u043c\u0430\u043d\u0434. \u0426\u0435\u0439 \u043d\u0430\u0431\u0456\u0440 UNIX-\u0443\u0442\u0438\u043b\u0456\u0442 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0433\u043e \u0440\u044f\u0434\u043a\u0430 \u043c\u0430\u0454 \u0432\u0456\u0434\u043a\u0440\u0438\u0442\u0438\u0439 \u0432\u0438\u0445\u0456\u0434\u043d\u0438\u0439 \u043a\u043e\u0434 (GPL &#8211; \u043b\u0456\u0446\u0435\u043d\u0437\u0456\u044f \u043d\u0430 \u0432\u0456\u043b\u044c\u043d\u0435 \u041f\u0417).<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u0414\u0435\u0442\u0430\u043b\u044c\u043d\u0456\u0448\u0435 \u043f\u0440\u043e BusyBox \u0432 Linux<\/strong><\/h2>\n\n\n\n<p>BusyBox \u0440\u0435\u0430\u043b\u0456\u0437\u043e\u0432\u0443\u0454 \u043c\u0430\u0439\u0436\u0435 400 \u0441\u043f\u0456\u043b\u044c\u043d\u0438\u0445 \u043a\u043e\u043c\u0430\u043d\u0434, \u0432 \u0442\u043e\u043c\u0443 \u0447\u0438\u0441\u043b\u0456 <strong>ls<\/strong>, <strong>mv<\/strong>, <strong>ln<\/strong>, <strong>mkdir<\/strong>, <strong>more<\/strong>, <strong>ps<\/strong>, <strong>gzip<\/strong>, <strong>bzip2<\/strong>, <strong>tar<\/strong> \u0456 <strong>grep<\/strong>. \u0412\u0456\u043d \u0442\u0430\u043a\u043e\u0436 \u043c\u0456\u0441\u0442\u0438\u0442\u044c \u0432\u0435\u0440\u0441\u0456\u044e \u043c\u043e\u0432\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u0443\u0432\u0430\u043d\u043d\u044f <strong>awk, <\/strong>\u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440 \u043f\u043e\u0442\u043e\u043a\u0443 <strong>sed<\/strong>, \u0437\u0430\u0441\u0456\u0431 \u043f\u0435\u0440\u0435\u0432\u0456\u0440\u043a\u0438 \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0457 \u0441\u0438\u0441\u0442\u0435\u043c\u0438 <strong>fsck,<\/strong><strong> <\/strong>\u043f\u0430\u043a\u0435\u0442\u0438 \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u0456\u0432 <strong>rpm <\/strong>\u0442\u0430 <strong>dpkg.<\/strong> \u0422\u0430\u043a\u043e\u0436 BusyBox \u043c\u0430\u0454 \u043e\u0431\u043e\u043b\u043e\u043d\u043a\u0443 (<strong>sh<\/strong>), \u044f\u043a\u0430 \u0437\u0430\u0431\u0435\u0437\u043f\u0435\u0447\u0443\u0454 \u043b\u0435\u0433\u043a\u0438\u0439 \u0434\u043e\u0441\u0442\u0443\u043f \u0434\u043e \u0432\u0441\u0456\u0445 \u0446\u0438\u0445 \u043a\u043e\u043c\u0430\u043d\u0434. \u041f\u0440\u043e\u0454\u043a\u0442 \u043c\u0456\u0441\u0442\u0438\u0442\u044c \u0432\u0441\u0456 \u043e\u0441\u043d\u043e\u0432\u043d\u0456 \u043a\u043e\u043c\u0430\u043d\u0434\u0438, \u043d\u0435\u043e\u0431\u0445\u0456\u0434\u043d\u0456 \u0456\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0443 \u043f\u043e\u0440\u0442\u0430\u0442\u0438\u0432\u043d\u0438\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0456\u0439\u043d\u0438\u0445 \u0441\u0438\u0441\u0442\u0435\u043c POSIX, \u0449\u043e\u0431 \u0432\u0438\u043a\u043e\u043d\u0430\u0442\u0438 \u0437\u0430\u0433\u0430\u043b\u044c\u043d\u0456 \u0437\u0430\u0432\u0434\u0430\u043d\u043d\u044f \u043e\u0431\u0441\u043b\u0443\u0433\u043e\u0432\u0443\u0432\u0430\u043d\u043d\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0438.<\/p>\n\n\n\n<p>\u0423 BusyBox \u0454 \u043a\u043e\u043c\u0430\u043d\u0434\u0430 <strong>init<\/strong><strong>, <\/strong>\u044f\u043a\u0443 \u043c\u043e\u0436\u043d\u0430 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0438 \u044f\u043a PID 1, \u0449\u043e\u0431 \u0432\u043e\u043d\u0430 \u0441\u043b\u0443\u0436\u0438\u043b\u0430 \u0431\u0430\u0442\u044c\u043a\u0456\u0432\u0441\u044c\u043a\u0438\u043c \u043f\u0440\u043e\u0446\u0435\u0441\u043e\u043c \u0434\u043b\u044f \u0432\u0441\u0456\u0445 \u0456\u043d\u0448\u0438\u0445 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u0438\u0445 \u0441\u043b\u0443\u0436\u0431. \u0406\u043d\u0448\u0438\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438, \u043f\u0440\u043e\u0454\u043a\u0442 \u043c\u043e\u0436\u043d\u0430 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 \u044f\u043a \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u0443 systemd, OpenRC, sinit, init \u0442\u0430 \u0456\u043d\u0448\u0438\u043c \u0434\u0435\u043c\u043e\u043d\u0430\u043c \u0437\u0430\u043f\u0443\u0441\u043a\u0443.<\/p>\n\n\n\n<p>BusyBox \u0434\u0443\u0436\u0435 \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0439 \u043f\u0440\u043e\u0454\u043a\u0442, \u0432\u0456\u043d \u0432\u0430\u0436\u0438\u0442\u044c \u043c\u0435\u043d\u0448 \u044f\u043a 1 \u041c\u0411, \u0442\u043e\u043c\u0443 \u0432\u0456\u043d \u0442\u0430\u043a\u0438\u0439 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u0438\u0439 \u0432 \u0433\u0440\u0430\u043d\u0438\u0447\u043d\u0438\u0445 \u043e\u0431\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044f\u0445, \u0432\u0431\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u0445 \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u0445 \u0456 IoT, \u0434\u0435 \u0434\u0438\u0441\u043a\u043e\u0432\u0438\u0439 \u043f\u0440\u043e\u0441\u0442\u0456\u0440 \u043d\u0430 \u0432\u0430\u0433\u0443 \u0437\u043e\u043b\u043e\u0442\u0430. \u0423 \u0441\u0432\u0456\u0442\u0456 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0456\u0432 \u0456 \u0445\u043c\u0430\u0440\u043d\u0438\u0445 \u043e\u0431\u0447\u0438\u0441\u043b\u0435\u043d\u044c \u0432\u0456\u043d \u0442\u0430\u043a\u043e\u0436 \u043c\u0430\u0454 \u043f\u043e\u043f\u0438\u0442, \u044f\u043a \u043e\u0441\u043d\u043e\u0432\u0430 \u0434\u043b\u044f \u0441\u0442\u0432\u043e\u0440\u0435\u043d\u043d\u044f \u043c\u0456\u043d\u0456\u043c\u0430\u043b\u044c\u043d\u0438\u0445 \u043e\u0431\u0440\u0430\u0437\u0456\u0432 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0456\u0432 Linux.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u041c\u0456\u043d\u0456\u043c\u0430\u043b\u0456\u0437\u043c \u0432 \u0434\u0456\u0457<\/strong><\/h2>\n\n\n\n<p>BusyBox \u043f\u0440\u0438\u0432\u0430\u0431\u043b\u0438\u0432\u0438\u0439 \u0447\u0435\u0440\u0435\u0437 \u0439\u043e\u0433\u043e \u043c\u0456\u043d\u0456\u043c\u0430\u043b\u0456\u0437\u043c, \u044f\u043a\u0438\u0439 \u0442\u0430\u043a \u0446\u0456\u043d\u0443\u0454 \u0441\u043f\u0456\u043b\u044c\u043d\u043e\u0442\u0430. \u0412\u0441\u0456 \u0439\u043e\u0433\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u0438 \u0437\u0456\u0431\u0440\u0430\u043d\u0456 \u0432 \u043e\u0434\u0438\u043d \u0434\u0432\u0456\u0439\u043a\u043e\u0432\u0438\u0439 \u0444\u0430\u0439\u043b (<strong>busybox<\/strong>), \u0430 \u0439\u043e\u0433\u043e \u043a\u0435\u0440\u0456\u0432\u043d\u0438\u0446\u0442\u0432\u043e \u0437\u0430\u0439\u043c\u0430\u0454 \u0432\u0441\u044c\u043e\u0433\u043e 81 \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0443, \u0430\u043b\u0435 \u043e\u0445\u043e\u043f\u043b\u044e\u0454 \u043c\u0430\u0439\u0436\u0435 400 \u043a\u043e\u043c\u0430\u043d\u0434.<\/p>\n\n\n\n<p>\u042f\u043a \u043f\u0440\u0438\u043a\u043b\u0430\u0434, \u043e\u0441\u044c \u0432\u0438\u0441\u043d\u043e\u0432\u043e\u043a <strong>shadow<\/strong> \u0432\u0435\u0440\u0441\u0456\u0457 <strong>useradd &#8211;help<\/strong>:<\/p>\n\n\n\n<p><strong><code>&nbsp;-b, --base-dir BASE_DIR &nbsp; &nbsp; &nbsp; base directory for home<\/code><\/strong><\/p>\n\n\n\n<p><strong><code>&nbsp;-c, --comment COMMENT &nbsp; &nbsp; &nbsp; &nbsp; GECOS field of the new account<\/code><\/strong><\/p>\n\n\n\n<p><strong><code>&nbsp;-d, --home-dir HOME_DIR &nbsp; &nbsp; &nbsp; home directory of the new account<\/code><\/strong><\/p>\n\n\n\n<p><strong><code>&nbsp;-D, --defaults&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; print or change the default config<\/code><\/strong><\/p>\n\n\n\n<p><strong><code>&nbsp;-e, --expiredate EXPIRE_DATE&nbsp; expiration date of the new account<\/code><\/strong><\/p>\n\n\n\n<p><strong><code>&nbsp;-f, --inactive INACTIVE &nbsp; &nbsp; &nbsp; password inactivity<\/code><\/strong><\/p>\n\n\n\n<p><strong><code>&nbsp;-g, --gid GROUP &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; name or ID of the primary group<\/code><\/strong><\/p>\n\n\n\n<p><strong><code>&nbsp;-G, --groups GROUPS &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; list of supplementary groups<\/code><\/strong><\/p>\n\n\n\n<p><strong><code>&nbsp;-h, --help&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; display this help message and exit<\/code><\/strong><\/p>\n\n\n\n<p><strong><code>&nbsp;-k, --skel SKEL_DIR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alternative skeleton dir<\/code><\/strong><\/p>\n\n\n\n<p><strong><code>&nbsp;-K, --key KEY=VALUE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; override \/etc\/login.defs<\/code><\/strong><\/p>\n\n\n\n<p><strong><code>&nbsp;-l, --no-log-init &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; do not add the user to the lastlog<\/code><\/strong><\/p>\n\n\n\n<p><strong><code>&nbsp;-m, --create-home &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; create the user's home directory<\/code><\/strong><\/p>\n\n\n\n<p><strong><code>&nbsp;-M, --no-create-home&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; do not create the user's home directory<\/code><\/strong><\/p>\n\n\n\n<p><strong><code>&nbsp;-N, --no-user-group &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; do not create a group with the user's name<\/code><\/strong><\/p>\n\n\n\n<p><strong><code>&nbsp;-o, --non-unique&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; allow users with non-unique UIDs<\/code><\/strong><\/p>\n\n\n\n<p><strong><code>&nbsp;-p, --password PASSWORD &nbsp; &nbsp; &nbsp; encrypted password of the new account<\/code><\/strong><\/p>\n\n\n\n<p><strong><code>&nbsp;-r, --system&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; create a system account<\/code><\/strong><\/p>\n\n\n\n<p><strong><code>&nbsp;-R, --root CHROOT_DIR &nbsp; &nbsp; &nbsp; &nbsp; directory to chroot into<\/code><\/strong><\/p>\n\n\n\n<p><strong><code>&nbsp;-s, --shell SHELL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; login shell of the new account<\/code><\/strong><\/p>\n\n\n\n<p><strong><code>&nbsp;-u, --uid UID &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; user ID of the new account<\/code><\/strong><\/p>\n\n\n\n<p><strong><code>&nbsp;-U, --user-group&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; create a group with the same name as a user<\/code><\/strong><\/p>\n\n\n\n<p>\u0410 \u043e\u0441\u044c \u0432\u0435\u0440\u0441\u0456\u044f \u0442\u0456\u0454\u0457 \u0436 \u043a\u043e\u043c\u0430\u043d\u0434\u0438 \u0434\u043b\u044f BusyBox:<\/p>\n\n\n\n<p><strong><code>-h DIR&nbsp; &nbsp; Home directory<\/code><\/strong><\/p>\n\n\n\n<p><strong><code>&nbsp;-g GECOS&nbsp; GECOS field<\/code><\/strong><\/p>\n\n\n\n<p><strong><code>&nbsp;-s SHELL&nbsp; Login shell<\/code><\/strong><\/p>\n\n\n\n<p><strong><code>&nbsp;-G GRP&nbsp; &nbsp; Group<\/code><\/strong><\/p>\n\n\n\n<p><strong><code>&nbsp;-S&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Create a system user<\/code><\/strong><\/p>\n\n\n\n<p><strong><code>&nbsp;-D&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Don't assign a password<\/code><\/strong><\/p>\n\n\n\n<p><strong><code>&nbsp;-H&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Don't create home directory<\/code><\/strong><\/p>\n\n\n\n<p><strong><code>&nbsp;-u UID&nbsp; &nbsp; User id<\/code><\/strong><\/p>\n\n\n\n<p><strong><code>&nbsp;-k SKEL &nbsp; Skeleton directory (\/etc\/skel)&nbsp;<\/code><\/strong><\/p>\n\n\n\n<p>\u0426\u044f \u0432\u0456\u0434\u043c\u0456\u043d\u043d\u0456\u0441\u0442\u044c \u2014 \u043f\u0435\u0440\u0435\u0432\u0430\u0433\u0430 \u0447\u0438 \u043e\u0431\u043c\u0435\u0436\u0435\u043d\u043d\u044f? \u0417\u0430\u043b\u0435\u0436\u0438\u0442\u044c \u0432\u0456\u0434 \u0432\u0430\u0448\u0438\u0445 \u0443\u043f\u043e\u0434\u043e\u0431\u0430\u043d\u044c. \u0412\u0438 \u0445\u043e\u0447\u0435\u0442\u0435 \u043c\u0430\u0442\u0438 20 \u0430\u0431\u043e 10 \u0432\u0430\u0440\u0456\u0430\u043d\u0442\u0456\u0432 \u043a\u043e\u043c\u0430\u043d\u0434? \u0414\u043b\u044f \u0431\u0430\u0433\u0430\u0442\u044c\u043e\u0445 \u043a\u043e\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447\u0456\u0432 \u043c\u0456\u043d\u0456\u043c\u0430\u043b\u0456\u0437\u043c BusyBox \u043e\u043f\u0442\u0438\u043c\u0430\u043b\u044c\u043d\u0438\u0439. \u0412 \u0446\u0456\u043b\u043e\u043c\u0443, \u0446\u0435 \u0445\u043e\u0440\u043e\u0448\u0435 \u043c\u0456\u043d\u0456\u043c\u0430\u043b\u044c\u043d\u0435 \u0441\u0435\u0440\u0435\u0434\u043e\u0432\u0438\u0449\u0435, \u044f\u043a\u0435 \u043c\u043e\u0436\u043d\u0430 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 \u044f\u043a \u0437\u0430\u043f\u0430\u0441\u043d\u0438\u0439 \u0432\u0430\u0440\u0456\u0430\u043d\u0442 \u0430\u0431\u043e \u0434\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0431\u0456\u043b\u044c\u0448 \u043d\u0430\u0434\u0456\u0439\u043d\u0438\u0445 \u0456\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0456\u0432, \u0442\u0430\u043a\u0438\u0445 \u044f\u043a Bash, Zsh, GNU Awk&nbsp; \u0442\u043e\u0449\u043e.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u0406\u043d\u0441\u0442\u0430\u043b\u044f\u0446\u0456\u044f BusyBox<\/strong><\/h2>\n\n\n\n<p>\u0412 Linux \u043c\u043e\u0436\u043d\u0430 \u0432\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0438 BusyBox \u0437\u0430 \u0434\u043e\u043f\u043e\u043c\u043e\u0433\u043e\u044e \u0434\u0438\u0441\u043f\u0435\u0442\u0447\u0435\u0440\u0430 \u043f\u0430\u043a\u0435\u0442\u0456\u0432. \u041d\u0430\u043f\u0440\u0438\u043a\u043b\u0430\u0434, \u0443&nbsp;<\/p>\n\n\n\n<p>Fedora \u0456 \u043f\u043e\u0434\u0456\u0431\u043d\u0438\u0445:<\/p>\n\n\n\n<p><strong><strong><code>$ sudo dnf install busybox<\/code><\/strong><\/strong><\/p>\n\n\n\n<p>\u041d\u0430 Debian \u0456 \u043f\u043e\u0445\u0456\u0434\u043d\u0438\u0445:<\/p>\n\n\n\n<p><strong><strong><code>$ sudo apt install busybox<\/code><\/strong><\/strong><\/p>\n\n\n\n<p>\u0412 macOS \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0439\u0442\u0435 MacPorts \u0430\u0431\u043e Homebrew. \u0423 Windows \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0439\u0442\u0435 Chocolatey.<\/p>\n\n\n\n<p>\u0412\u0438 \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0438 BusyBox \u044f\u043a\u0456 \u043e\u0431\u043e\u043b\u043e\u043d\u043a\u0443 \u0437\u0430 \u0434\u043e\u043f\u043e\u043c\u043e\u0433\u043e\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u0438 <strong>chsh &#8211;shell<\/strong>. \u041c\u0438 \u0437\u0431\u0435\u0440\u0456\u0433\u0430\u0454\u043c\u043e BusyBox \u0432 <strong>\/lib64<\/strong>, \u0430\u043b\u0435 \u0439\u043e\u0433\u043e \u0440\u043e\u0437\u0442\u0430\u0448\u0443\u0432\u0430\u043d\u043d\u044f \u0437\u0430\u043b\u0435\u0436\u0438\u0442\u044c \u0432\u0456\u0434 \u0442\u043e\u0433\u043e, \u0434\u0435 \u0432\u0456\u043d \u0432\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0439 \u0443 \u0432\u0430\u0448\u043e\u043c\u0443 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u0456.<\/p>\n\n\n\n<p><strong><code>$ which busybox<\/code><\/strong><\/p>\n\n\n\n<p><strong><code>\/lib64\/busybox\/busybox<\/code><\/strong><\/p>\n\n\n\n<p><strong><code>$ chsh --shell \/lib64\/busybox\/sh<\/code><\/strong><\/p>\n\n\n\n<p>\u041f\u043e\u0432\u043d\u0430 \u0437\u0430\u043c\u0456\u043d\u0430 \u0432\u0441\u0456\u0445 \u043f\u043e\u0448\u0438\u0440\u0435\u043d\u0438\u0445 \u043a\u043e\u043c\u0430\u043d\u0434 \u043d\u0430 BusyBox \u0442\u0440\u043e\u0445\u0438 \u0441\u043a\u043b\u0430\u0434\u043d\u0456\u0448\u0430, \u0442\u043e\u043c\u0443 \u0449\u043e \u0431\u0456\u043b\u044c\u0448\u0456\u0441\u0442\u044c \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u0456\u0432 \u043f\u0440\u0438\u0432&#8217;\u044f\u0437\u0430\u043d\u0456 \u0434\u043e \u043f\u0435\u0432\u043d\u0438\u0445 \u043f\u0430\u043a\u0435\u0442\u0456\u0432 \u0434\u043b\u044f \u043f\u0435\u0432\u043d\u0438\u0445 \u043a\u043e\u043c\u0430\u043d\u0434. \u0422\u0435\u0445\u043d\u0456\u0447\u043d\u043e \u043c\u043e\u0436\u043b\u0438\u0432\u043e \u0437\u0430\u043c\u0456\u043d\u0438\u0442\u0438 \u0431\u0430\u0437\u043e\u0432\u0438\u0439 <strong>init<\/strong> \u043d\u0430 <strong>init <\/strong>BusyBox, \u0430\u043b\u0435 \u0432\u0430\u0448 \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440 \u043f\u0430\u043a\u0435\u0442\u0456\u0432 \u043c\u043e\u0436\u0435 \u043d\u0435 \u0434\u043e\u0437\u0432\u043e\u043b\u0438\u0442\u0438 \u0432\u0430\u043c \u0432\u0438\u0434\u0430\u043b\u0438\u0442\u0438 \u0432\u043c\u0456\u0441\u0442 \u043f\u0430\u043a\u0435\u0442\u0430 <strong>init,<\/strong> \u0437 \u043f\u043e\u0431\u043e\u044e\u0432\u0430\u043d\u043d\u044f, \u0449\u043e \u0432\u0438 \u0437\u0440\u043e\u0431\u0438\u0442\u0435 \u0432\u0430\u0448\u0443 \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0442\u0430\u043a\u043e\u044e, \u0449\u043e \u043d\u0435 \u0437\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0443\u0454\u0442\u044c\u0441\u044f.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u0422\u0435\u0441\u0442\u0443\u0439\u0442\u0435 BusyBox<\/strong><\/h2>\n\n\n\n<p>\u0412\u0430\u043c \u043d\u0435 \u043f\u043e\u0442\u0440\u0456\u0431\u043d\u043e \u043c\u0456\u043d\u044f\u0442\u0438 \u043e\u0431\u043e\u043b\u043e\u043d\u043a\u0443 \u043d\u0430 BusyBox, \u0449\u043e\u0431 \u043f\u0440\u043e\u0441\u0442\u043e \u0437\u0430\u0442\u0435\u0441\u0442\u0438\u0442\u0438 \u0457\u0457. \u0412\u0438 \u043c\u043e\u0436\u0435\u0442\u0435 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0438 \u0434\u043e\u0434\u0430\u0442\u043e\u043a \u0437 \u043f\u043e\u0442\u043e\u0447\u043d\u043e\u0457 \u043e\u0431\u043e\u043b\u043e\u043d\u043a\u0438:<\/p>\n\n\n\n<p><strong><code>$ busybox sh<\/code><\/strong><\/p>\n\n\n\n<p><strong><code>~ $<\/code><\/strong><\/p>\n\n\n\n<p>\u0423 \u0432\u0430\u0448\u0456\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0456 \u0432\u0441\u0435 \u0449\u0435 \u0431\u0443\u0434\u0443\u0442\u044c \u0432\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0456 \u0432\u0435\u0440\u0441\u0456\u0457 \u043a\u043e\u043c\u0430\u043d\u0434, \u044f\u043a\u0456 \u043d\u0435 \u043d\u0430\u043b\u0435\u0436\u0430\u0442\u044c \u0434\u043e BusyBox. \u0422\u043e\u043c\u0443, \u0449\u043e\u0431 \u0432\u0438\u043f\u0440\u043e\u0431\u0443\u0432\u0430\u0442\u0438 \u043d\u043e\u0432\u0456 \u0456\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0438, \u0432\u0438 \u043f\u043e\u0432\u0438\u043d\u043d\u0456 \u0432\u0432\u043e\u0434\u0438\u0442\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u0438 \u044f\u043a \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0438 \u0434\u043b\u044f <strong>busybox<\/strong><strong> <\/strong>\u0432\u0438\u043a\u043e\u043d\u0443\u0432\u0430\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0443:<\/p>\n\n\n\n<p><strong><code>~ $ busybox echo $0<\/code><\/strong><\/p>\n\n\n\n<p><strong><code>sh<\/code><\/strong><\/p>\n\n\n\n<p><strong><code>~ $ busybox ls --help<\/code><\/strong><\/p>\n\n\n\n<p><strong><code>BusyBox vX.YY.Z (2021-08-25 07:31:48 NZST) multi-call binary.<\/code><\/strong><\/p>\n\n\n\n<p><strong><code>Usage: ls [-1AaCxdLHRFplinshrSXvctu] [-w WIDTH] [FILE]...<\/code><\/strong><\/p>\n\n\n\n<p><strong><code>List directory contents<\/code><\/strong><\/p>\n\n\n\n<p><strong><code>&nbsp;-1&nbsp; One column output<\/code><\/strong><\/p>\n\n\n\n<p><strong><code>&nbsp;-a&nbsp; Include entries that start with .<\/code><\/strong><\/p>\n\n\n\n<p><strong><code>&nbsp;-A&nbsp; Like -a, but exclude . and ..<\/code><\/strong><\/p>\n\n\n\n<p><strong><code>&nbsp;-x&nbsp; List by lines<\/code><\/strong><\/p>\n\n\n\n<p><strong><code>[...]<\/code><\/strong><\/p>\n\n\n\n<p>\u0414\u043b\u044f &#8220;\u043f\u043e\u0432\u043d\u043e\u0457&#8221; \u0432\u0437\u0430\u0454\u043c\u043e\u0434\u0456\u0457 \u0437 BusyBox \u0432\u0438 \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u0442\u0432\u043e\u0440\u044e\u0432\u0430\u0442\u0438 \u0441\u0438\u043c\u0432\u043e\u043b\u0456\u0447\u043d\u0456 \u043f\u043e\u0441\u0438\u043b\u0430\u043d\u043d\u044f <strong>busybox <\/strong>\u0434\u043b\u044f \u043a\u043e\u0436\u043d\u043e\u0457 \u043a\u043e\u043c\u0430\u043d\u0434\u0438:<\/p>\n\n\n\n<p><strong><code>$ mkdir bbx<\/code><\/strong><\/p>\n\n\n\n<p><strong><code>$ for i in $(bbx --list); do \\<\/code><\/strong><\/p>\n\n\n\n<p><strong><code>ln -s \/path\/to\/busybox bbx\/$i \\<\/code><\/strong><\/p>\n\n\n\n<p><strong><code>done<\/code><\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u041f\u0456\u0434\u0441\u0443\u043c\u043e\u043a<\/strong><\/h2>\n\n\n\n<p>BusyBox \u043c\u043e\u0436\u043d\u0430 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438, \u044f\u043a:&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u043f\u043e\u043b\u0435\u0433\u0448\u0435\u043d\u0435 \u0441\u0435\u0440\u0435\u0434\u043e\u0432\u0438\u0449\u0435 \u0434\u043b\u044f \u0432\u0440\u044f\u0442\u043e\u0432\u0430\u043d\u043e\u0433\u043e \u0432\u0430\u043c\u0438 \u0441\u0442\u0430\u0440\u043e\u0433\u043e \u043a\u043e\u043c\u043f&#8217;\u044e\u0442\u0435\u0440\u0430,&nbsp;<\/li>\n\n\n\n<li>\u043f\u0440\u043e\u0441\u0442\u0456\u0440, \u0449\u043e \u043f\u0440\u0438\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u043a\u043e\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447\u0443 \u0434\u043b\u044f \u0432\u0431\u0443\u0434\u043e\u0432\u0430\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u0441\u0442\u0440\u043e\u044e,&nbsp;<\/li>\n\n\n\n<li>\u0442\u0435\u0441\u0442 \u043d\u043e\u0432\u043e\u0457 \u0441\u0438\u0441\u0442\u0435\u043c\u0438 \u0456\u043d\u0456\u0446\u0456\u0430\u043b\u0456\u0437\u0430\u0446\u0456\u0457 \u0430\u0431\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0437 \u0446\u0456\u043a\u0430\u0432\u043e\u0441\u0442\u0456.<\/li>\n<\/ul>\n\n\n\n<p>\u0412\u0436\u0435 \u043f\u0440\u043e\u0431\u0443\u0432\u0430\u043b\u0438 BusyBox? \u041f\u043e\u0434\u0456\u043b\u0456\u0442\u044c\u0441\u044f \u0432\u0440\u0430\u0436\u0435\u043d\u043d\u044f\u043c\u0438 \u0432 \u043a\u043e\u043c\u0435\u043d\u0442\u0430\u0440\u044f\u0445.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"has-very-light-gray-to-cyan-bluish-gray-gradient-background has-background\"><em>\u0410\u0432\u0442\u043e\u0440\u0441\u044c\u043a\u0456&nbsp;<\/em><a href=\"https:\/\/itedu.center\/ua\/?utm_source=blog-itedu&amp;utm_medium=referral&amp;utm_campaign=blog-old-articles\" target=\"_blank\" rel=\"noreferrer noopener\" data-wpel-link=\"internal\">\u0406\u0422-\u043a\u0443\u0440\u0441\u0438<\/a><em>&nbsp;\u0437 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0433\u043e \u0430\u0434\u043c\u0456\u043d\u0456\u0441\u0442\u0440\u0443\u0432\u0430\u043d\u043d\u044f \u0442\u0430 DevOps \u0443 \u043d\u0430\u0432\u0447\u0430\u043b\u044c\u043d\u043e\u043c\u0443 \u0446\u0435\u043d\u0442\u0440\u0456 IT Education Center.<\/em><\/p>\n<\/blockquote>\n\n\n\n<pre id=\"tw-target-text\" class=\"wp-block-preformatted\"><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0421\u0438\u0441\u0430\u0434\u043c\u0456\u043d\u0438, \u0430 \u0442\u0430\u043a\u043e\u0436 \u043a\u043e\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447\u0456 UNIX\/Linux-\u0441\u0438\u0441\u0442\u0435\u043c \u0437\u0432\u0438\u043a\u043b\u0438 \u0434\u043e \u0440\u043e\u0431\u043e\u0442\u0438 \u0437\u0456 \u0441\u0432\u043e\u0454\u044e \u0443\u043b\u044e\u0431\u043b\u0435\u043d\u043e\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u044e \u043e\u0431\u043e\u043b\u043e\u043d\u043a\u043e\u044e \u0442\u0430 \u0434\u043e \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u0438\u0445 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043d\u0438\u0445 \u0437\u0430\u0441\u043e\u0431\u0456\u0432. \u0410\u043b\u0435 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 \u0457\u0445 \u0437\u0430\u0432\u0436\u0434\u0438 \u0442\u0430 \u0432\u0441\u044e\u0434\u0438 \u043d\u0435\u043c\u043e\u0436\u043b\u0438\u0432\u043e. \u041d\u0430 \u0434\u043e\u043f\u043e\u043c\u043e\u0433\u0443 \u043f\u0440\u0438\u0439\u0434\u0435 BusyBox \u2014 \u0441\u043f\u0440\u043e\u0449\u0435\u043d\u0438\u0439 shell \u0437 \u043d\u0430\u0431\u043e\u0440\u043e\u043c \u043a\u043e\u043c\u043f\u0430\u043a\u0442\u043d\u0438\u0445 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u0438\u0445 \u0437\u0430\u0441\u043e\u0431\u0456\u0432. \u041a\u043e\u043c\u0430\u043d\u0434\u0438 Linux \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442\u044c\u0441\u044f \u0440\u0430\u0437\u043e\u043c \u0437 \u0441\u0438\u0441\u0442\u0435\u043c\u043e\u044e \u043f\u0440\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0446\u0456 \u0434\u0438\u0441\u0442\u0440\u043e. \u0414\u0435\u044f\u043a\u0456 \u0437 \u043e\u0441\u043d\u043e\u0432\u043d\u0438\u0445 \u043a\u043e\u043c\u0430\u043d\u0434, \u0442\u0430\u043a\u0456 \u044f\u043a cd, kill \u0456 echo, \u0444\u0430\u043a\u0442\u0438\u0447\u043d\u043e \u0432\u0431\u0443\u0434\u043e\u0432\u0430\u043d\u0456 \u0432 \u0432\u0430\u0448\u0443&hellip;<\/p>\n","protected":false},"author":4,"featured_media":30759,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[352],"tags":[364],"class_list":["post-30701","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-guides","tag-busybox"],"translation":{"provider":"WPGlobus","version":"3.0.2","language":"uk","enabled_languages":["uk"],"languages":{"uk":{"title":true,"content":true,"excerpt":false}}},"acf":[],"aioseo_notices":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/itedu.center\/ua\/blog\/wp-json\/wp\/v2\/posts\/30701","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itedu.center\/ua\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itedu.center\/ua\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itedu.center\/ua\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/itedu.center\/ua\/blog\/wp-json\/wp\/v2\/comments?post=30701"}],"version-history":[{"count":13,"href":"https:\/\/itedu.center\/ua\/blog\/wp-json\/wp\/v2\/posts\/30701\/revisions"}],"predecessor-version":[{"id":39355,"href":"https:\/\/itedu.center\/ua\/blog\/wp-json\/wp\/v2\/posts\/30701\/revisions\/39355"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/itedu.center\/ua\/blog\/wp-json\/wp\/v2\/media\/30759"}],"wp:attachment":[{"href":"https:\/\/itedu.center\/ua\/blog\/wp-json\/wp\/v2\/media?parent=30701"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itedu.center\/ua\/blog\/wp-json\/wp\/v2\/categories?post=30701"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itedu.center\/ua\/blog\/wp-json\/wp\/v2\/tags?post=30701"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}