{"id":118,"date":"2013-11-22T09:18:00","date_gmt":"2013-11-22T06:18:00","guid":{"rendered":"http:\/\/blog.successionua.com\/?p=118"},"modified":"2013-11-22T09:18:00","modified_gmt":"2013-11-22T06:18:00","slug":"%d0%bf%d0%be%d0%bb%d0%b5%d0%b7%d0%bd%d1%8b%d0%b5-bash-shell-%d0%ba%d0%be%d0%bc%d0%b0%d0%bd%d0%b4%d1%8b-%d0%b8-%d0%be%d0%b4%d0%bd%d0%be%d1%81%d1%82%d1%80%d0%be%d1%87%d0%bd%d1%8b%d0%b5-%d1%81%d0%ba","status":"publish","type":"post","link":"https:\/\/geckich.space\/?p=118","title":{"rendered":"\u041f\u043e\u043b\u0435\u0437\u043d\u044b\u0435 Bash Shell \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0438 \u043e\u0434\u043d\u043e\u0441\u0442\u0440\u043e\u0447\u043d\u044b\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u044b"},"content":{"rendered":"<div dir=\"ltr\" style=\"text-align: left;\">\n\u0422. \u043a. \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0432\u0441\u044f\u043a\u0438\u0445 \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0439 \u043a\u043e\u043c\u0430\u043d\u0434 \u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u0438\u043a\u043e\u0432 \u0434\u043b\u044f \u043a\u043e\u043d\u0441\u043e\u043b\u0438 Linux \u043d\u0435\u0443\u043a\u043b\u043e\u043d\u043d\u043e \u0440\u0430\u0441\u0442\u0435\u0442 \u0438 \u0432\u0441\u0435\u0445 \u0438\u0445 \u043d\u0435 \u0443\u043f\u043e\u043c\u043d\u0438\u0448\u044c, \u0431\u0443\u0434\u0443 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0441\u044e\u0434\u0430 \u0447\u0442\u043e-\u043d\u0438\u0431\u0443\u0434\u044c \u044d\u0434\u0430\u043a\u043e\u0435 \u043f\u043e\u043b\u0435\u0437\u043d\u043e\u0435.<br \/>\n\u0421\u0442\u0430\u0442\u044c\u044f \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u043f\u043e\u043b\u043d\u044f\u0442\u044c\u0441\u044f.<br \/>\n1. \u0421\u0434\u0435\u043b\u0430\u0442\u044c \u0447\u0442\u043e-\u043b\u0438\u0431\u043e \u0441\u043e \u0432\u0441\u0435\u043c\u0438 \u0444\u0430\u0439\u043b\u0430\u043c\u0438 \u0432 \u043f\u0430\u043f\u043a\u0435, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0440\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u0430\u0442\u044c \u0432\u0441\u0435 zip \u0430\u0440\u0445\u0438\u0432\u044b \u0432 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u043f\u0430\u043f\u043a\u0435:<br \/>\n<b><span style=\"color: #e69138;\">for f in *.zip ; do unzip $f ; done<\/span><\/b><br \/>\n2. \u0422\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435, \u0442\u043e\u043b\u044c\u043a\u043e \u0441 \u0444\u0430\u0439\u043b\u0430\u043c\u0438 \u0438\u0437 \u043f\u043e\u0434\u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0439 \u0442\u0435\u043a\u0443\u0449\u0435\u0439. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c rpm \u043f\u0430\u043a\u0435\u0442\u044b:<br \/>\n<b><span style=\"color: #e69138;\">for D in *; do [ -d &#8220;${D}&#8221; ] &amp;&amp; yum install ${D}\/*.rpm ; done<\/span><\/b><br \/>\n3. \u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0432 \u0433\u0440\u0443\u043f\u043f\u0443:<br \/>\n<b><span style=\"color: #e69138;\">usermod -a -G group user<\/span><\/b><br \/>\n4. \u041a\u0430\u043a \u0440\u0430\u0441\u0448\u0430\u0440\u0438\u0442\u044c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u043f\u0430\u043f\u043a\u0438 \u043f\u043e \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0443 HTTP.<br \/>\n\u0417\u0430\u0445\u043e\u0434\u0438\u043c \u0432 \u043d\u0443\u0436\u043d\u0443\u044e \u043f\u0430\u043f\u043a\u0443 \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0443:<br \/>\n<b><span style=\"color: #e69138;\">python -m SimpleHTTPServer 8080<\/span><\/b><br \/>\n\u0414\u0430\u043b\u0435\u0435 \u0437\u0430\u0439\u0434\u044f \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 <b><span style=\"color: #e69138;\">http:\/\/ip_of_that_server:8080<\/span><\/b>, \u043c\u044b \u0443\u0432\u0438\u0434\u0438\u043c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0441 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c\u044e \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u0438 \u0438 \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u044f \u0444\u0430\u0439\u043b\u043e\u0432:<\/p>\n<div style=\"clear: both; text-align: center;\"><a style=\"margin-left: 1em; margin-right: 1em;\" href=\"http:\/\/3.bp.blogspot.com\/-_3RpOEV4wvQ\/UvUI2wWi7-I\/AAAAAAAADlI\/fed1tTMloig\/s1600\/Screenshot+from+2014-02-07+18:03:58.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/3.bp.blogspot.com\/-_3RpOEV4wvQ\/UvUI2wWi7-I\/AAAAAAAADlI\/fed1tTMloig\/s1600\/Screenshot+from+2014-02-07+18:03:58.png\" width=\"320\" height=\"281\" border=\"0\" \/><\/a><\/div>\n<p>5. \u041f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e Virtual Hosts \u0434\u043b\u044f apache2 \u0432 Debian Linux:<br \/>\n<b><span style=\"color: #e69138;\">apache2ctl -t -D DUMP_VHOSTS<\/span><\/b><br \/>\n6. \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0444\u0430\u0439\u043b\u0430 \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0430:<br \/>\n<b><span style=\"color: #e69138;\">truncate -s 14M filename<\/span><\/b><\/p>\n<div><\/div>\n<div>\n7. \u0417\u0430\u043c\u0435\u043d\u0430 \u0441\u0442\u0440\u043e\u0447\u0435\u043a \u0432 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u043c \u0444\u0430\u0439\u043b\u0435:<br \/>\n<b><span style=\"color: #e69138;\">sed -Ei &#8216;s\/foo|bar|baz\/foobar\/g&#8217; file<\/span><\/b>\n<\/div>\n<div><\/div>\n<div>\n\u0417\u0430\u043c\u0435\u043d\u0438\u0442\u044c foo, bar \u0438\u043b\u0438 baz \u043d\u0430 foobar<br \/>\n8. \u041f\u043e\u0434\u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c CD-ROM \u0441 \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u0435\u043c \u0442\u0438\u043f\u0430 \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b:<br \/>\n<b><span style=\"color: #e69138;\">mount -t iso9660 \/dev\/scd0 \/media\/cdrom<\/span><\/b>\n<\/div>\n<\/div>\n<div>9. \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u044f\u0434\u0440\u0430 Linux:<\/div>\n<div><\/div>\n<div><strong><span style=\"color: #ff9900;\">cat \/proc\/cmdline<\/span><\/strong><\/div>\n<div><\/div>\n<div>10. \u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u043a\u043e\u043c\u043f\u0440\u0435\u0441\u0441\u0438\u0438 \u0432 tar:<\/div>\n<div><\/div>\n<div><span style=\"color: #ff9900;\"><strong>env GZIP=-9 tar cvzf file.tar.gz \/path\/to\/directory<\/strong><\/span><\/div>\n<div><\/div>\n<div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u0422. \u043a. \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0432\u0441\u044f\u043a\u0438\u0445 \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0439 \u043a\u043e\u043c\u0430\u043d\u0434 \u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u0438\u043a\u043e\u0432 \u0434\u043b\u044f \u043a\u043e\u043d\u0441\u043e\u043b\u0438 Linux \u043d\u0435\u0443\u043a\u043b\u043e\u043d\u043d\u043e \u0440\u0430\u0441\u0442\u0435\u0442 \u0438 \u0432\u0441\u0435\u0445 \u0438\u0445 \u043d\u0435 \u0443\u043f\u043e\u043c\u043d\u0438\u0448\u044c, \u0431\u0443\u0434\u0443 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0441\u044e\u0434\u0430 \u0447\u0442\u043e-\u043d\u0438\u0431\u0443\u0434\u044c \u044d\u0434\u0430\u043a\u043e\u0435 \u043f\u043e\u043b\u0435\u0437\u043d\u043e\u0435. \u0421\u0442\u0430\u0442\u044c\u044f \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u043f\u043e\u043b\u043d\u044f\u0442\u044c\u0441\u044f. 1. \u0421\u0434\u0435\u043b\u0430\u0442\u044c \u0447\u0442\u043e-\u043b\u0438\u0431\u043e \u0441\u043e \u0432\u0441\u0435\u043c\u0438 \u0444\u0430\u0439\u043b\u0430\u043c\u0438 \u0432 \u043f\u0430\u043f\u043a\u0435, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0440\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u0430\u0442\u044c \u0432\u0441\u0435 zip \u0430\u0440\u0445\u0438\u0432\u044b \u0432 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u043f\u0430\u043f\u043a\u0435: for f in *.zip ; do unzip $f ; done 2. \u0422\u043e &hellip; <a href=\"https:\/\/geckich.space\/?p=118\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">\u041f\u043e\u043b\u0435\u0437\u043d\u044b\u0435 Bash Shell \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0438 \u043e\u0434\u043d\u043e\u0441\u0442\u0440\u043e\u0447\u043d\u044b\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u044b<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[10,11],"tags":[],"class_list":["post-118","post","type-post","status-publish","format-standard","hentry","category-linux","category-programming"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/geckich.space\/index.php?rest_route=\/wp\/v2\/posts\/118","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/geckich.space\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/geckich.space\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/geckich.space\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/geckich.space\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=118"}],"version-history":[{"count":0,"href":"https:\/\/geckich.space\/index.php?rest_route=\/wp\/v2\/posts\/118\/revisions"}],"wp:attachment":[{"href":"https:\/\/geckich.space\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=118"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/geckich.space\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=118"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/geckich.space\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=118"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}