{"id":36723,"date":"2019-10-31T22:13:23","date_gmt":"2019-10-31T19:13:23","guid":{"rendered":"https:\/\/prohoster.info\/blog\/eshhe-odno-mnenie-o-raznitse-mezhdu-bin-sbin-usr-bin-usr-sbin\/"},"modified":"2019-10-31T22:13:23","modified_gmt":"2019-10-31T19:13:23","slug":"eshhe-odno-mnenie-o-raznitse-mezhdu-bin-sbin-usr-bin-usr-sbin","status":"publish","type":"post","link":"https:\/\/prohoster.info\/es\/blog\/administrirovanie\/eshhe-odno-mnenie-o-raznitse-mezhdu-bin-sbin-usr-bin-usr-sbin","title":{"rendered":"Otra opini\u00f3n sobre la diferencia entre bin, sbin, usr\/bin, usr\/sbin","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<p>Recentemente descubr\u00ed este art\u00edculo: <noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/post\/143614\/\">La diferencia entre bin, sbin, usr\/bin, usr\/sbin<\/a><\/noindex>. Me gustar\u00eda compartir mi perspectiva sobre el est\u00e1ndar.<\/p>\n<h2>\/bin<\/h2>\n<p>\nContiene comandos que pueden ser utilizados tanto por administradores del sistema como por usuarios, pero que son necesarios cuando no est\u00e1n montados otros sistemas de archivos (por ejemplo, en modo de un solo usuario). Tambi\u00e9n puede incluir comandos que se utilizan indirectamente a trav\u00e9s de scripts.<\/p>\n<p>Se espera la presencia de los siguientes comandos:<\/p>\n<p><b>cat<\/b>, <b>chgrp<\/b>, <b>chmod<\/b>, <b>chown<\/b>, <b>cp<\/b>, <b>Muestra la fecha y hora actuales del sistema.<\/b>, <b>dd<\/b>, <b>df<\/b>, <b>dmesg<\/b>, <b>echo<\/b>, <b>false<\/b>, <b>hostname<\/b>, <b>kill<\/b>, <b>ln<\/b>, <b>login<\/b>, <b>Muestra el contenido del directorio. Si no se proporciona una ruta, se muestra el contenido del directorio actual.<\/b>, <b>mkdir<\/b>, <b>mknod<\/b>, <b>more<\/b>, <b>mount<\/b>, <b>mv<\/b>, <b>ps<\/b>, <b>pwd<\/b>, <b>rm<\/b>, <b>rmdir<\/b>, <b>sed<\/b>, <b>sh<\/b>, <b>stty<\/b>, <b>su<\/b>, <b>sync<\/b>, <b>true<\/b>, <b>umount<\/b>, <b>uname<\/b>.<\/p>\n<p>Se pueden crear enlaces simb\u00f3licos en \/usr, aunque en la era de systemd, \/usr en un dispositivo separado no se encuentra com\u00fanmente, a\u00fan puede encontrarse en sistemas integrados, sem\u00e1foros, cafeteras y en un PDP-11 que atiende un instrumento importante en uno de los laboratorios de la Academia de Ciencias.<\/p>\n<h2>\/sbin<\/h2>\n<p>\nLas utilidades utilizadas para la administraci\u00f3n del sistema (y otros comandos solo para root), \/sbin contiene archivos binarios necesarios para arrancar, rescatar, recuperar y\/o restaurar el sistema, adem\u00e1s de los archivos binarios en \/bin. Los programas que se ejecutan despu\u00e9s de que \/usr se monta (cuando no hay problemas) generalmente se colocan en \/usr\/sbin. Los programas de administraci\u00f3n del sistema instalados localmente deben colocarse en \/usr\/local\/sbin.<\/p>\n<p>Se esperan:<\/p>\n<p><b>fastboot, fasthalt, fdisk, fsck, getty, halt, ifconfig, init, mkfs, mkswap, reboot, route, swapon, swapoff, update<\/b>.<\/p>\n<p>Una forma de proteger el sistema de las manos traviesas de los usuarios es prohibir la ejecuci\u00f3n de estas utilidades a cualquiera, estableciendo el atributo x.<br \/>\nAdem\u00e1s, reemplazar \/bin y \/sbin con copias de un archivo (id\u00e9ntico para todos los sistemas similares) es una forma r\u00e1pida de reparar sistemas sin gestor de paquetes.<br \/>\n<noindex><a rel=\"nofollow\" name=\"habracut\"><\/a><\/noindex><\/p>\n<h2>\/usr\/bin<\/h2>\n<p>\nAqu\u00ed todo es simple. Comandos similares, id\u00e9nticos para todos los servidores\/cafeteras de la empresa. Y el mismo \/usr puede desplegarse igual para diferentes sistemas operativos (para \/bin y \/sbin esto generalmente no funciona), son programas arquitect\u00f3nicamente independientes. Puede contener enlaces a int\u00e9rpretes de perl o python que se encuentran en \/opt o en alguna parte de la red.<\/p>\n<h2>\/usr\/sbin<\/h2>\n<p>\nLo mismo que \/usr\/bin, pero solo para uso de administradores.<\/p>\n<h2>\/usr\/local\/bin \u0438 \/usr\/local\/sbin<\/h2>\n<p>\nUna de las ubicaciones m\u00e1s importantes. A diferencia de las dem\u00e1s, \/usr no puede ser igual para toda la organizaci\u00f3n. Aqu\u00ed se encuentran programas dependientes del sistema operativo, dependientes del hardware y simplemente programas que no son necesarios en todos los dispositivos. Al sincronizar \/usr en las m\u00e1quinas, se debe excluir \/usr\/local.<\/p>\n<h2>\/home\/$USER\/bin<\/h2>\n<p>\nAqu\u00ed hay un caso similar al de \/usr\/local, donde se encuentran programas espec\u00edficos para el usuario en cuesti\u00f3n. Se pueden transferir (o sincronizar) a otra m\u00e1quina al mudarse el usuario. Lo que no se puede transferir se almacena en \/home\/$USER\/.local\/bin. Se puede usar local sin el punto. \/home\/$USER\/sbin est\u00e1 ausente por razones evidentes.<\/p>\n<p>Agradezco cualquier correcci\u00f3n o adici\u00f3n.<\/p>\n<p>Fuente: <a content=\"nofollow\" rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/post\/462045\/\">habr.com<\/a><\/p>","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"<p>\u041d\u0435\u0434\u0430\u0432\u043d\u043e \u044f \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b \u0432\u043e\u0442 \u0442\u0430\u043a\u0443\u044e \u0441\u0442\u0430\u0442\u044c\u044e: \u0420\u0430\u0437\u043d\u0438\u0446\u0430 \u043c\u0435\u0436\u0434\u0443 bin, sbin, usr\/bin, usr\/sbin. \u0425\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0431\u044b \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0441\u0432\u043e\u0438\u043c \u0432\u0437\u0433\u043b\u044f\u0434\u043e\u043c \u043d\u0430 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442. \/bin \u0421\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043a\u043e\u043c\u0430\u043d\u0434\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0433\u0443\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043a\u0430\u043a \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u043c \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u043e\u043c, \u0442\u0430\u043a \u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c\u0438, \u043d\u043e \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b, \u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u0441\u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u043d\u0438\u043a\u0430\u043a\u0438\u0435 \u0434\u0440\u0443\u0433\u0438\u0435 \u0444\u0430\u0439\u043b\u043e\u0432\u044b\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432 \u043e\u0434\u043d\u043e\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435). \u041e\u043d \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u0435\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043a\u043e\u0441\u0432\u0435\u043d\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0441\u043a\u0440\u0438\u043f\u0442\u0430\u043c\u0438. \u0422\u0430\u043c [&hellip;]<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[688],"tags":[],"class_list":["post-36723","post","type-post","status-publish","format-standard","hentry","category-administrirovanie"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.2 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u041d\u0435\u0434\u0430\u0432\u043d\u043e \u044f \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b \u0432\u043e\u0442 \u0442\u0430\u043a\u0443\u044e \u0441\u0442\u0430\u0442\u044c\u044e: \u0420\u0430\u0437\u043d\u0438\u0446\u0430 \u043c\u0435\u0436\u0434\u0443 bin, sbin, usr\/bin, usr\/sbin.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Yuri Gagarin\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/prohoster.info\/es\/blog\/administrirovanie\/eshhe-odno-mnenie-o-raznitse-mezhdu-bin-sbin-usr-bin-usr-sbin\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.2\" \/>\n\t\t<meta property=\"og:locale\" content=\"es_ES\" \/>\n\t\t<meta property=\"og:site_name\" content=\"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\ud83e\udd47\u0415\u0449\u0435 \u043e\u0434\u043d\u043e \u043c\u043d\u0435\u043d\u0438\u0435 \u043e \u0440\u0430\u0437\u043d\u0438\u0446\u0435 \u043c\u0435\u0436\u0434\u0443 bin, sbin, usr\/bin, usr\/sbin | ProHoster\" \/>\n\t\t<meta property=\"og:description\" content=\"\u041d\u0435\u0434\u0430\u0432\u043d\u043e \u044f \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b \u0432\u043e\u0442 \u0442\u0430\u043a\u0443\u044e \u0441\u0442\u0430\u0442\u044c\u044e: \u0420\u0430\u0437\u043d\u0438\u0446\u0430 \u043c\u0435\u0436\u0434\u0443 bin, sbin, usr\/bin, usr\/sbin.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/prohoster.info\/es\/blog\/administrirovanie\/eshhe-odno-mnenie-o-raznitse-mezhdu-bin-sbin-usr-bin-usr-sbin\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"350\" \/>\n\t\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2019-10-31T19:13:23+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2019-10-31T19:13:23+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\ud83e\udd47Otra opini\u00f3n sobre la diferencia entre bin, sbin, usr\/bin, usr\/sbin | ProHoster","description":"Recientemente descubr\u00ed este art\u00edculo: La diferencia entre bin, sbin, usr\/bin, usr\/sbin.","canonical_url":"https:\/\/prohoster.info\/es\/blog\/administrirovanie\/eshhe-odno-mnenie-o-raznitse-mezhdu-bin-sbin-usr-bin-usr-sbin","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"es_ES","og:site_name":"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b","og:type":"article","og:title":"\ud83e\udd47\u0415\u0449\u0435 \u043e\u0434\u043d\u043e \u043c\u043d\u0435\u043d\u0438\u0435 \u043e \u0440\u0430\u0437\u043d\u0438\u0446\u0435 \u043c\u0435\u0436\u0434\u0443 bin, sbin, usr\/bin, usr\/sbin | ProHoster","og:description":"\u041d\u0435\u0434\u0430\u0432\u043d\u043e \u044f \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b \u0432\u043e\u0442 \u0442\u0430\u043a\u0443\u044e \u0441\u0442\u0430\u0442\u044c\u044e: \u0420\u0430\u0437\u043d\u0438\u0446\u0430 \u043c\u0435\u0436\u0434\u0443 bin, sbin, usr\/bin, usr\/sbin.","og:url":"https:\/\/prohoster.info\/es\/blog\/administrirovanie\/eshhe-odno-mnenie-o-raznitse-mezhdu-bin-sbin-usr-bin-usr-sbin","og:image":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:secure_url":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:width":350,"og:image:height":350,"article:published_time":"2019-10-31T19:13:23+00:00","article:modified_time":"2019-10-31T19:13:23+00:00","article:publisher":"https:\/\/www.facebook.com\/prohoster","article:author":"https:\/\/www.facebook.com\/prohoster"},"aioseo_meta_data":{"post_id":"36723","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"seo_analyzer_scan_date":"2026-01-22 04:34:22","breadcrumb_settings":null,"limit_modified_date":false,"reviewed_by":null,"ai":null,"created":"2021-03-01 01:40:22","updated":"2026-01-22 04:34:22","focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/prohoster.info\/es\/wp-json\/wp\/v2\/posts\/36723","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/es\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/es\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/es\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/es\/wp-json\/wp\/v2\/comments?post=36723"}],"version-history":[{"count":0,"href":"https:\/\/prohoster.info\/es\/wp-json\/wp\/v2\/posts\/36723\/revisions"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/es\/wp-json\/wp\/v2\/media?parent=36723"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/es\/wp-json\/wp\/v2\/categories?post=36723"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/es\/wp-json\/wp\/v2\/tags?post=36723"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}