{"id":12357,"date":"2023-12-31T02:04:21","date_gmt":"2023-12-30T22:34:21","guid":{"rendered":"https:\/\/rasanegar.com\/blog\/%da%a9%d8%af-%d8%ae%d8%b1%d9%88%d8%ac-bash-%d8%a2%d8%ae%d8%b1%db%8c%d9%86-%d9%81%d8%b1%d9%85%d8%a7%d9%86\/"},"modified":"2023-12-31T02:04:21","modified_gmt":"2023-12-30T22:34:21","slug":"%da%a9%d8%af-%d8%ae%d8%b1%d9%88%d8%ac-bash-%d8%a2%d8%ae%d8%b1%db%8c%d9%86-%d9%81%d8%b1%d9%85%d8%a7%d9%86","status":"publish","type":"post","link":"https:\/\/rasanegaar.com\/blog\/%da%a9%d8%af-%d8%ae%d8%b1%d9%88%d8%ac-bash-%d8%a2%d8%ae%d8%b1%db%8c%d9%86-%d9%81%d8%b1%d9%85%d8%a7%d9%86\/","title":{"rendered":"\u06a9\u062f \u062e\u0631\u0648\u062c Bash \u0622\u062e\u0631\u06cc\u0646 \u0641\u0631\u0645\u0627\u0646"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_85 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\"><p class=\"ez-toc-title\" style=\"cursor:inherit\">\u0633\u0631\u0641\u0635\u0644\u0647\u0627\u06cc \u0645\u0637\u0644\u0628<\/p>\n<\/div><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/rasanegaar.com\/blog\/%da%a9%d8%af-%d8%ae%d8%b1%d9%88%d8%ac-bash-%d8%a2%d8%ae%d8%b1%db%8c%d9%86-%d9%81%d8%b1%d9%85%d8%a7%d9%86\/#%da%a9%d8%af_%d8%ae%d8%b1%d9%88%d8%ac_bash\" >\u06a9\u062f \u062e\u0631\u0648\u062c Bash<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/rasanegaar.com\/blog\/%da%a9%d8%af-%d8%ae%d8%b1%d9%88%d8%ac-bash-%d8%a2%d8%ae%d8%b1%db%8c%d9%86-%d9%81%d8%b1%d9%85%d8%a7%d9%86\/#%d8%a8%d8%b1%d8%b1%d8%b3%db%8c_%da%a9%d8%af_%d8%ae%d8%b1%d9%88%d8%ac_bash\" >\u0628\u0631\u0631\u0633\u06cc \u06a9\u062f \u062e\u0631\u0648\u062c Bash<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/rasanegaar.com\/blog\/%da%a9%d8%af-%d8%ae%d8%b1%d9%88%d8%ac-bash-%d8%a2%d8%ae%d8%b1%db%8c%d9%86-%d9%81%d8%b1%d9%85%d8%a7%d9%86\/#%da%af%d9%86%d8%ac%d8%a7%d9%86%d8%af%d9%86_%da%a9%d8%af_%d8%ae%d8%b1%d9%88%d8%ac_%d8%af%d8%b1_%d8%a7%d8%b3%da%a9%d8%b1%db%8c%d9%be%d8%aa_%d9%87%d8%a7\" >\u06af\u0646\u062c\u0627\u0646\u062f\u0646 \u06a9\u062f \u062e\u0631\u0648\u062c \u062f\u0631 \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u0647\u0627<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/rasanegaar.com\/blog\/%da%a9%d8%af-%d8%ae%d8%b1%d9%88%d8%ac-bash-%d8%a2%d8%ae%d8%b1%db%8c%d9%86-%d9%81%d8%b1%d9%85%d8%a7%d9%86\/#%d8%aa%d9%88%d8%b6%db%8c%d8%ad_%d9%85%d9%82%d8%af%d8%a7%d8%b1_%da%a9%d8%af_%d8%ae%d8%b1%d9%88%d8%ac\" >\u062a\u0648\u0636\u06cc\u062d \u0645\u0642\u062f\u0627\u0631 \u06a9\u062f \u062e\u0631\u0648\u062c<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/rasanegaar.com\/blog\/%da%a9%d8%af-%d8%ae%d8%b1%d9%88%d8%ac-bash-%d8%a2%d8%ae%d8%b1%db%8c%d9%86-%d9%81%d8%b1%d9%85%d8%a7%d9%86\/#%d8%aa%d8%b9%d8%b1%db%8c%d9%81_%d9%88%d8%b6%d8%b9%db%8c%d8%aa_%d8%ae%d8%b1%d9%88%d8%ac_%d8%af%d8%b1_%d8%a7%d8%b3%da%a9%d8%b1%db%8c%d9%be%d8%aa\" >\u062a\u0639\u0631\u06cc\u0641 \u0648\u0636\u0639\u06cc\u062a \u062e\u0631\u0648\u062c \u062f\u0631 \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/rasanegaar.com\/blog\/%da%a9%d8%af-%d8%ae%d8%b1%d9%88%d8%ac-bash-%d8%a2%d8%ae%d8%b1%db%8c%d9%86-%d9%81%d8%b1%d9%85%d8%a7%d9%86\/#%d8%a7%d9%81%da%a9%d8%a7%d8%b1_%d9%86%d9%87%d8%a7%db%8c%db%8c\" >\u0627\u0641\u06a9\u0627\u0631 \u0646\u0647\u0627\u06cc\u06cc<\/a><\/li><\/ul><\/nav><\/div>\n<span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">\u0632\u0645\u0627\u0646 \u0644\u0627\u0632\u0645 \u0628\u0631\u0627\u06cc \u0645\u0637\u0627\u0644\u0639\u0647: <\/span> <span class=\"rt-time\"> 3<\/span> <span class=\"rt-label rt-postfix\">\u062f\u0642\u06cc\u0642\u0647<\/span><\/span><p> <br \/>\n<\/p>\n<div id=\"wpbody\">\n<div class=\"adthrive-video-player in-post\" itemscope itemtype=\"https:\/\/schema.org\/VideoObject\" data-video-id=\"RXCFkaWn\" data-player-type=\"collapse\" override-embed=\"true\">\n\t\t\t<meta itemprop=\"uploadDate\" content=\"2023-01-03T16:56:33.000Z\"><br \/>\n\t\t<meta itemprop=\"name\" content=\"Bash Exit Code of Last Command\"><br \/>\n\t\t<meta itemprop=\"description\" content=\"Bash Exit Code of Last Command\"><br \/>\n\t\t<meta itemprop=\"thumbnailUrl\" content=\"https:\/\/content.jwplatform.com\/thumbs\/RXCFkaWn-720.jpg\"><br \/>\n\t\t<meta itemprop=\"contentUrl\" content=\"https:\/\/content.jwplatform.com\/videos\/RXCFkaWn.mp4\">\n\t<\/div>\n<p><\/p>\n<p>\u0648\u0642\u062a\u06cc \u06cc\u06a9 bash \u062f\u0633\u062a\u0648\u0631 \u0627\u062c\u0631\u0627 \u0645\u06cc \u0634\u0648\u062f\u060c \u0635\u0631\u0641 \u0646\u0638\u0631 \u0627\u0632 \u0627\u062c\u0631\u0627\u06cc \u0645\u0648\u0641\u0642\u06cc\u062a \u0622\u0645\u06cc\u0632 \u06cc\u0627 \u0646\u0627\u0645\u0648\u0641\u0642\u060c \u06a9\u062f \u062e\u0631\u0648\u062c \u0631\u0627 \u067e\u0634\u062a \u0633\u0631 \u0645\u06cc \u06af\u0630\u0627\u0631\u062f.  \u0628\u0631\u0631\u0633\u06cc \u06a9\u062f \u062e\u0631\u0648\u062c \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u062f \u0628\u06cc\u0646\u0634 \u0645\u0641\u06cc\u062f\u06cc \u062f\u0631 \u0645\u0648\u0631\u062f \u0631\u0641\u062a\u0627\u0631 \u0622\u062e\u0631\u06cc\u0646 \u0627\u062c\u0631\u0627\u06cc \u0641\u0631\u0645\u0627\u0646 \u0627\u0631\u0627\u0626\u0647 \u062f\u0647\u062f.<\/p>\n<p>\u062f\u0631 \u0627\u06cc\u0646 \u0631\u0627\u0647\u0646\u0645\u0627\u060c \u0631\u0648\u0634 \u0628\u0631\u0631\u0633\u06cc \u0631\u0627 \u0628\u0631\u0631\u0633\u06cc \u06a9\u0646\u06cc\u062f bash \u06a9\u062f \u062e\u0631\u0648\u062c \u0627\u0632 \u0622\u062e\u0631\u06cc\u0646 \u062f\u0633\u062a\u0648\u0631 \u0648 \u0628\u0631\u062e\u06cc \u06a9\u0627\u0631\u0628\u0631\u062f\u0647\u0627\u06cc \u0627\u062d\u062a\u0645\u0627\u0644\u06cc \u0622\u0646.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%da%a9%d8%af_%d8%ae%d8%b1%d9%88%d8%ac_bash\"><\/span>\u06a9\u062f \u062e\u0631\u0648\u062c Bash<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u0647\u0631 \u0641\u0631\u0645\u0627\u0646 \u06cc\u0648\u0646\u06cc\u06a9\u0633\/\u0644\u06cc\u0646\u0648\u06a9\u0633 \u06a9\u0647 \u062a\u0648\u0633\u0637 \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u067e\u0648\u0633\u062a\u0647 \u06cc\u0627 \u06a9\u0627\u0631\u0628\u0631 \u0627\u062c\u0631\u0627 \u0645\u06cc\u200c\u0634\u0648\u062f\u060c \u0648\u0636\u0639\u06cc\u062a \u062e\u0631\u0648\u062c \u0631\u0627 \u0628\u0647 \u062c\u0627 \u0645\u06cc\u200c\u06af\u0630\u0627\u0631\u062f.  \u0627\u06cc\u0646 \u06cc\u06a9 \u0639\u062f\u062f \u0635\u062d\u06cc\u062d \u0627\u0633\u062a \u06a9\u0647 \u0628\u062f\u0648\u0646 \u062a\u063a\u06cc\u06cc\u0631 \u0628\u0627\u0642\u06cc \u0645\u06cc \u0645\u0627\u0646\u062f \u0645\u06af\u0631 \u0627\u06cc\u0646\u06a9\u0647 \u062f\u0633\u062a\u0648\u0631 \u0628\u0639\u062f\u06cc \u0627\u062c\u0631\u0627 \u0634\u0648\u062f.  \u0627\u06af\u0631 \u06a9\u062f \u062e\u0631\u0648\u062c 0 \u0628\u0627\u0634\u062f\u060c \u062f\u0633\u062a\u0648\u0631 \u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u0627\u0646\u062c\u0627\u0645 \u0634\u062f.  \u0627\u06af\u0631 \u06a9\u062f \u062e\u0631\u0648\u062c \u063a\u06cc\u0631 \u0635\u0641\u0631 (1-255) \u0628\u0627\u0634\u062f\u060c \u0646\u0634\u0627\u0646 \u062f\u0647\u0646\u062f\u0647 \u06cc\u06a9 \u062e\u0637\u0627 \u0627\u0633\u062a.<\/p>\n<p>\u06a9\u0627\u0631\u0628\u0631\u062f\u0647\u0627\u06cc \u0628\u0627\u0644\u0642\u0648\u0647 \u0632\u06cc\u0627\u062f\u06cc \u0627\u0632 \u0622\u0646 \u0648\u062c\u0648\u062f \u062f\u0627\u0631\u062f bash \u06a9\u062f \u062e\u0631\u0648\u062c  \u0628\u062f\u06cc\u0647\u06cc \u062a\u0631\u06cc\u0646 \u0645\u0648\u0631\u062f\u060c \u0627\u0644\u0628\u062a\u0647\u060c \u0628\u0631\u0631\u0633\u06cc \u0627\u06cc\u0646 \u0627\u0633\u062a \u06a9\u0647 \u0622\u06cc\u0627 \u0622\u062e\u0631\u06cc\u0646 \u062f\u0633\u062a\u0648\u0631 \u0628\u0647 \u062f\u0631\u0633\u062a\u06cc \u0627\u062c\u0631\u0627 \u0634\u062f\u0647 \u0627\u0633\u062a\u060c \u0628\u0647 \u062e\u0635\u0648\u0635 \u0627\u06af\u0631 \u062f\u0633\u062a\u0648\u0631 \u0647\u06cc\u0686 \u062e\u0631\u0648\u062c\u06cc \u0627\u06cc\u062c\u0627\u062f \u0646\u06a9\u0646\u062f.<\/p>\n<p>\u062f\u0631 \u0634\u0631\u0627\u06cc\u0637\u06cc \u06a9\u0647 bash\u060c \u06a9\u062f \u062e\u0631\u0648\u062c\u06cc \u062f\u0633\u062a\u0648\u0631 \u0642\u0628\u0644\u06cc \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0645\u062a\u063a\u06cc\u0631 \u067e\u0648\u0633\u062a\u0647 \u201c$?\u201d \u0642\u0627\u0628\u0644 \u062f\u0633\u062a\u0631\u0633\u06cc \u0627\u0633\u062a.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%d8%a8%d8%b1%d8%b1%d8%b3%db%8c_%da%a9%d8%af_%d8%ae%d8%b1%d9%88%d8%ac_bash\"><\/span>\u0628\u0631\u0631\u0633\u06cc \u06a9\u062f \u062e\u0631\u0648\u062c Bash<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc a terminal\u0648 \u0647\u0631 \u062f\u0633\u062a\u0648\u0631\u06cc \u0631\u0627 \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f.<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\">\n<div class=\"bash codecolorer\"><span class=\"co4\">$ <\/span><span class=\"kw2\">\u062a\u0627\u0631\u06cc\u062e<\/span><\/div>\n<\/div>\n<p>\u0645\u0642\u062f\u0627\u0631 \u0645\u062a\u063a\u06cc\u0631 \u067e\u0648\u0633\u062a\u0647 &#8220;$?&#8221; \u0631\u0627 \u0628\u0631\u0631\u0633\u06cc \u06a9\u0646\u06cc\u062f.  \u0628\u0631\u0627\u06cc \u06a9\u062f \u062e\u0631\u0648\u062c<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\">\n<div class=\"bash codecolorer\"><span class=\"co4\">$ <\/span><span class=\"kw3\">echo<\/span> <span class=\"re4\">\u062f\u0644\u0627\u0631\u061f<\/span><\/div>\n<\/div>\n<p><img decoding=\"async\" fetchpriority=\"high\" src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/\u06a9\u062f-\u062e\u0631\u0648\u062c-Bash-\u0622\u062e\u0631\u06cc\u0646-\u0641\u0631\u0645\u0627\u0646.png\" alt=\"\" width=\"1296\" height=\"189\" class=\"aligncenter size-full wp-image-96393\" srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/\u06a9\u062f-\u062e\u0631\u0648\u062c-Bash-\u0622\u062e\u0631\u06cc\u0646-\u0641\u0631\u0645\u0627\u0646.png 1296w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_1-300x44.png 300w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_1-1024x149.png 1024w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_1-768x112.png 768w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_1-810x118.png 810w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_1-1140x166.png 1140w\" sizes=\"(max-width: 1296px) 100vw, 1296px\" title=\"\"><\/p>\n<p>\u0627\u0632 \u0622\u0646\u062c\u0627\u06cc\u06cc \u06a9\u0647 \u062f\u0633\u062a\u0648\u0631 &#8220;\u062a\u0627\u0631\u06cc\u062e&#8221; \u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u0627\u062c\u0631\u0627 \u0634\u062f\u060c \u06a9\u062f \u062e\u0631\u0648\u062c 0 \u0627\u0633\u062a. \u0627\u06af\u0631 \u062e\u0637\u0627\u06cc\u06cc \u0648\u062c\u0648\u062f \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u062f \u0686\u0647 \u0627\u062a\u0641\u0627\u0642\u06cc \u0645\u06cc \u0627\u0641\u062a\u062f\u061f<\/p>\n<p>\u0628\u06cc\u0627\u06cc\u06cc\u062f \u062f\u0633\u062a\u0648\u0631\u06cc \u0631\u0627 \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u0645 \u06a9\u0647 \u0648\u062c\u0648\u062f \u0646\u062f\u0627\u0631\u062f.<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\">\n<div class=\"bash codecolorer\"><span class=\"co4\">$ <\/span>\u0622 \u0628 \u067e \u062a<\/div>\n<\/div>\n<p>\u06a9\u062f \u062e\u0631\u0648\u062c \u0631\u0627 \u0628\u0631\u0631\u0633\u06cc \u06a9\u0646\u06cc\u062f.<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\">\n<div class=\"bash codecolorer\"><span class=\"co4\">$ <\/span><span class=\"kw3\">echo<\/span> <span class=\"re4\">\u062f\u0644\u0627\u0631\u061f<\/span><\/div>\n<\/div>\n<p><img decoding=\"async\" src=\"data:image\/svg+xml,%3Csvg%20xmlns=\" alt=\"\" width=\"1296\" height=\"416\" class=\"aligncenter size-full wp-image-96394\" data-lazy-srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703975651_520_\u06a9\u062f-\u062e\u0631\u0648\u062c-Bash-\u0622\u062e\u0631\u06cc\u0646-\u0641\u0631\u0645\u0627\u0646.png 1296w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_2-300x96.png 300w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_2-1024x329.png 1024w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_2-768x247.png 768w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_2-810x260.png 810w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_2-1140x366.png 1140w\" data-lazy-sizes=\"(max-width: 1296px) 100vw, 1296px\" data-lazy-src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703975651_520_\u06a9\u062f-\u062e\u0631\u0648\u062c-Bash-\u0622\u062e\u0631\u06cc\u0646-\u0641\u0631\u0645\u0627\u0646.png\" http: title=\"\"><img decoding=\"async\" src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703975651_520_\u06a9\u062f-\u062e\u0631\u0648\u062c-Bash-\u0622\u062e\u0631\u06cc\u0646-\u0641\u0631\u0645\u0627\u0646.png\" alt=\"\" width=\"1296\" height=\"416\" class=\"aligncenter size-full wp-image-96394\" srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703975651_520_\u06a9\u062f-\u062e\u0631\u0648\u062c-Bash-\u0622\u062e\u0631\u06cc\u0646-\u0641\u0631\u0645\u0627\u0646.png 1296w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_2-300x96.png 300w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_2-1024x329.png 1024w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_2-768x247.png 768w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_2-810x260.png 810w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_2-1140x366.png 1140w\" sizes=\"(max-width: 1296px) 100vw, 1296px\" title=\"\"><\/p>\n<p>\u0627\u06cc\u0646 \u06cc\u06a9 \u0645\u0642\u062f\u0627\u0631 \u063a\u06cc\u0631 \u0635\u0641\u0631 \u0627\u0633\u062a \u06a9\u0647 \u0646\u0634\u0627\u0646 \u0645\u06cc \u062f\u0647\u062f \u062f\u0633\u062a\u0648\u0631 \u0642\u0628\u0644\u06cc \u0628\u0647 \u062f\u0631\u0633\u062a\u06cc \u0627\u062c\u0631\u0627 \u0646\u0634\u062f\u0647 \u0627\u0633\u062a.<\/p>\n<p>\u062d\u0627\u0644\u0627 \u0628\u0647 \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u062f\u0642\u062a \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\">\n<div class=\"bash codecolorer\"><span class=\"co4\">$ <\/span><span class=\"kw2\">\u06af\u0631\u0628\u0647<\/span> sample.txt <span class=\"sy0\">|<\/span> <span class=\"kw2\">grep<\/span> &#8220;\u0633\u06a9\u0647&#8221;<\/div>\n<\/div>\n<p><img decoding=\"async\" src=\"data:image\/svg+xml,%3Csvg%20xmlns=\" alt=\"\" width=\"1295\" height=\"162\" class=\"aligncenter size-full wp-image-96395\" data-lazy-srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703975652_853_\u06a9\u062f-\u062e\u0631\u0648\u062c-Bash-\u0622\u062e\u0631\u06cc\u0646-\u0641\u0631\u0645\u0627\u0646.png 1295w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_3-300x38.png 300w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_3-1024x128.png 1024w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_3-768x96.png 768w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_3-810x101.png 810w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_3-1140x143.png 1140w\" data-lazy-sizes=\"(max-width: 1295px) 100vw, 1295px\" data-lazy-src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703975652_853_\u06a9\u062f-\u062e\u0631\u0648\u062c-Bash-\u0622\u062e\u0631\u06cc\u0646-\u0641\u0631\u0645\u0627\u0646.png\" http: title=\"\"><img decoding=\"async\" src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703975652_853_\u06a9\u062f-\u062e\u0631\u0648\u062c-Bash-\u0622\u062e\u0631\u06cc\u0646-\u0641\u0631\u0645\u0627\u0646.png\" alt=\"\" width=\"1295\" height=\"162\" class=\"aligncenter size-full wp-image-96395\" srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703975652_853_\u06a9\u062f-\u062e\u0631\u0648\u062c-Bash-\u0622\u062e\u0631\u06cc\u0646-\u0641\u0631\u0645\u0627\u0646.png 1295w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_3-300x38.png 300w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_3-1024x128.png 1024w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_3-768x96.png 768w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_3-810x101.png 810w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_3-1140x143.png 1140w\" sizes=\"(max-width: 1295px) 100vw, 1295px\" title=\"\"><\/p>\n<p>\u0647\u0646\u06af\u0627\u0645 \u06a9\u0627\u0631 \u0628\u0627 \u062f\u0633\u062a\u0648\u0631\u06cc \u06a9\u0647 \u06cc\u06a9 \u06cc\u0627 \u0686\u0646\u062f \u0644\u0648\u0644\u0647 \u062f\u0627\u0631\u062f\u060c \u06a9\u062f \u062e\u0631\u0648\u062c\u06cc \u0622\u062e\u0631\u06cc\u0646 \u06a9\u062f \u0627\u062c\u0631\u0627 \u0634\u062f\u0647 \u062f\u0631 \u0644\u0648\u0644\u0647 \u062e\u0648\u0627\u0647\u062f \u0628\u0648\u062f.  \u062f\u0631 \u0627\u06cc\u0646 \u0645\u0648\u0631\u062f\u060c \u062f\u0633\u062a\u0648\u0631 grep \u0627\u0633\u062a.<\/p>\n<p>\u0686\u0648\u0646 \u062f\u0633\u062a\u0648\u0631 grep \u0645\u0648\u0641\u0642\u06cc\u062a \u0622\u0645\u06cc\u0632 \u0628\u0648\u062f\u060c 0 \u062e\u0648\u0627\u0647\u062f \u0628\u0648\u062f.<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\">\n<div class=\"bash codecolorer\"><span class=\"co4\">$ <\/span><span class=\"kw3\">echo<\/span> <span class=\"re4\">\u062f\u0644\u0627\u0631\u061f<\/span><\/div>\n<\/div>\n<p><img decoding=\"async\" src=\"data:image\/svg+xml,%3Csvg%20xmlns=\" alt=\"\" width=\"1297\" height=\"85\" class=\"aligncenter size-full wp-image-96396\" data-lazy-srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703975653_370_\u06a9\u062f-\u062e\u0631\u0648\u062c-Bash-\u0622\u062e\u0631\u06cc\u0646-\u0641\u0631\u0645\u0627\u0646.png 1297w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_4-300x20.png 300w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_4-1024x67.png 1024w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_4-768x50.png 768w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_4-810x53.png 810w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_4-1140x75.png 1140w\" data-lazy-sizes=\"(max-width: 1297px) 100vw, 1297px\" data-lazy-src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703975653_370_\u06a9\u062f-\u062e\u0631\u0648\u062c-Bash-\u0622\u062e\u0631\u06cc\u0646-\u0641\u0631\u0645\u0627\u0646.png\" http: title=\"\"><img decoding=\"async\" src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703975653_370_\u06a9\u062f-\u062e\u0631\u0648\u062c-Bash-\u0622\u062e\u0631\u06cc\u0646-\u0641\u0631\u0645\u0627\u0646.png\" alt=\"\" width=\"1297\" height=\"85\" class=\"aligncenter size-full wp-image-96396\" srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703975653_370_\u06a9\u062f-\u062e\u0631\u0648\u062c-Bash-\u0622\u062e\u0631\u06cc\u0646-\u0641\u0631\u0645\u0627\u0646.png 1297w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_4-300x20.png 300w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_4-1024x67.png 1024w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_4-768x50.png 768w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_4-810x53.png 810w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_4-1140x75.png 1140w\" sizes=\"(max-width: 1297px) 100vw, 1297px\" title=\"\"><\/p>\n<p>\u062f\u0631 \u0627\u06cc\u0646 \u0645\u062b\u0627\u0644\u060c \u0627\u06af\u0631 \u062f\u0633\u062a\u0648\u0631 grep \u0646\u0627\u0645\u0648\u0641\u0642 \u0628\u0627\u0634\u062f\u060c \u06a9\u062f \u062e\u0631\u0648\u062c \u063a\u06cc\u0631 \u0635\u0641\u0631 \u062e\u0648\u0627\u0647\u062f \u0628\u0648\u062f.<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\">\n<div class=\"bash codecolorer\">$ <span class=\"kw2\">\u06af\u0631\u0628\u0647<\/span> sample.txt <span class=\"sy0\">|<\/span> <span class=\"kw2\">grep<\/span> &#8220;\u0622 \u0628 \u067e \u062a&#8221;<br \/>\n$ <span class=\"kw3\">echo<\/span> <span class=\"re4\">\u062f\u0644\u0627\u0631\u061f<\/span><\/div>\n<\/div>\n<p><img decoding=\"async\" src=\"data:image\/svg+xml,%3Csvg%20xmlns=\" alt=\"\" width=\"1294\" height=\"156\" class=\"aligncenter size-full wp-image-96397\" data-lazy-srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703975654_990_\u06a9\u062f-\u062e\u0631\u0648\u062c-Bash-\u0622\u062e\u0631\u06cc\u0646-\u0641\u0631\u0645\u0627\u0646.png 1294w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_5-300x36.png 300w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_5-1024x123.png 1024w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_5-768x93.png 768w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_5-810x98.png 810w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_5-1140x137.png 1140w\" data-lazy-sizes=\"(max-width: 1294px) 100vw, 1294px\" data-lazy-src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703975654_990_\u06a9\u062f-\u062e\u0631\u0648\u062c-Bash-\u0622\u062e\u0631\u06cc\u0646-\u0641\u0631\u0645\u0627\u0646.png\" http: title=\"\"><img decoding=\"async\" src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703975654_990_\u06a9\u062f-\u062e\u0631\u0648\u062c-Bash-\u0622\u062e\u0631\u06cc\u0646-\u0641\u0631\u0645\u0627\u0646.png\" alt=\"\" width=\"1294\" height=\"156\" class=\"aligncenter size-full wp-image-96397\" srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703975654_990_\u06a9\u062f-\u062e\u0631\u0648\u062c-Bash-\u0622\u062e\u0631\u06cc\u0646-\u0641\u0631\u0645\u0627\u0646.png 1294w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_5-300x36.png 300w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_5-1024x123.png 1024w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_5-768x93.png 768w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_5-810x98.png 810w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_5-1140x137.png 1140w\" sizes=\"(max-width: 1294px) 100vw, 1294px\" title=\"\"><\/p>\n<h2><span class=\"ez-toc-section\" id=\"%da%af%d9%86%d8%ac%d8%a7%d9%86%d8%af%d9%86_%da%a9%d8%af_%d8%ae%d8%b1%d9%88%d8%ac_%d8%af%d8%b1_%d8%a7%d8%b3%da%a9%d8%b1%db%8c%d9%be%d8%aa_%d9%87%d8%a7\"><\/span>\u06af\u0646\u062c\u0627\u0646\u062f\u0646 \u06a9\u062f \u062e\u0631\u0648\u062c \u062f\u0631 \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u0647\u0627<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u06a9\u062f \u062e\u0631\u0648\u062c \u0647\u0645\u0686\u0646\u06cc\u0646 \u0645\u06cc \u062a\u0648\u0627\u0646\u062f \u0628\u0631\u0627\u06cc \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0634\u0648\u062f.  \u06cc\u06a9 \u0631\u0627\u0647 \u0633\u0627\u062f\u0647 \u0628\u0631\u0627\u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0622\u0646\u060c \u0627\u062e\u062a\u0635\u0627\u0635 \u062f\u0627\u062f\u0646 \u0622\u0646 \u0628\u0647 \u06cc\u06a9 \u0645\u062a\u063a\u06cc\u0631 \u067e\u0648\u0633\u062a\u0647 \u0648 \u06a9\u0627\u0631 \u0628\u0627 \u0622\u0646 \u0627\u0633\u062a.  \u062f\u0631 \u0627\u06cc\u0646\u062c\u0627 \u06cc\u06a9 \u0646\u0645\u0648\u0646\u0647 \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u067e\u0648\u0633\u062a\u0647 \u0627\u0633\u062a \u06a9\u0647 \u0627\u0632 \u06a9\u062f \u062e\u0631\u0648\u062c \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0634\u0631\u0637 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u06a9\u0646\u062f print \u062e\u0631\u0648\u062c\u06cc \u062e\u0627\u0635<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\">\n<div class=\"bash codecolorer\">$ <span class=\"co0\">#!\/\u0635\u0646\u062f\u0648\u0642\u0686\u0647\/bash<\/span><\/p>\n<p>$ <span class=\"kw3\">echo<\/span> <span class=\"st0\">&#8220;\u0633\u0644\u0627\u0645 \u062f\u0646\u06cc\u0627&#8221;<\/span><\/p>\n<p>$ <span class=\"re2\">\u0648\u0636\u0639\u06cc\u062a<\/span>=<span class=\"re4\">\u062f\u0644\u0627\u0631\u061f<\/span><\/p>\n<p>$ <span class=\"br0\">[<\/span> <span class=\"re1\">$status<\/span> <span class=\"re5\">-eq<\/span> <span class=\"nu0\">0<\/span> <span class=\"br0\">]<\/span> <span class=\"sy0\">&#038;&#038;<\/span> <span class=\"kw3\">echo<\/span> <span class=\"st0\">&#8220;\u0641\u0631\u0645\u0627\u0646 \u0645\u0648\u0641\u0642 \u0634\u062f&#8221;<\/span> <span class=\"sy0\">||<\/span> <span class=\"kw3\">echo<\/span> <span class=\"st0\">&#8220;\u0641\u0631\u0645\u0627\u0646 \u0646\u0627\u0645\u0648\u0641\u0642&#8221;<\/span><\/div>\n<\/div>\n<p><img decoding=\"async\" src=\"data:image\/svg+xml,%3Csvg%20xmlns=\" alt=\"\" width=\"1296\" height=\"625\" class=\"aligncenter size-full wp-image-96398\" data-lazy-srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703975655_461_\u06a9\u062f-\u062e\u0631\u0648\u062c-Bash-\u0622\u062e\u0631\u06cc\u0646-\u0641\u0631\u0645\u0627\u0646.png 1296w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_6-300x145.png 300w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_6-1024x494.png 1024w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_6-768x370.png 768w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_6-810x391.png 810w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_6-1140x550.png 1140w\" data-lazy-sizes=\"(max-width: 1296px) 100vw, 1296px\" data-lazy-src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703975655_461_\u06a9\u062f-\u062e\u0631\u0648\u062c-Bash-\u0622\u062e\u0631\u06cc\u0646-\u0641\u0631\u0645\u0627\u0646.png\" http: title=\"\"><img decoding=\"async\" src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703975655_461_\u06a9\u062f-\u062e\u0631\u0648\u062c-Bash-\u0622\u062e\u0631\u06cc\u0646-\u0641\u0631\u0645\u0627\u0646.png\" alt=\"\" width=\"1296\" height=\"625\" class=\"aligncenter size-full wp-image-96398\" srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703975655_461_\u06a9\u062f-\u062e\u0631\u0648\u062c-Bash-\u0622\u062e\u0631\u06cc\u0646-\u0641\u0631\u0645\u0627\u0646.png 1296w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_6-300x145.png 300w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_6-1024x494.png 1024w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_6-768x370.png 768w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_6-810x391.png 810w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_6-1140x550.png 1140w\" sizes=\"(max-width: 1296px) 100vw, 1296px\" title=\"\"><\/p>\n<p>\u0647\u0646\u06af\u0627\u0645 \u0627\u062c\u0631\u0627\u060c \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u062e\u0631\u0648\u062c\u06cc \u0632\u06cc\u0631 \u0631\u0627 \u062a\u0648\u0644\u06cc\u062f \u0645\u06cc \u06a9\u0646\u062f.<\/p>\n<p><img decoding=\"async\" src=\"data:image\/svg+xml,%3Csvg%20xmlns=\" alt=\"\" width=\"1293\" height=\"161\" class=\"aligncenter size-full wp-image-96399\" data-lazy-srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703975655_317_\u06a9\u062f-\u062e\u0631\u0648\u062c-Bash-\u0622\u062e\u0631\u06cc\u0646-\u0641\u0631\u0645\u0627\u0646.png 1293w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_7-300x37.png 300w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_7-1024x128.png 1024w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_7-768x96.png 768w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_7-810x101.png 810w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_7-1140x142.png 1140w\" data-lazy-sizes=\"(max-width: 1293px) 100vw, 1293px\" data-lazy-src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703975655_317_\u06a9\u062f-\u062e\u0631\u0648\u062c-Bash-\u0622\u062e\u0631\u06cc\u0646-\u0641\u0631\u0645\u0627\u0646.png\" http: title=\"\"><img decoding=\"async\" src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703975655_317_\u06a9\u062f-\u062e\u0631\u0648\u062c-Bash-\u0622\u062e\u0631\u06cc\u0646-\u0641\u0631\u0645\u0627\u0646.png\" alt=\"\" width=\"1293\" height=\"161\" class=\"aligncenter size-full wp-image-96399\" srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703975655_317_\u06a9\u062f-\u062e\u0631\u0648\u062c-Bash-\u0622\u062e\u0631\u06cc\u0646-\u0641\u0631\u0645\u0627\u0646.png 1293w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_7-300x37.png 300w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_7-1024x128.png 1024w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_7-768x96.png 768w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_7-810x101.png 810w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_7-1140x142.png 1140w\" sizes=\"(max-width: 1293px) 100vw, 1293px\" title=\"\"><\/p>\n<p>\u062d\u0627\u0644\u0627\u060c \u0628\u06cc\u0627\u06cc\u06cc\u062f \u0628\u0628\u06cc\u0646\u06cc\u0645 \u0648\u0642\u062a\u06cc \u06cc\u06a9 \u062f\u0633\u062a\u0648\u0631 \u0646\u0627\u0645\u0639\u062a\u0628\u0631 \u0628\u0631\u0627\u06cc \u0627\u062c\u0631\u0627 \u0648\u062c\u0648\u062f \u062f\u0627\u0631\u062f\u060c \u0686\u0647 \u0627\u062a\u0641\u0627\u0642\u06cc \u0645\u06cc\u200c\u0627\u0641\u062a\u062f.<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\">\n<div class=\"bash codecolorer\">$ <span class=\"co0\">#!\/\u0635\u0646\u062f\u0648\u0642\u0686\u0647\/bash<\/span><\/p>\n<p>\u062f\u0633\u062a\u0648\u0631 \u062a\u0635\u0627\u062f\u0641\u06cc $<br \/>\n$ <span class=\"re2\">\u0648\u0636\u0639\u06cc\u062a<\/span>=<span class=\"re4\">\u062f\u0644\u0627\u0631\u061f<\/span><\/p>\n<p>$ <span class=\"br0\">[<\/span> <span class=\"re1\">$status<\/span> <span class=\"re5\">-eq<\/span> <span class=\"nu0\">0<\/span> <span class=\"br0\">]<\/span> <span class=\"sy0\">&#038;&#038;<\/span> <span class=\"kw3\">echo<\/span> <span class=\"st0\">&#8220;\u0641\u0631\u0645\u0627\u0646 \u0645\u0648\u0641\u0642 \u0634\u062f&#8221;<\/span> <span class=\"sy0\">||<\/span> <span class=\"kw3\">echo<\/span> <span class=\"st0\">&#8220;\u0641\u0631\u0645\u0627\u0646 \u0646\u0627\u0645\u0648\u0641\u0642&#8221;<\/span><\/div>\n<\/div>\n<p><img decoding=\"async\" src=\"data:image\/svg+xml,%3Csvg%20xmlns=\" alt=\"\" width=\"1295\" height=\"627\" class=\"aligncenter size-full wp-image-96400\" data-lazy-srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703975656_660_\u06a9\u062f-\u062e\u0631\u0648\u062c-Bash-\u0622\u062e\u0631\u06cc\u0646-\u0641\u0631\u0645\u0627\u0646.png 1295w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_8-300x145.png 300w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_8-1024x496.png 1024w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_8-768x372.png 768w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_8-810x392.png 810w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_8-1140x552.png 1140w\" data-lazy-sizes=\"(max-width: 1295px) 100vw, 1295px\" data-lazy-src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703975656_660_\u06a9\u062f-\u062e\u0631\u0648\u062c-Bash-\u0622\u062e\u0631\u06cc\u0646-\u0641\u0631\u0645\u0627\u0646.png\" http: title=\"\"><img decoding=\"async\" src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703975656_660_\u06a9\u062f-\u062e\u0631\u0648\u062c-Bash-\u0622\u062e\u0631\u06cc\u0646-\u0641\u0631\u0645\u0627\u0646.png\" alt=\"\" width=\"1295\" height=\"627\" class=\"aligncenter size-full wp-image-96400\" srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703975656_660_\u06a9\u062f-\u062e\u0631\u0648\u062c-Bash-\u0622\u062e\u0631\u06cc\u0646-\u0641\u0631\u0645\u0627\u0646.png 1295w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_8-300x145.png 300w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_8-1024x496.png 1024w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_8-768x372.png 768w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_8-810x392.png 810w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_8-1140x552.png 1140w\" sizes=\"(max-width: 1295px) 100vw, 1295px\" title=\"\"><\/p>\n<p>\u0647\u0646\u06af\u0627\u0645 \u0627\u062c\u0631\u0627\u060c \u062e\u0631\u0648\u062c\u06cc \u0645\u062a\u0641\u0627\u0648\u062a \u062e\u0648\u0627\u0647\u062f \u0628\u0648\u062f.<\/p>\n<p><img decoding=\"async\" src=\"data:image\/svg+xml,%3Csvg%20xmlns=\" alt=\"\" width=\"1294\" height=\"158\" class=\"aligncenter size-full wp-image-96401\" data-lazy-srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703975657_256_\u06a9\u062f-\u062e\u0631\u0648\u062c-Bash-\u0622\u062e\u0631\u06cc\u0646-\u0641\u0631\u0645\u0627\u0646.png 1294w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_9-300x37.png 300w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_9-1024x125.png 1024w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_9-768x94.png 768w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_9-810x99.png 810w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_9-1140x139.png 1140w\" data-lazy-sizes=\"(max-width: 1294px) 100vw, 1294px\" data-lazy-src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703975657_256_\u06a9\u062f-\u062e\u0631\u0648\u062c-Bash-\u0622\u062e\u0631\u06cc\u0646-\u0641\u0631\u0645\u0627\u0646.png\" http: title=\"\"><img decoding=\"async\" src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703975657_256_\u06a9\u062f-\u062e\u0631\u0648\u062c-Bash-\u0622\u062e\u0631\u06cc\u0646-\u0641\u0631\u0645\u0627\u0646.png\" alt=\"\" width=\"1294\" height=\"158\" class=\"aligncenter size-full wp-image-96401\" srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703975657_256_\u06a9\u062f-\u062e\u0631\u0648\u062c-Bash-\u0622\u062e\u0631\u06cc\u0646-\u0641\u0631\u0645\u0627\u0646.png 1294w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_9-300x37.png 300w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_9-1024x125.png 1024w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_9-768x94.png 768w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_9-810x99.png 810w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_9-1140x139.png 1140w\" sizes=\"(max-width: 1294px) 100vw, 1294px\" title=\"\"><\/p>\n<h2><span class=\"ez-toc-section\" id=\"%d8%aa%d9%88%d8%b6%db%8c%d8%ad_%d9%85%d9%82%d8%af%d8%a7%d8%b1_%da%a9%d8%af_%d8%ae%d8%b1%d9%88%d8%ac\"><\/span>\u062a\u0648\u0636\u06cc\u062d \u0645\u0642\u062f\u0627\u0631 \u06a9\u062f \u062e\u0631\u0648\u062c<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u0648\u0642\u062a\u06cc \u06a9\u062f \u062e\u0631\u0648\u062c\u06cc \u063a\u06cc\u0631 \u0635\u0641\u0631 \u0628\u0627\u0634\u062f\u060c \u0645\u0642\u062f\u0627\u0631 \u0622\u0646 \u0627\u0632 1 \u062a\u0627 255 \u0645\u062a\u063a\u06cc\u0631 \u0627\u0633\u062a\u060c \u062d\u0627\u0644\u0627 \u0627\u06cc\u0646 \u0645\u0642\u062f\u0627\u0631 \u0628\u0647 \u0686\u0647 \u0645\u0639\u0646\u0627\u0633\u062a\u061f<\/p>\n<p>\u062f\u0631 \u062d\u0627\u0644\u06cc \u06a9\u0647 \u0645\u0642\u062f\u0627\u0631 \u0645\u062d\u062f\u0648\u062f \u0627\u0633\u062a\u060c \u062a\u0648\u0636\u06cc\u062d \u0647\u0631 \u0645\u0642\u062f\u0627\u0631 \u0645\u062e\u062a\u0635 \u0628\u0631\u0646\u0627\u0645\u0647\/\u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u0627\u0633\u062a.  \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0645\u062b\u0627\u0644\u060c &#8220;ls&#8221; \u0648 &#8220;grep&#8221; \u062a\u0648\u0636\u06cc\u062d\u0627\u062a \u0645\u062a\u0641\u0627\u0648\u062a\u06cc \u0628\u0631\u0627\u06cc \u06a9\u062f \u062e\u0637\u0627\u06cc 1 \u0648 2 \u062f\u0627\u0631\u0646\u062f.<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\">\n<div class=\"bash codecolorer\"><span class=\"co4\">$ <\/span><span class=\"kw2\">\u0645\u0631\u062f<\/span> <span class=\"kw2\">ls<\/span><\/div>\n<\/div>\n<p><img decoding=\"async\" src=\"data:image\/svg+xml,%3Csvg%20xmlns=\" alt=\"\" width=\"1293\" height=\"188\" class=\"aligncenter size-full wp-image-96402\" data-lazy-srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703975658_419_\u06a9\u062f-\u062e\u0631\u0648\u062c-Bash-\u0622\u062e\u0631\u06cc\u0646-\u0641\u0631\u0645\u0627\u0646.png 1293w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_10-300x44.png 300w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_10-1024x149.png 1024w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_10-768x112.png 768w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_10-810x118.png 810w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_10-1140x166.png 1140w\" data-lazy-sizes=\"(max-width: 1293px) 100vw, 1293px\" data-lazy-src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703975658_419_\u06a9\u062f-\u062e\u0631\u0648\u062c-Bash-\u0622\u062e\u0631\u06cc\u0646-\u0641\u0631\u0645\u0627\u0646.png\" http: title=\"\"><img decoding=\"async\" src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703975658_419_\u06a9\u062f-\u062e\u0631\u0648\u062c-Bash-\u0622\u062e\u0631\u06cc\u0646-\u0641\u0631\u0645\u0627\u0646.png\" alt=\"\" width=\"1293\" height=\"188\" class=\"aligncenter size-full wp-image-96402\" srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703975658_419_\u06a9\u062f-\u062e\u0631\u0648\u062c-Bash-\u0622\u062e\u0631\u06cc\u0646-\u0641\u0631\u0645\u0627\u0646.png 1293w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_10-300x44.png 300w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_10-1024x149.png 1024w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_10-768x112.png 768w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_10-810x118.png 810w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_10-1140x166.png 1140w\" sizes=\"(max-width: 1293px) 100vw, 1293px\" title=\"\"><\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\">\n<div class=\"bash codecolorer\"><span class=\"co4\">$ <\/span><span class=\"kw2\">\u0645\u0631\u062f<\/span> <span class=\"kw2\">grep<\/span><\/div>\n<\/div>\n<p><img decoding=\"async\" src=\"data:image\/svg+xml,%3Csvg%20xmlns=\" alt=\"\" width=\"1294\" height=\"123\" class=\"aligncenter size-full wp-image-96403\" data-lazy-srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703975658_628_\u06a9\u062f-\u062e\u0631\u0648\u062c-Bash-\u0622\u062e\u0631\u06cc\u0646-\u0641\u0631\u0645\u0627\u0646.png 1294w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_11-300x29.png 300w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_11-1024x97.png 1024w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_11-768x73.png 768w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_11-810x77.png 810w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_11-1140x108.png 1140w\" data-lazy-sizes=\"(max-width: 1294px) 100vw, 1294px\" data-lazy-src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703975658_628_\u06a9\u062f-\u062e\u0631\u0648\u062c-Bash-\u0622\u062e\u0631\u06cc\u0646-\u0641\u0631\u0645\u0627\u0646.png\" http: title=\"\"><img decoding=\"async\" src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703975658_628_\u06a9\u062f-\u062e\u0631\u0648\u062c-Bash-\u0622\u062e\u0631\u06cc\u0646-\u0641\u0631\u0645\u0627\u0646.png\" alt=\"\" width=\"1294\" height=\"123\" class=\"aligncenter size-full wp-image-96403\" srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703975658_628_\u06a9\u062f-\u062e\u0631\u0648\u062c-Bash-\u0622\u062e\u0631\u06cc\u0646-\u0641\u0631\u0645\u0627\u0646.png 1294w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_11-300x29.png 300w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_11-1024x97.png 1024w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_11-768x73.png 768w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_11-810x77.png 810w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_11-1140x108.png 1140w\" sizes=\"(max-width: 1294px) 100vw, 1294px\" title=\"\"><\/p>\n<h2><span class=\"ez-toc-section\" id=\"%d8%aa%d8%b9%d8%b1%db%8c%d9%81_%d9%88%d8%b6%d8%b9%db%8c%d8%aa_%d8%ae%d8%b1%d9%88%d8%ac_%d8%af%d8%b1_%d8%a7%d8%b3%da%a9%d8%b1%db%8c%d9%be%d8%aa\"><\/span>\u062a\u0639\u0631\u06cc\u0641 \u0648\u0636\u0639\u06cc\u062a \u062e\u0631\u0648\u062c \u062f\u0631 \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u0647\u0646\u06af\u0627\u0645 \u0646\u0648\u0634\u062a\u0646 \u06cc\u06a9 \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a\u060c \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u0645 \u0645\u0642\u0627\u062f\u06cc\u0631 \u06a9\u062f \u062e\u0631\u0648\u062c\u06cc \u0633\u0641\u0627\u0631\u0634\u06cc \u0631\u0627 \u062a\u0639\u0631\u06cc\u0641 \u06a9\u0646\u06cc\u0645.  \u0627\u06cc\u0646 \u06cc\u06a9 \u0631\u0648\u0634 \u0645\u0641\u06cc\u062f \u0628\u0631\u0627\u06cc \u0631\u0641\u0639 \u0627\u0634\u06a9\u0627\u0644 \u0622\u0633\u0627\u0646 \u062a\u0631 \u0627\u0633\u062a.  \u06a9\u0647 \u062f\u0631 bash \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u0647\u0627\u060c \u0627\u06cc\u0646 \u062f\u0633\u062a\u0648\u0631 \u00ab\u062e\u0631\u0648\u062c\u00bb \u0627\u0633\u062a \u06a9\u0647 \u0628\u0627 \u0645\u0642\u062f\u0627\u0631 \u06a9\u062f \u062e\u0631\u0648\u062c\u06cc \u0647\u0645\u0631\u0627\u0647 \u0627\u0633\u062a.<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\">\n<div class=\"bash codecolorer\"><span class=\"co4\">$ <\/span><span class=\"kw3\">\u062e\u0631\u0648\u062c<\/span> <span class=\"sy0\"><<\/span>\u0627\u0631\u0632\u0634<span class=\"sy0\">><\/span><\/div>\n<\/div>\n<p>\u0637\u0628\u0642 \u0642\u0631\u0627\u0631\u062f\u0627\u062f\u060c \u062a\u0648\u0635\u06cc\u0647 \u0645\u06cc \u0634\u0648\u062f \u06a9\u062f \u062e\u0631\u0648\u062c\u06cc 0 \u0631\u0627 \u0628\u0631\u0627\u06cc \u0627\u062c\u0631\u0627\u06cc \u0645\u0648\u0641\u0642\u06cc\u062a \u0622\u0645\u06cc\u0632 \u0627\u062e\u062a\u0635\u0627\u0635 \u062f\u0647\u06cc\u062f \u0648 \u0627\u0632 \u0628\u0642\u06cc\u0647 (1-255) \u0628\u0631\u0627\u06cc \u062e\u0637\u0627\u0647\u0627\u06cc \u0627\u062d\u062a\u0645\u0627\u0644\u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f.  \u0628\u0627 \u0631\u0633\u06cc\u062f\u0646 \u0628\u0647 \u062f\u0633\u062a\u0648\u0631 \u062e\u0631\u0648\u062c\u060c \u0627\u062c\u0631\u0627\u06cc \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u067e\u0648\u0633\u062a\u0647 \u062e\u0627\u062a\u0645\u0647 \u0645\u06cc \u06cc\u0627\u0628\u062f\u060c \u0628\u0646\u0627\u0628\u0631\u0627\u06cc\u0646 \u0645\u0631\u0627\u0642\u0628 \u0642\u0631\u0627\u0631\u06af\u06cc\u0631\u06cc \u0622\u0646 \u0628\u0627\u0634\u06cc\u062f.<\/p>\n<p>\u0628\u0647 \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u067e\u0648\u0633\u062a\u0647 \u0632\u06cc\u0631 \u0646\u06af\u0627\u0647\u06cc \u0628\u06cc\u0646\u062f\u0627\u0632\u06cc\u062f.  \u062f\u0631 \u0627\u06cc\u0646\u062c\u0627\u060c \u0627\u06af\u0631 \u0634\u0631\u0637 \u0628\u0631\u0642\u0631\u0627\u0631 \u0628\u0627\u0634\u062f\u060c \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u0628\u0627 \u06a9\u062f \u062e\u0631\u0648\u062c 0 \u062e\u0627\u062a\u0645\u0647 \u0645\u06cc \u06cc\u0627\u0628\u062f. \u0627\u06af\u0631 \u0634\u0631\u0637 \u0628\u0631\u0642\u0631\u0627\u0631 \u0646\u0628\u0627\u0634\u062f\u060c \u06a9\u062f \u062e\u0631\u0648\u062c 1 \u062e\u0648\u0627\u0647\u062f \u0628\u0648\u062f.<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\">\n<div class=\"bash codecolorer\">$ <span class=\"co0\">#!\/\u0635\u0646\u062f\u0648\u0642\u0686\u0647\/bash<\/span><\/p>\n<p>$ <span class=\"kw1\">\u0627\u06af\u0631<\/span> <span class=\"br0\">[<\/span><span class=\"br0\">[<\/span> <span class=\"st0\">&#8220;<span class=\"es4\">$(whoami)<\/span>&#8220;<\/span> <span class=\"sy0\">!<\/span>= root <span class=\"br0\">]<\/span><span class=\"br0\">]<\/span>; <span class=\"kw1\">\u0633\u067e\u0633<\/span><\/p>\n<p>$   <span class=\"kw3\">echo<\/span> <span class=\"st0\">&#8220;\u06a9\u0627\u0631\u0628\u0631 \u0627\u0635\u0644\u06cc \u0646\u06cc\u0633\u062a.&#8221;<\/span><\/p>\n<p>$   <span class=\"kw3\">\u062e\u0631\u0648\u062c<\/span> <span class=\"nu0\">1<\/span><\/p>\n<p>$ <span class=\"kw1\">\u0641\u06cc<\/span><\/p>\n<p>$ <span class=\"kw3\">echo<\/span> <span class=\"st0\">&#8220;\u06a9\u0627\u0631\u0628\u0631 \u0631\u06cc\u0634\u0647&#8221;<\/span><\/p>\n<p>$ <span class=\"kw3\">\u062e\u0631\u0648\u062c<\/span> <span class=\"nu0\">0<\/span><\/div>\n<\/div>\n<p><img decoding=\"async\" src=\"data:image\/svg+xml,%3Csvg%20xmlns=\" alt=\"\" width=\"1295\" height=\"625\" class=\"aligncenter size-full wp-image-96404\" data-lazy-srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703975660_1_\u06a9\u062f-\u062e\u0631\u0648\u062c-Bash-\u0622\u062e\u0631\u06cc\u0646-\u0641\u0631\u0645\u0627\u0646.png 1295w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_12-300x145.png 300w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_12-1024x494.png 1024w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_12-768x371.png 768w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_12-810x391.png 810w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_12-1140x550.png 1140w\" data-lazy-sizes=\"(max-width: 1295px) 100vw, 1295px\" data-lazy-src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703975660_1_\u06a9\u062f-\u062e\u0631\u0648\u062c-Bash-\u0622\u062e\u0631\u06cc\u0646-\u0641\u0631\u0645\u0627\u0646.png\" http: title=\"\"><img decoding=\"async\" src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703975660_1_\u06a9\u062f-\u062e\u0631\u0648\u062c-Bash-\u0622\u062e\u0631\u06cc\u0646-\u0641\u0631\u0645\u0627\u0646.png\" alt=\"\" width=\"1295\" height=\"625\" class=\"aligncenter size-full wp-image-96404\" srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703975660_1_\u06a9\u062f-\u062e\u0631\u0648\u062c-Bash-\u0622\u062e\u0631\u06cc\u0646-\u0641\u0631\u0645\u0627\u0646.png 1295w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_12-300x145.png 300w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_12-1024x494.png 1024w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_12-768x371.png 768w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_12-810x391.png 810w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_12-1140x550.png 1140w\" sizes=\"(max-width: 1295px) 100vw, 1295px\" title=\"\"><\/p>\n<p>\u0646\u062a\u06cc\u062c\u0647 \u0627\u062c\u0631\u0627\u06cc \u0627\u06cc\u0646 \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u0631\u0627 \u0628\u062f\u0648\u0646 \u0645\u062c\u0648\u0632 sudo \u06cc\u0627 \u06a9\u0627\u0631\u0628\u0631 \u00ab\u0631\u06cc\u0634\u0647\u00bb \u062a\u0623\u06cc\u06cc\u062f \u06a9\u0646\u06cc\u062f.<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\">\n<div class=\"bash codecolorer\">\u062f\u0644\u0627\u0631<span class=\"sy0\">\/<\/span>\u0646\u0645\u0648\u0646\u0647.\u0634<br \/>\n$ <span class=\"kw3\">echo<\/span> <span class=\"re4\">\u062f\u0644\u0627\u0631\u061f<\/span><\/div>\n<\/div>\n<p><img decoding=\"async\" src=\"data:image\/svg+xml,%3Csvg%20xmlns=\" alt=\"\" width=\"1294\" height=\"191\" class=\"aligncenter size-full wp-image-96405\" data-lazy-srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703975661_479_\u06a9\u062f-\u062e\u0631\u0648\u062c-Bash-\u0622\u062e\u0631\u06cc\u0646-\u0641\u0631\u0645\u0627\u0646.png 1294w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_13-300x44.png 300w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_13-1024x151.png 1024w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_13-768x113.png 768w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_13-810x120.png 810w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_13-1140x168.png 1140w\" data-lazy-sizes=\"(max-width: 1294px) 100vw, 1294px\" data-lazy-src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703975661_479_\u06a9\u062f-\u062e\u0631\u0648\u062c-Bash-\u0622\u062e\u0631\u06cc\u0646-\u0641\u0631\u0645\u0627\u0646.png\" http: title=\"\"><img decoding=\"async\" src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703975661_479_\u06a9\u062f-\u062e\u0631\u0648\u062c-Bash-\u0622\u062e\u0631\u06cc\u0646-\u0641\u0631\u0645\u0627\u0646.png\" alt=\"\" width=\"1294\" height=\"191\" class=\"aligncenter size-full wp-image-96405\" srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703975661_479_\u06a9\u062f-\u062e\u0631\u0648\u062c-Bash-\u0622\u062e\u0631\u06cc\u0646-\u0641\u0631\u0645\u0627\u0646.png 1294w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_13-300x44.png 300w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_13-1024x151.png 1024w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_13-768x113.png 768w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_13-810x120.png 810w, https:\/\/linuxhint.com\/wp-content\/uploads\/2021\/03\/Bash-Exit-Code-of-Last-Command_13-1140x168.png 1140w\" sizes=\"(max-width: 1294px) 100vw, 1294px\" title=\"\"><\/p>\n<h2><span class=\"ez-toc-section\" id=\"%d8%a7%d9%81%da%a9%d8%a7%d8%b1_%d9%86%d9%87%d8%a7%db%8c%db%8c\"><\/span>\u0627\u0641\u06a9\u0627\u0631 \u0646\u0647\u0627\u06cc\u06cc<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u0627\u06cc\u0646 \u0631\u0627\u0647\u0646\u0645\u0627 \u0646\u0634\u0627\u0646 \u0645\u06cc \u062f\u0647\u062f \u06a9\u0647 \u06a9\u062f\u0647\u0627\u06cc \u062e\u0631\u0648\u062c \u0686\u06cc\u0633\u062a \u0648 \u0686\u06af\u0648\u0646\u0647 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u0632 \u0622\u0646\u0647\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f.  \u0647\u0645\u0686\u0646\u06cc\u0646 \u0631\u0648\u0634 \u062a\u062e\u0635\u06cc\u0635 \u06a9\u062f\u0647\u0627\u06cc \u062e\u0631\u0648\u062c \u0645\u0646\u0627\u0633\u0628 \u062f\u0631 a \u0631\u0627 \u0646\u0634\u0627\u0646 \u0645\u06cc \u062f\u0647\u062f bash \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a<\/p>\n<p>\u0639\u0644\u0627\u0642\u0647 \u0645\u0646\u062f \u0628\u0647 bash \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u0646\u0648\u06cc\u0633\u06cc\u061f  \u06cc\u06a9\u06cc \u0627\u0632 \u0633\u0627\u062f\u0647 \u062a\u0631\u06cc\u0646 \u0631\u0627\u0647 \u0647\u0627 \u0628\u0631\u0627\u06cc \u0634\u0631\u0648\u0639\u060c \u0646\u0648\u0634\u062a\u0646 \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u0647\u0627\u06cc \u0634\u062e\u0635\u06cc \u0627\u0633\u062a.  \u0627\u06cc\u0646 \u0631\u0627\u0647\u0646\u0645\u0627\u06cc \u0633\u0627\u062f\u0647 \u0631\u0627 \u0628\u0631\u0631\u0633\u06cc \u06a9\u0646\u06cc\u062f \u0631\u0648\u06cc \u0686\u06af\u0648\u0646\u0647 \u0633\u0627\u062f\u0647 \u0628\u0646\u0648\u06cc\u0633\u06cc\u0645 bash \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a<\/p>\n<p>\u0645\u062d\u0627\u0633\u0628\u0627\u062a \u0645\u0628\u0627\u0631\u06a9!\n<\/p>\n<\/div>\n\n<div>\u0628\u0631\u0627\u06cc \u0646\u06af\u0627\u0631\u0634 \u0628\u062e\u0634\u0647\u0627\u06cc\u06cc \u0627\u0632 \u0627\u06cc\u0646 \u0645\u062a\u0646 \u0645\u0645\u06a9\u0646 \u0627\u0633\u062a \u0627\u0632 \u062a\u0631\u062c\u0645\u0647 \u0645\u0627\u0634\u06cc\u0646\u06cc \u06cc\u0627 \u0647\u0648\u0634 \u0645\u0635\u0646\u0648\u0639\u06cc GPT \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0634\u062f\u0647 \u0628\u0627\u0634\u062f <br \/>\n\u0644\u0637\u0641\u0627 \u062f\u0631 \u0635\u0648\u0631\u062a \u0648\u062c\u0648\u062f \u0645\u0634\u06a9\u0644 \u062f\u0631 \u0645\u062a\u0646 \u06cc\u0627 \u0645\u0641\u0647\u0648\u0645 \u0646\u0628\u0648\u062f\u0646 \u062a\u0648\u0636\u06cc\u062d\u0627\u062a\u060c \u0627\u0632 \u0637\u0631\u06cc\u0642 \u062f\u06a9\u0645\u0647 \u06af\u0632\u0627\u0631\u0634 \u0646\u0648\u0634\u062a\u0627\u0631 \u06cc\u0627 \u062f\u0631\u062c \u0646\u0638\u0631 \u0631\u0648\u06cc \u0627\u06cc\u0646 \u0645\u0637\u0644\u0628 \u0645\u0627 \u0631\u0627 \u0627\u0632 \u062c\u0632\u06cc\u06cc\u0627\u062a \u0645\u0634\u06a9\u0644 \u0645\u0634\u0627\u0647\u062f\u0647 \u0634\u062f\u0647 \u0645\u0637\u0644\u0639 \u06a9\u0646\u06cc\u062f \u062a\u0627 \u0628\u0647 \u0622\u0646 \u0631\u0633\u06cc\u062f\u06af\u06cc \u06a9\u0646\u06cc\u0645\n<\/div>\n<p>\u0632\u0645\u0627\u0646 \u0627\u0646\u062a\u0634\u0627\u0631: 1402-12-31 02:04:05<br \/>\n<\/p>\n\n\n<div class=\"kk-star-ratings kksr-auto kksr-align-center kksr-valign-bottom\"\n    data-payload='{&quot;align&quot;:&quot;center&quot;,&quot;id&quot;:&quot;12357&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;bottom&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;0&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;0&quot;,&quot;starsonly&quot;:&quot;&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;5&quot;,&quot;greet&quot;:&quot;\u0627\u0645\u062a\u06cc\u0627\u0632 \u0634\u0645\u0627 \u0628\u0647 \u0627\u06cc\u0646 \u0645\u0637\u0644\u0628&quot;,&quot;legend&quot;:&quot;0\\\/5 (0 \u0631\u0627\u06cc)&quot;,&quot;size&quot;:&quot;30&quot;,&quot;title&quot;:&quot;\u06a9\u062f \u062e\u0631\u0648\u062c Bash \u0622\u062e\u0631\u06cc\u0646 \u0641\u0631\u0645\u0627\u0646&quot;,&quot;width&quot;:&quot;0&quot;,&quot;_legend&quot;:&quot;{score}\\\/{best} ({count} \u0631\u0627\u06cc)&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}'>\n            \n<div class=\"kksr-stars\">\n    \n<div class=\"kksr-stars-inactive\">\n            <div class=\"kksr-star\" data-star=\"1\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"2\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"3\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"4\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"5\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n    <\/div>\n    \n<div class=\"kksr-stars-active\" style=\"width: 0px;\">\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n    <\/div>\n<\/div>\n                \n\n<div class=\"kksr-legend\" style=\"font-size: 24px;\">\n            <span class=\"kksr-muted\">\u0627\u0645\u062a\u06cc\u0627\u0632 \u0634\u0645\u0627 \u0628\u0647 \u0627\u06cc\u0646 \u0645\u0637\u0644\u0628<\/span>\n    <\/div>\n    <\/div>\n","protected":false},"excerpt":{"rendered":"<p><span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">\u0632\u0645\u0627\u0646 \u0644\u0627\u0632\u0645 \u0628\u0631\u0627\u06cc \u0645\u0637\u0627\u0644\u0639\u0647: <\/span> <span class=\"rt-time\"> 3<\/span> <span class=\"rt-label rt-postfix\">\u062f\u0642\u06cc\u0642\u0647<\/span><\/span>\u0648\u0642\u062a\u06cc \u06cc\u06a9 bash \u062f\u0633\u062a\u0648\u0631 \u0627\u062c\u0631\u0627 \u0645\u06cc \u0634\u0648\u062f\u060c \u0635\u0631\u0641 \u0646\u0638\u0631 \u0627\u0632 \u0627\u062c\u0631\u0627\u06cc \u0645\u0648\u0641\u0642\u06cc\u062a \u0622\u0645\u06cc\u0632 \u06cc\u0627 \u0646\u0627\u0645\u0648\u0641\u0642\u060c \u06a9\u062f \u062e\u0631\u0648\u062c \u0631\u0627 \u067e\u0634\u062a \u0633\u0631 \u0645\u06cc \u06af\u0630\u0627\u0631\u062f. \u0628\u0631\u0631\u0633\u06cc \u06a9\u062f \u062e\u0631\u0648\u062c \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u062f \u0628\u06cc\u0646\u0634 \u0645\u0641\u06cc\u062f\u06cc \u062f\u0631 \u0645\u0648\u0631\u062f \u0631\u0641\u062a\u0627\u0631 \u0622\u062e\u0631\u06cc\u0646 \u0627\u062c\u0631\u0627\u06cc \u0641\u0631\u0645\u0627\u0646 \u0627\u0631\u0627\u0626\u0647 \u062f\u0647\u062f. \u062f\u0631 \u0627\u06cc\u0646 \u0631\u0627\u0647\u0646\u0645\u0627\u060c \u0631\u0648\u0634 \u0628\u0631\u0631\u0633\u06cc \u0631\u0627 \u0628\u0631\u0631\u0633\u06cc \u06a9\u0646\u06cc\u062f bash \u06a9\u062f \u062e\u0631\u0648\u062c \u0627\u0632 \u0622\u062e\u0631\u06cc\u0646 \u062f\u0633\u062a\u0648\u0631 \u0648 \u0628\u0631\u062e\u06cc \u06a9\u0627\u0631\u0628\u0631\u062f\u0647\u0627\u06cc \u0627\u062d\u062a\u0645\u0627\u0644\u06cc \u0622\u0646. [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":12358,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2740,1062],"tags":[2744,1061,2741,2748],"class_list":["post-12357","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-bash-programming","category-bash-script","tag-bash-script","tag--bash-scripting","tag---bash","tag-2748"],"acf":[],"_links":{"self":[{"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/posts\/12357","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/comments?post=12357"}],"version-history":[{"count":0,"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/posts\/12357\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/media\/12358"}],"wp:attachment":[{"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/media?parent=12357"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/categories?post=12357"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/tags?post=12357"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}