{"id":23411,"date":"2021-10-16T12:23:02","date_gmt":"2021-10-16T12:23:02","guid":{"rendered":"https:\/\/irancld.com\/advanced-linux-scripting-for-webmasters-9\/"},"modified":"2025-10-01T10:33:27","modified_gmt":"2025-10-01T07:03:27","slug":"advanced-linux-scripting-for-webmasters-9","status":"publish","type":"post","link":"https:\/\/www.novinhost.org\/wiki\/advanced-linux-scripting-for-webmasters-9\/","title":{"rendered":"\u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u0646\u0648\u06cc\u0633\u06cc \u067e\u06cc\u0634\u0631\u0641\u062a\u0647 \u0644\u06cc\u0646\u0648\u06a9\u0633 \u0628\u0631\u0627\u06cc \u0648\u0628\u0645\u0633\u062a\u0631 \u0647\u0627 \u2013 \u0642\u0633\u0645\u062a \u06f9 \u2013 trap"},"content":{"rendered":"<p style=\"text-align: justify;\"><strong>\u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u0646\u0648\u06cc\u0633\u06cc \u067e\u06cc\u0634\u0631\u0641\u062a\u0647 \u0644\u06cc\u0646\u0648\u06a9\u0633 \u0628\u0631\u0627\u06cc \u0648\u0628\u0645\u0633\u062a\u0631 \u0647\u0627 \u2013 trap :<\/strong> \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u0647\u0627\u06cc \u0644\u06cc\u0646\u0648\u06a9\u0633 \u0628\u0627 \u062f\u0631\u06cc\u0627\u0641\u062a \u0633\u06cc\u06af\u0646\u0627\u0644 \u0634\u0645\u0627\u0631\u0647 \u06f2 \u06cc\u0627 Ctrl + C \u0628\u0647 \u06a9\u0627\u0631 \u062e\u0648\u062f \u067e\u0627\u06cc\u0627\u0646 \u0645\u06cc\u062f\u0647\u0646\u062f. \u0627\u06cc\u0646 \u0627\u062a\u0641\u0627\u0642 \u062f\u0631 \u0628\u0631\u0646\u0627\u0645\u0647 \u0647\u0627\u06cc \u067e\u06cc\u0686\u06cc\u062f\u0647 \u0645\u0645\u06a9\u0646 \u0627\u0633\u062a \u0628\u0627\u0639\u062b \u0628\u0631\u0648\u0632 \u0627\u0634\u06a9\u0627\u0644 \u062f\u0631 \u0639\u0645\u0644\u06a9\u0631\u062f \u0633\u06cc\u0633\u062a\u0645 \u0639\u0627\u0645\u0644 \u0634\u0648\u062f. \u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633 \u0647\u0627 \u0645\u0639\u0645\u0648\u0644\u0627 \u06cc\u06a9 \u0631\u0648\u0627\u0644 \u0628\u0631\u0627\u06cc \u0686\u0646\u06cc\u0646 \u0645\u0648\u0627\u0642\u0639\u06cc \u062f\u0631 \u0646\u0638\u0631 \u0645\u06cc\u06af\u06cc\u0631\u0646\u062f \u062a\u0627 \u062f\u0631 \u0635\u0648\u0631\u062a \u062e\u0631\u0648\u062c \u0646\u0627\u06af\u0647\u0627\u0646\u06cc \u0627\u0632 \u0628\u0631\u0646\u0627\u0645\u0647, \u0627\u06cc\u0646 \u0631\u0648\u0627\u0644 \u0627\u062c\u0631\u0627 \u0634\u062f\u0647 \u0648 \u0647\u0645\u0647 \u0686\u06cc\u0632 \u0631\u0627 \u0628\u0647 \u062d\u0627\u0644\u062a \u0639\u0627\u062f\u06cc \u0628\u0631\u06af\u0631\u062f\u0627\u0646\u062f. \u062a\u0648\u0636\u06cc\u062d\u0627\u062a \u062a\u06a9\u0645\u06cc\u0644\u06cc \u0628\u0627 <a href=\"https:\/\/www.novinhost.org\">\u0646\u0648\u06cc\u0646 \u0647\u0627\u0633\u062a<\/a> &#8230;<\/p>\n<p dir=\"RTL\" style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3808 size-full\" style=\"display: block; margin-left: auto; margin-right: auto;\" title=\"AdvancedLinuxShell-9 \u0646\u0648\u06cc\u0646 \u0647\u0627\u0633\u062a\" src=\"https:\/\/www.novinhost.org\/wiki\/wp-content\/uploads\/2024\/03\/AdvancedLinuxShell-9.jpg\" alt=\"\u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u0646\u0648\u06cc\u0633\u06cc \u067e\u06cc\u0634\u0631\u0641\u062a\u0647 \u0644\u06cc\u0646\u0648\u06a9\u0633 \u0628\u0631\u0627\u06cc \u0648\u0628\u0645\u0633\u062a\u0631 \u0647\u0627 \u2013 trap\" width=\"960\" height=\"250\" border=\"0\" \/><\/p>\n<p dir=\"RTL\" style=\"text-align: justify;\">\u0628\u0631\u0627\u06cc \u062a\u063a\u06cc\u06cc\u0631 \u0631\u0641\u062a\u0627\u0631 \u0633\u06cc\u06af\u0646\u0627\u0644 \u0647\u0627 \u0627\u0632 \u062f\u0633\u062a\u0648\u0631 trap \u00a0\u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u06a9\u0646\u06cc\u0645.<\/p>\n<h2 dir=\"RTL\">\u0633\u0627\u062e\u062a\u0627\u0631 \u062f\u0633\u062a\u0648\u0631 trap<\/h2>\n<p dir=\"RTL\" style=\"text-align: justify;\">\u0633\u0627\u062e\u062a\u0627\u0631 \u06a9\u0644\u06cc \u062f\u0633\u062a\u0648\u0631 \u0628\u0647 \u0634\u0631\u062d \u0632\u06cc\u0631 \u0627\u0633\u062a:<\/p>\n<div dir=\"rtl\" style=\"text-align: justify;\" align=\"right\">\n<table dir=\"rtl\" border=\"1\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td valign=\"top\" width=\"601\">\n<p dir=\"LTR\"><strong>trap<\/strong> &#8216;arg&#8217; signals<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p dir=\"RTL\" style=\"text-align: justify;\">\u0628\u0647 \u0645\u062b\u0627\u0644 \u0632\u06cc\u0631 \u062f\u0642\u062a \u06a9\u0646\u06cc\u062f:<\/p>\n<div dir=\"rtl\" style=\"text-align: justify;\" align=\"right\">\n<table dir=\"rtl\" border=\"1\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td valign=\"top\" width=\"601\">\n<pre dir=\"LTR\"><tt>#!\/bin\/bash<\/tt><\/pre>\n<pre dir=\"LTR\"><tt>\u00a0<\/tt><\/pre>\n<pre dir=\"LTR\"><tt># Program to print a text file with headers and footers<\/tt><\/pre>\n<pre dir=\"LTR\"><tt>\u00a0<\/tt><\/pre>\n<pre dir=\"LTR\"><tt>TEMP_FILE=\/tmp\/printfile.txt<\/tt><\/pre>\n<pre dir=\"LTR\"><tt>\u00a0<\/tt><\/pre>\n<pre dir=\"LTR\"><tt><strong>trap<\/strong><\/tt><tt> \"rm $TEMP_FILE; exit\" SIGHUP SIGINT SIGTERM<\/tt><\/pre>\n<pre dir=\"LTR\"><tt>\u00a0<\/tt><\/pre>\n<pre dir=\"LTR\"><tt>pr $1 &gt; $TEMP_FILE<\/tt><\/pre>\n<pre dir=\"LTR\"><tt>\u00a0<\/tt><\/pre>\n<pre dir=\"LTR\"><tt><strong>echo<\/strong><\/tt><tt> -n \"Print file? [y\/n]: \"<\/tt><\/pre>\n<pre dir=\"LTR\"><tt><strong>read<\/strong><\/tt><\/pre>\n<pre dir=\"LTR\"><tt><strong>if<\/strong><\/tt><tt> <strong>[<\/strong> \"$REPLY\" = \"y\" <strong>];<\/strong> <strong>then<\/strong><\/tt><\/pre>\n<pre dir=\"LTR\"><tt>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 lpr $TEMP_FILE<\/tt><\/pre>\n<pre dir=\"LTR\"><tt><strong>fi<\/strong><\/tt><\/pre>\n<pre dir=\"LTR\"><tt>rm $TEMP_FILE<\/tt><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p dir=\"RTL\" style=\"text-align: justify;\">\u062f\u0631 \u0645\u062b\u0627\u0644 \u0632\u06cc\u0631, \u062f\u0631 \u0635\u0648\u0631\u062a\u06cc \u06a9\u0647 \u0628\u0631\u0646\u0627\u0645\u0647 \u0628\u0627 \u0647\u0631 \u06a9\u062f\u0627\u0645 \u0627\u0632 \u0633\u06cc\u06af\u0646\u0627\u0644 \u0647\u0627\u06cc <tt>SIGHUP SIGINT SIGTERM<\/tt>\u00a0 \u0628\u0633\u062a\u0647 \u0634\u0648\u062f. \u0633\u0637\u0631 \u0645\u062d\u062a\u0648\u06cc \u062f\u0627\u0631 \u0686\u0647\u0627\u0631\u0645 \u0628\u0627 \u062f\u0633\u062a\u0648\u0631 trap \u0627\u0648\u0644 \u0641\u0627\u06cc\u0644 \u0645\u0648\u0642\u062a \u0627\u06cc\u062c\u0627\u062f \u0634\u062f\u0647 \u0631\u0627 \u062d\u0630\u0641 \u0645\u06cc\u06a9\u0646\u062f. \u0633\u067e\u0633 \u0628\u0631\u0646\u0627\u0645\u0647 \u0631\u0627 \u0645\u06cc\u0628\u0646\u062f\u062f.<\/p>\n<p dir=\"RTL\" style=\"text-align: justify;\">\u062a\u0648\u062c\u0647 \u06a9\u0646\u06cc\u062f \u06a9\u0647 \u0633\u06cc\u06af\u0646\u0627\u0644 SIGKILL \u06cc\u0627 \u0647\u0645\u0627\u0646 \u0633\u06cc\u06af\u0646\u0627\u0644 \u0634\u0645\u0627\u0631\u0647 \u06f9 \u0642\u0627\u0628\u0644 trap \u0634\u062f\u0646 \u0646\u0645\u06cc\u0628\u0627\u0634\u062f \u0648 \u0628\u0644\u0627\u0641\u0627\u0635\u0644\u0647 \u067e\u0633 \u0627\u0632 \u062f\u0631\u06cc\u0627\u0641\u062a \u0645\u0648\u062c\u0628 \u0628\u0633\u062a\u0647 \u0634\u062f\u0646 \u0628\u0631\u0646\u0627\u0645\u0647 \u062e\u0648\u0627\u0647\u062f \u0634\u062f. \u0628\u0631\u0627\u06cc \u0627\u0631\u0633\u0627\u0644 \u0686\u0646\u06cc\u0646 \u0633\u06cc\u06af\u0646\u0627\u0644\u06cc \u0628\u0647 \u0633\u06cc\u0633\u062a\u0645 \u0639\u0627\u0645\u0644 \u0645\u06cc\u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u0632 \u062f\u0633\u062a\u0648\u0631 kill -9 programname \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f. \u06a9\u0647 \u0627\u0644\u0628\u062a\u0647 \u0645\u0648\u062c\u0628 \u0628\u0631\u0648\u0632 \u0645\u0634\u06a9\u0644\u0627\u062a\u06cc \u0627\u0632 \u0642\u0628\u06cc\u0644 \u0628\u0627\u0642\u06cc \u0645\u0627\u0646\u062f\u0646 lockfile \u062e\u0648\u0627\u0647\u062f \u0634\u062f.<\/p>\n<p dir=\"RTL\" style=\"text-align: justify;\">\u0628\u0631\u0627\u06cc \u0627\u06cc\u0646\u06a9\u0647 \u06cc\u06a9 \u062a\u0627\u0628\u0639 \u067e\u0627\u06a9\u0633\u0627\u0632\u06cc \u062c\u0647\u062a \u067e\u0627\u0633\u062e \u0628\u0647 Ctrl+C \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f. \u0628\u0627 \u062f\u0633\u062a\u0648\u0631 function \u0637\u0628\u0642 \u0622\u0645\u0648\u0632\u0634\u06cc \u06a9\u0647 \u062f\u0631 \u062c\u0644\u0633\u0627\u062a \u0642\u0628\u0644 \u0627\u0631\u0627\u0626\u0647 \u0634\u062f. \u06cc\u06a9 \u062a\u0627\u0628\u0639 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f \u0648 \u062f\u0633\u062a\u0648\u0631\u0627\u062a \u0645\u0648\u0631\u062f \u0646\u0638\u0631 \u0631\u0627 \u062c\u0647\u062a \u067e\u0627\u06a9\u0633\u0627\u0632\u06cc \u062f\u0631 \u0622\u0646 \u0642\u0631\u0627\u0631 \u062f\u0647\u06cc\u062f. \u062a\u0627\u0628\u0639 \u067e\u0627\u06a9\u0633\u0627\u0632\u06cc \u0645\u0639\u0645\u0648\u0644\u0627 \u0634\u0627\u0645\u0644 \u062d\u0630\u0641 \u0641\u0627\u06cc\u0644 \u0647\u0627\u06cc \u0645\u0648\u0642\u062a. \u0628\u0627\u0632\u06af\u0631\u062f\u0627\u0646\u06cc \u06a9\u0627\u0646\u0641\u06cc\u06af \u0647\u0627\u06cc \u0645\u0648\u0642\u062a, \u0641\u0639\u0627\u0644 \u06a9\u0631\u062f\u0646 \u0633\u0631\u0648\u06cc\u0633 \u0647\u0627\u06cc\u06cc \u06a9\u0647 \u0645\u0648\u0642\u062a\u0627 \u063a\u06cc\u0631 \u0641\u0639\u0627\u0644 \u0634\u062f\u0647 ( \u0645\u062b\u0644\u0627 \u0634\u0628\u06a9\u0647!)\u00a0 \u0648 \u0630\u062e\u06cc\u0631\u0647 \u0633\u0627\u0632\u06cc \u0627\u0637\u0644\u0627\u0639\u0627\u062aLog \u0645\u06cc\u0628\u0627\u0634\u062f.<\/p>\n<p dir=\"RTL\" style=\"text-align: justify;\">\u062a\u0627\u0628\u0639 \u0631\u0627 \u062f\u0631 \u0633\u0637\u0631 \u0647\u0627\u06cc \u0627\u0648\u0644\u06cc\u0647 (\u0642\u0628\u0644 \u0627\u0632 \u062f\u0633\u062a\u0648\u0631\u0627\u062a \u0627\u0635\u0644\u06cc) \u062a\u0639\u0631\u06cc\u0641 \u06a9\u0646\u06cc\u062f \u0648 \u0628\u0644\u0627 \u0641\u0627\u0635\u0644\u0647 \u0628\u0639\u062f \u062a\u0639\u0631\u06cc\u0641, \u062f\u0633\u062a\u0648\u0631 trap \u00a0\u0631\u0627 \u0628\u0646\u0648\u06cc\u0633\u06cc\u062f.<\/p>\n<p dir=\"RTL\" style=\"text-align: justify;\">\u0628\u0647 \u0645\u062b\u0627\u0644 \u0632\u06cc\u0631 \u062a\u0648\u062c\u0647 \u06a9\u0646\u06cc\u062f:<\/p>\n<div dir=\"rtl\" style=\"text-align: justify;\" align=\"right\">\n<table dir=\"rtl\" border=\"1\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td valign=\"top\" width=\"601\">\n<pre dir=\"LTR\"><tt>#!\/bin\/bash<\/tt><\/pre>\n<pre dir=\"LTR\"><tt>\u00a0<\/tt><\/pre>\n<pre dir=\"LTR\"><tt># Program to print a text file with headers and footers<\/tt><\/pre>\n<pre dir=\"LTR\"><tt>\u00a0<\/tt><\/pre>\n<pre dir=\"LTR\"><tt>TEMP_FILE=\/tmp\/printfile.txt<\/tt><\/pre>\n<pre dir=\"LTR\"><tt>\u00a0<\/tt><\/pre>\n<pre dir=\"LTR\"><tt><strong>function<\/strong><\/tt><tt> clean_up {<\/tt><\/pre>\n<pre dir=\"LTR\"><tt>\u00a0<\/tt><\/pre>\n<pre dir=\"LTR\"><tt>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 # Perform program exit housekeeping<\/tt><\/pre>\n<pre dir=\"LTR\"><tt>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 rm $TEMP_FILE<\/tt><\/pre>\n<pre dir=\"LTR\"><tt>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <strong>exit<\/strong><\/tt><\/pre>\n<pre dir=\"LTR\"><tt>}<\/tt><\/pre>\n<pre dir=\"LTR\"><tt>\u00a0<\/tt><\/pre>\n<pre dir=\"LTR\"><tt><strong>trap<\/strong><\/tt><tt> clean_up SIGHUP SIGINT SIGTERM<\/tt><\/pre>\n<pre dir=\"LTR\"><tt>\u00a0<\/tt><\/pre>\n<pre dir=\"LTR\"><tt>pr $1 &gt; $TEMP_FILE<\/tt><\/pre>\n<pre dir=\"LTR\"><tt>\u00a0<\/tt><\/pre>\n<pre dir=\"LTR\"><tt><strong>echo<\/strong><\/tt><tt> -n \"Print file? [y\/n]: \"<\/tt><\/pre>\n<pre dir=\"LTR\"><tt><strong>read<\/strong><\/tt><\/pre>\n<pre dir=\"LTR\"><tt><strong>if<\/strong><\/tt><tt> <strong>[<\/strong> \"$REPLY\" = \"y\" <strong>];<\/strong> <strong>then<\/strong><\/tt><\/pre>\n<pre dir=\"LTR\"><tt>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 lpr $TEMP_FILE<\/tt><\/pre>\n<pre dir=\"LTR\"><tt><strong>fi<\/strong><\/tt><\/pre>\n<pre dir=\"LTR\"><tt>clean_up<\/tt><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h3 dir=\"RTL\">\u0646\u06a9\u0627\u062a \u0645\u0647\u0645<\/h3>\n<p dir=\"RTL\" style=\"text-align: justify;\">\u062f\u0631 \u0627\u06cc\u0646 \u0645\u062b\u0627\u0644 \u062a\u0627\u0628\u0639 \u067e\u0627\u06a9\u0633\u0627\u0632\u06cc \u0628\u0627 \u0646\u0627\u0645 clean_up \u062a\u0639\u0631\u06cc\u0641 \u0634\u062f\u0647 \u0648 \u062f\u0633\u062a\u0648\u0631 trap \u062f\u0631 \u0635\u0648\u0631\u062a \u062a\u0634\u062e\u06cc\u0635 \u0633\u06cc\u06af\u0646\u0627\u0644 \u0647\u0627\u06cc \u062e\u0631\u0648\u062c, \u0627\u0642\u062f\u0627\u0645 \u0628\u0647 \u0628\u0633\u062a\u0646 \u0622\u0646 \u0645\u06cc\u06a9\u0646\u062f. \u062f\u0631 \u0635\u0648\u0631\u062a\u06cc \u06a9\u0647 \u0646\u0645\u06cc\u062a\u0648\u0627\u0646\u06cc\u062f \u0646\u0627\u0645 \u0647\u0627\u06cc <tt>SIGHUP SIGINT SIGTERM<\/tt> \u0631\u0627 \u0628\u0647 \u062e\u0627\u0637\u0631 \u0628\u0633\u067e\u0627\u0631\u06cc\u062f. \u0628\u0647 \u062c\u0627\u06cc \u0622\u0646 \u0627\u0632 \u062f\u0633\u062a\u0648\u0631<\/p>\n<pre dir=\"LTR\"><tt><strong>trap<\/strong><\/tt><tt> clean_up 2<\/tt><\/pre>\n<pre dir=\"LTR\"><tt>\u00a0<\/tt><\/pre>\n<pre dir=\"RTL\"><tt>\u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f, \u0627\u06cc\u0646 \u062f\u0633\u062a\u0648\u0631 \u0628\u0631\u0627\u06cc \u0648\u0627\u06a9\u0646\u0634 \u0628\u0647 <\/tt><tt>ctrl+c<\/tt><tt> \u06a9\u0627\u0641\u06cc \u0627\u0633\u062a.<\/tt><\/pre>\n<pre dir=\"RTL\"><tt>\u0646\u0627\u0645 \u0647\u0627\u06cc\u06cc \u06a9\u0647 \u062f\u0631 \u0645\u062b\u0627\u0644 \u0628\u0627\u0644\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0631\u062f\u06cc\u0645, \u0633\u06cc\u06af\u0646\u0627\u0644 \u0647\u0627\u06cc \u062e\u0631\u0648\u062c \u062a\u0639\u0631\u06cc\u0641 \u0634\u062f\u0647 \u062f\u0631 \u0644\u06cc\u0646\u0648\u06a9\u0633 \u0647\u0633\u062a\u0646\u062f. \u062c\u062f\u0648\u0644 \u0632\u06cc\u0631 \u0645\u0637\u0631\u062d \u062a\u0631\u06cc\u0646 \u0627\u06cc\u0646 \u0633\u06cc\u06af\u0646\u0627\u0644 \u0647\u0627 \u0631\u0627 \u0646\u0634\u0627\u0646 \u0645\u06cc\u062f\u0647\u062f:<\/tt><\/pre>\n<div dir=\"ltr\" style=\"text-align: justify;\" align=\"left\">\n<table style=\"width: 620px;\" border=\"1\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td valign=\"top\" width=\"121\">\n<p dir=\"LTR\"><strong>Signal Name<\/strong><\/p>\n<\/td>\n<td valign=\"top\" width=\"80\">\n<p dir=\"LTR\"><strong>Signal Number<\/strong><\/p>\n<\/td>\n<td valign=\"top\" width=\"418\">\n<p dir=\"LTR\"><strong>Description<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\">\n<p dir=\"LTR\">SIGHUP<\/p>\n<\/td>\n<td valign=\"top\">\n<p dir=\"LTR\">\u06f1<\/p>\n<\/td>\n<td valign=\"top\">\n<p dir=\"LTR\">Hang up detected on controlling terminal or death of controlling process<\/p>\n<p dir=\"RTL\">\u0645\u0639\u0645\u0648\u0644\u0627 \u0645\u0648\u0642\u0639 \u0642\u0637\u0639 \u0634\u062f\u0646 \u0627\u0631\u062a\u0628\u0627\u0637 \u00a0SSH\u00a0 \u0631\u062e \u0645\u06cc\u062f\u0647\u062f<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\">\n<p dir=\"LTR\">SIGINT<\/p>\n<\/td>\n<td valign=\"top\">\n<p dir=\"LTR\">\u06f2<\/p>\n<\/td>\n<td valign=\"top\">\n<p dir=\"LTR\">Issued if the user sends an interrupt signal (Ctrl + C).<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\">\n<p dir=\"LTR\">SIGQUIT<\/p>\n<\/td>\n<td valign=\"top\">\n<p dir=\"LTR\">\u06f3<\/p>\n<\/td>\n<td valign=\"top\">\n<p dir=\"LTR\">Issued if the user sends a quit signal (Ctrl + D).<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\">\n<p dir=\"LTR\">SIGFPE<\/p>\n<\/td>\n<td valign=\"top\">\n<p dir=\"LTR\">\u06f8<\/p>\n<\/td>\n<td valign=\"top\">\n<p dir=\"LTR\">Issued if an illegal mathematical operation is attempted<\/p>\n<p dir=\"RTL\">\u0645\u0639\u0645\u0648\u0644\u0627 \u0627\u0632 \u062e\u0637\u0627 \u0647\u0627\u06cc \u062f\u0627\u062e\u0644 \u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0627\u0634\u06cc \u0645\u06cc\u0634\u0648\u062f.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\">\n<p dir=\"LTR\">SIGKILL<\/p>\n<\/td>\n<td valign=\"top\">\n<p dir=\"LTR\">\u06f9<\/p>\n<\/td>\n<td valign=\"top\">\n<p dir=\"LTR\">If a process gets this signal it must quit immediately and will not perform any clean-up operations<\/p>\n<p dir=\"RTL\">\u0627\u06cc\u0646 \u0633\u06cc\u06af\u0646\u0627\u0644 \u0628\u0647 \u0637\u0648\u0631 \u067e\u06cc\u0634\u0641\u0631\u0636 \u062a\u0648\u0633\u0637 \u062f\u0633\u062a\u0648\u0631 Kill \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u0634\u0648\u062f.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\">\n<p dir=\"LTR\">SIGALRM<\/p>\n<\/td>\n<td valign=\"top\">\n<p dir=\"LTR\">\u06f1\u06f4<\/p>\n<\/td>\n<td valign=\"top\">\n<p dir=\"LTR\">Alarm Clock signal (used for timers)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\">\n<p dir=\"LTR\">SIGTERM<\/p>\n<\/td>\n<td valign=\"top\">\n<p dir=\"LTR\">\u06f1\u06f5<\/p>\n<\/td>\n<td valign=\"top\">\n<p dir=\"LTR\">Software termination signal (sent by kill by default).<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<pre dir=\"RTL\"><tt>\u00a0<\/tt><\/pre>\n<pre dir=\"RTL\"><tt>\u00a0<\/tt><\/pre>\n<pre dir=\"RTL\"><tt>\u00a0<\/tt><\/pre>\n<p dir=\"RTL\" style=\"text-align: justify;\">\u0628\u0631\u0627\u06cc \u0645\u0634\u0627\u0647\u062f\u0647 \u0644\u06cc\u0633\u062a \u06a9\u0627\u0645\u0644 \u0633\u06cc\u06af\u0646\u0627\u0644 \u0647\u0627, \u0627\u0632 \u062f\u0633\u062a\u0648\u0631 kill \u2013l \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0646\u0645\u0627\u06cc\u06cc\u062f.<\/p>\n<p dir=\"RTL\" style=\"text-align: justify;\">\u0628\u0631\u0627\u06cc \u0627\u0631\u0633\u0627\u0644 \u0647\u0631\u06a9\u062f\u0627\u0645 \u0627\u0632 \u0633\u06cc\u06af\u0646\u0627\u0644 \u0647\u0627 \u06a9\u0627\u0641\u06cc\u0633\u062a \u0627\u0632 \u062f\u0633\u062a\u0648\u0631 kill \u0628\u0647 \u0635\u0648\u0631\u062a \u0632\u06cc\u0631 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f:<\/p>\n<div style=\"text-align: justify;\">\n<pre dir=\"LTR\">kill -9 1001<\/pre>\n<\/div>\n<p dir=\"RTL\" style=\"text-align: justify;\">\u0645\u062b\u0627\u0644 \u0628\u0627\u0644\u0627 \u0633\u06cc\u06af\u0646\u0627\u0644 \u0634\u0645\u0627\u0631\u0647 \u06f9 \u0631\u0627 \u0628\u0647 \u067e\u0631\u0648\u0633\u0647 \u0634\u0645\u0627\u0631\u0647 \u06f1\u06f0\u06f0\u06f1 \u0627\u0631\u0633\u0627\u0644 \u0645\u06cc\u06a9\u0646\u062f.<\/p>\n<p dir=\"RTL\" style=\"text-align: justify;\">\u0628\u0627 \u062f\u0633\u062a\u0648\u0631<\/p>\n<div style=\"text-align: justify;\">\n<pre dir=\"LTR\">trap '' 2<\/pre>\n<\/div>\n<p dir=\"RTL\" style=\"text-align: justify;\">\u0645\u06cc\u062a\u0648\u0627\u0646\u06cc\u062f \u0628\u0647 \u0637\u0648\u0631 \u06a9\u0644\u06cc \u062c\u0644\u0648\u06cc \u0639\u0645\u0644\u06a9\u0631\u062f ctrl+c \u0631\u0627 \u0628\u06af\u06cc\u0631\u06cc\u062f.<\/p>\n<p dir=\"RTL\" style=\"text-align: justify;\">\u0628\u0631\u0627\u06cc \u0628\u0627\u0632\u06af\u0631\u062f\u0627\u0646\u06cc trap \u0647\u0627 \u0628\u0647 \u062d\u0627\u0644\u062a \u0627\u0648\u0644 \u0627\u0632 \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f:<\/p>\n<div>\n<pre dir=\"LTR\">trap 1 2\r\n<\/pre>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u0646\u0648\u06cc\u0633\u06cc \u067e\u06cc\u0634\u0631\u0641\u062a\u0647 \u0644\u06cc\u0646\u0648\u06a9\u0633 \u0628\u0631\u0627\u06cc \u0648\u0628\u0645\u0633\u062a\u0631 \u0647\u0627 \u2013 trap : \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u0647\u0627\u06cc \u0644\u06cc\u0646\u0648\u06a9\u0633 \u0628\u0627 \u062f\u0631\u06cc\u0627\u0641\u062a \u0633\u06cc\u06af\u0646\u0627\u0644 \u0634\u0645\u0627\u0631\u0647 \u06f2 \u06cc\u0627 Ctrl + C \u0628\u0647 \u06a9\u0627\u0631 \u062e\u0648\u062f \u067e\u0627\u06cc\u0627\u0646 \u0645\u06cc\u062f\u0647\u0646\u062f. \u0627\u06cc\u0646 \u0627\u062a\u0641\u0627\u0642 \u062f\u0631 \u0628\u0631\u0646\u0627\u0645\u0647 \u0647\u0627\u06cc \u067e\u06cc\u0686\u06cc\u062f\u0647 \u0645\u0645\u06a9\u0646 \u0627\u0633\u062a \u0628\u0627\u0639\u062b \u0628\u0631\u0648\u0632 \u0627\u0634\u06a9\u0627\u0644 \u062f\u0631 \u0639\u0645\u0644\u06a9\u0631\u062f \u0633\u06cc\u0633\u062a\u0645 \u0639\u0627\u0645\u0644 \u0634\u0648\u062f. \u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633 \u0647\u0627 \u0645\u0639\u0645\u0648\u0644\u0627 \u06cc\u06a9 \u0631\u0648\u0627\u0644 \u0628\u0631\u0627\u06cc \u0686\u0646\u06cc\u0646 \u0645\u0648\u0627\u0642\u0639\u06cc \u062f\u0631 \u0646\u0638\u0631 \u0645\u06cc\u06af\u06cc\u0631\u0646\u062f [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-23411","post","type-post","status-publish","format-standard","hentry","category-blog"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v23.5 (Yoast SEO v26.6) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u0646\u0648\u06cc\u0633\u06cc \u067e\u06cc\u0634\u0631\u0641\u062a\u0647 \u0644\u06cc\u0646\u0648\u06a9\u0633 \u0628\u0631\u0627\u06cc \u0648\u0628\u0645\u0633\u062a\u0631 \u0647\u0627 \u2013 \u0642\u0633\u0645\u062a \u06f9 \u2013 trap - \u0648\u06cc\u06a9\u06cc \u0646\u0648\u06cc\u0646 \u0647\u0627\u0633\u062a<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.novinhost.org\/wiki\/advanced-linux-scripting-for-webmasters-9\/\" \/>\n<meta property=\"og:locale\" content=\"fa_IR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u0646\u0648\u06cc\u0633\u06cc \u067e\u06cc\u0634\u0631\u0641\u062a\u0647 \u0644\u06cc\u0646\u0648\u06a9\u0633 \u0628\u0631\u0627\u06cc \u0648\u0628\u0645\u0633\u062a\u0631 \u0647\u0627 \u2013 \u0642\u0633\u0645\u062a \u06f9 \u2013 trap\" \/>\n<meta property=\"og:description\" content=\"\u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u0646\u0648\u06cc\u0633\u06cc \u067e\u06cc\u0634\u0631\u0641\u062a\u0647 \u0644\u06cc\u0646\u0648\u06a9\u0633 \u0628\u0631\u0627\u06cc \u0648\u0628\u0645\u0633\u062a\u0631 \u0647\u0627 \u2013 trap : \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u0647\u0627\u06cc \u0644\u06cc\u0646\u0648\u06a9\u0633 \u0628\u0627 \u062f\u0631\u06cc\u0627\u0641\u062a \u0633\u06cc\u06af\u0646\u0627\u0644 \u0634\u0645\u0627\u0631\u0647 \u06f2 \u06cc\u0627 Ctrl + C \u0628\u0647 \u06a9\u0627\u0631 \u062e\u0648\u062f \u067e\u0627\u06cc\u0627\u0646 \u0645\u06cc\u062f\u0647\u0646\u062f. \u0627\u06cc\u0646 \u0627\u062a\u0641\u0627\u0642 \u062f\u0631 \u0628\u0631\u0646\u0627\u0645\u0647 \u0647\u0627\u06cc \u067e\u06cc\u0686\u06cc\u062f\u0647 \u0645\u0645\u06a9\u0646 \u0627\u0633\u062a \u0628\u0627\u0639\u062b \u0628\u0631\u0648\u0632 \u0627\u0634\u06a9\u0627\u0644 \u062f\u0631 \u0639\u0645\u0644\u06a9\u0631\u062f \u0633\u06cc\u0633\u062a\u0645 \u0639\u0627\u0645\u0644 \u0634\u0648\u062f. \u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633 \u0647\u0627 \u0645\u0639\u0645\u0648\u0644\u0627 \u06cc\u06a9 \u0631\u0648\u0627\u0644 \u0628\u0631\u0627\u06cc \u0686\u0646\u06cc\u0646 \u0645\u0648\u0627\u0642\u0639\u06cc \u062f\u0631 \u0646\u0638\u0631 \u0645\u06cc\u06af\u06cc\u0631\u0646\u062f [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.novinhost.org\/wiki\/advanced-linux-scripting-for-webmasters-9\/\" \/>\n<meta property=\"og:site_name\" content=\"\u0648\u06cc\u06a9\u06cc \u0646\u0648\u06cc\u0646 \u0647\u0627\u0633\u062a\" \/>\n<meta property=\"article:published_time\" content=\"2021-10-16T12:23:02+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-10-01T07:03:27+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u0646\u0648\u0634\u062a\u0647\u200c\u0634\u062f\u0647 \u0628\u062f\u0633\u062a\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u0632\u0645\u0627\u0646 \u062a\u0642\u0631\u06cc\u0628\u06cc \u0628\u0631\u0627\u06cc \u062e\u0648\u0627\u0646\u062f\u0646\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u062f\u0642\u06cc\u0642\u0647\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.novinhost.org\/wiki\/advanced-linux-scripting-for-webmasters-9\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.novinhost.org\/wiki\/advanced-linux-scripting-for-webmasters-9\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\/\/www.novinhost.org\/wiki\/#\/schema\/person\/580f148637dd551abb0352038be0a527\"},\"headline\":\"\u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u0646\u0648\u06cc\u0633\u06cc \u067e\u06cc\u0634\u0631\u0641\u062a\u0647 \u0644\u06cc\u0646\u0648\u06a9\u0633 \u0628\u0631\u0627\u06cc \u0648\u0628\u0645\u0633\u062a\u0631 \u0647\u0627 \u2013 \u0642\u0633\u0645\u062a \u06f9 \u2013 trap\",\"datePublished\":\"2021-10-16T12:23:02+00:00\",\"dateModified\":\"2025-10-01T07:03:27+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.novinhost.org\/wiki\/advanced-linux-scripting-for-webmasters-9\/\"},\"wordCount\":120,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.novinhost.org\/wiki\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.novinhost.org\/wiki\/advanced-linux-scripting-for-webmasters-9\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.novinhost.org\/wiki\/wp-content\/uploads\/2024\/03\/AdvancedLinuxShell-9.jpg\",\"articleSection\":[\"\u0645\u0642\u0627\u0644\u0627\u062a\"],\"inLanguage\":\"fa-IR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.novinhost.org\/wiki\/advanced-linux-scripting-for-webmasters-9\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.novinhost.org\/wiki\/advanced-linux-scripting-for-webmasters-9\/\",\"url\":\"https:\/\/www.novinhost.org\/wiki\/advanced-linux-scripting-for-webmasters-9\/\",\"name\":\"\u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u0646\u0648\u06cc\u0633\u06cc \u067e\u06cc\u0634\u0631\u0641\u062a\u0647 \u0644\u06cc\u0646\u0648\u06a9\u0633 \u0628\u0631\u0627\u06cc \u0648\u0628\u0645\u0633\u062a\u0631 \u0647\u0627 \u2013 \u0642\u0633\u0645\u062a \u06f9 \u2013 trap - \u0648\u06cc\u06a9\u06cc \u0646\u0648\u06cc\u0646 \u0647\u0627\u0633\u062a\",\"isPartOf\":{\"@id\":\"https:\/\/www.novinhost.org\/wiki\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.novinhost.org\/wiki\/advanced-linux-scripting-for-webmasters-9\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.novinhost.org\/wiki\/advanced-linux-scripting-for-webmasters-9\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.novinhost.org\/wiki\/wp-content\/uploads\/2024\/03\/AdvancedLinuxShell-9.jpg\",\"datePublished\":\"2021-10-16T12:23:02+00:00\",\"dateModified\":\"2025-10-01T07:03:27+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.novinhost.org\/wiki\/advanced-linux-scripting-for-webmasters-9\/#breadcrumb\"},\"inLanguage\":\"fa-IR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.novinhost.org\/wiki\/advanced-linux-scripting-for-webmasters-9\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"fa-IR\",\"@id\":\"https:\/\/www.novinhost.org\/wiki\/advanced-linux-scripting-for-webmasters-9\/#primaryimage\",\"url\":\"\",\"contentUrl\":\"\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.novinhost.org\/wiki\/advanced-linux-scripting-for-webmasters-9\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u062e\u0627\u0646\u0647\",\"item\":\"https:\/\/www.novinhost.org\/wiki\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u0646\u0648\u06cc\u0633\u06cc \u067e\u06cc\u0634\u0631\u0641\u062a\u0647 \u0644\u06cc\u0646\u0648\u06a9\u0633 \u0628\u0631\u0627\u06cc \u0648\u0628\u0645\u0633\u062a\u0631 \u0647\u0627 \u2013 \u0642\u0633\u0645\u062a \u06f9 \u2013 trap\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.novinhost.org\/wiki\/#website\",\"url\":\"https:\/\/www.novinhost.org\/wiki\/\",\"name\":\"\u0648\u06cc\u06a9\u06cc \u0646\u0648\u06cc\u0646 \u0647\u0627\u0633\u062a\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.novinhost.org\/wiki\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.novinhost.org\/wiki\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"fa-IR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.novinhost.org\/wiki\/#organization\",\"name\":\"\u0648\u06cc\u06a9\u06cc \u0646\u0648\u06cc\u0646 \u0647\u0627\u0633\u062a\",\"url\":\"https:\/\/www.novinhost.org\/wiki\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fa-IR\",\"@id\":\"https:\/\/www.novinhost.org\/wiki\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.novinhost.org\/wiki\/wp-content\/uploads\/2025\/01\/NovinHostLogo-4-1.webp\",\"contentUrl\":\"https:\/\/www.novinhost.org\/wiki\/wp-content\/uploads\/2025\/01\/NovinHostLogo-4-1.webp\",\"width\":270,\"height\":74,\"caption\":\"\u0648\u06cc\u06a9\u06cc \u0646\u0648\u06cc\u0646 \u0647\u0627\u0633\u062a\"},\"image\":{\"@id\":\"https:\/\/www.novinhost.org\/wiki\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.novinhost.org\/wiki\/#\/schema\/person\/580f148637dd551abb0352038be0a527\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fa-IR\",\"@id\":\"https:\/\/www.novinhost.org\/wiki\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.novinhost.org\/wiki\/wp-content\/litespeed\/avatar\/19ab7b4f9bcf0dded3fa41f1350d9aa8.jpg?ver=1777198121\",\"contentUrl\":\"https:\/\/www.novinhost.org\/wiki\/wp-content\/litespeed\/avatar\/19ab7b4f9bcf0dded3fa41f1350d9aa8.jpg?ver=1777198121\",\"caption\":\"admin\"},\"url\":\"https:\/\/www.novinhost.org\/wiki\/author\/admin-wiki\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u0646\u0648\u06cc\u0633\u06cc \u067e\u06cc\u0634\u0631\u0641\u062a\u0647 \u0644\u06cc\u0646\u0648\u06a9\u0633 \u0628\u0631\u0627\u06cc \u0648\u0628\u0645\u0633\u062a\u0631 \u0647\u0627 \u2013 \u0642\u0633\u0645\u062a \u06f9 \u2013 trap - \u0648\u06cc\u06a9\u06cc \u0646\u0648\u06cc\u0646 \u0647\u0627\u0633\u062a","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.novinhost.org\/wiki\/advanced-linux-scripting-for-webmasters-9\/","og_locale":"fa_IR","og_type":"article","og_title":"\u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u0646\u0648\u06cc\u0633\u06cc \u067e\u06cc\u0634\u0631\u0641\u062a\u0647 \u0644\u06cc\u0646\u0648\u06a9\u0633 \u0628\u0631\u0627\u06cc \u0648\u0628\u0645\u0633\u062a\u0631 \u0647\u0627 \u2013 \u0642\u0633\u0645\u062a \u06f9 \u2013 trap","og_description":"\u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u0646\u0648\u06cc\u0633\u06cc \u067e\u06cc\u0634\u0631\u0641\u062a\u0647 \u0644\u06cc\u0646\u0648\u06a9\u0633 \u0628\u0631\u0627\u06cc \u0648\u0628\u0645\u0633\u062a\u0631 \u0647\u0627 \u2013 trap : \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u0647\u0627\u06cc \u0644\u06cc\u0646\u0648\u06a9\u0633 \u0628\u0627 \u062f\u0631\u06cc\u0627\u0641\u062a \u0633\u06cc\u06af\u0646\u0627\u0644 \u0634\u0645\u0627\u0631\u0647 \u06f2 \u06cc\u0627 Ctrl + C \u0628\u0647 \u06a9\u0627\u0631 \u062e\u0648\u062f \u067e\u0627\u06cc\u0627\u0646 \u0645\u06cc\u062f\u0647\u0646\u062f. \u0627\u06cc\u0646 \u0627\u062a\u0641\u0627\u0642 \u062f\u0631 \u0628\u0631\u0646\u0627\u0645\u0647 \u0647\u0627\u06cc \u067e\u06cc\u0686\u06cc\u062f\u0647 \u0645\u0645\u06a9\u0646 \u0627\u0633\u062a \u0628\u0627\u0639\u062b \u0628\u0631\u0648\u0632 \u0627\u0634\u06a9\u0627\u0644 \u062f\u0631 \u0639\u0645\u0644\u06a9\u0631\u062f \u0633\u06cc\u0633\u062a\u0645 \u0639\u0627\u0645\u0644 \u0634\u0648\u062f. \u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633 \u0647\u0627 \u0645\u0639\u0645\u0648\u0644\u0627 \u06cc\u06a9 \u0631\u0648\u0627\u0644 \u0628\u0631\u0627\u06cc \u0686\u0646\u06cc\u0646 \u0645\u0648\u0627\u0642\u0639\u06cc \u062f\u0631 \u0646\u0638\u0631 \u0645\u06cc\u06af\u06cc\u0631\u0646\u062f [&hellip;]","og_url":"https:\/\/www.novinhost.org\/wiki\/advanced-linux-scripting-for-webmasters-9\/","og_site_name":"\u0648\u06cc\u06a9\u06cc \u0646\u0648\u06cc\u0646 \u0647\u0627\u0633\u062a","article_published_time":"2021-10-16T12:23:02+00:00","article_modified_time":"2025-10-01T07:03:27+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u0646\u0648\u0634\u062a\u0647\u200c\u0634\u062f\u0647 \u0628\u062f\u0633\u062a":"admin","\u0632\u0645\u0627\u0646 \u062a\u0642\u0631\u06cc\u0628\u06cc \u0628\u0631\u0627\u06cc \u062e\u0648\u0627\u0646\u062f\u0646":"3 \u062f\u0642\u06cc\u0642\u0647"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.novinhost.org\/wiki\/advanced-linux-scripting-for-webmasters-9\/#article","isPartOf":{"@id":"https:\/\/www.novinhost.org\/wiki\/advanced-linux-scripting-for-webmasters-9\/"},"author":{"name":"admin","@id":"https:\/\/www.novinhost.org\/wiki\/#\/schema\/person\/580f148637dd551abb0352038be0a527"},"headline":"\u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u0646\u0648\u06cc\u0633\u06cc \u067e\u06cc\u0634\u0631\u0641\u062a\u0647 \u0644\u06cc\u0646\u0648\u06a9\u0633 \u0628\u0631\u0627\u06cc \u0648\u0628\u0645\u0633\u062a\u0631 \u0647\u0627 \u2013 \u0642\u0633\u0645\u062a \u06f9 \u2013 trap","datePublished":"2021-10-16T12:23:02+00:00","dateModified":"2025-10-01T07:03:27+00:00","mainEntityOfPage":{"@id":"https:\/\/www.novinhost.org\/wiki\/advanced-linux-scripting-for-webmasters-9\/"},"wordCount":120,"commentCount":0,"publisher":{"@id":"https:\/\/www.novinhost.org\/wiki\/#organization"},"image":{"@id":"https:\/\/www.novinhost.org\/wiki\/advanced-linux-scripting-for-webmasters-9\/#primaryimage"},"thumbnailUrl":"https:\/\/www.novinhost.org\/wiki\/wp-content\/uploads\/2024\/03\/AdvancedLinuxShell-9.jpg","articleSection":["\u0645\u0642\u0627\u0644\u0627\u062a"],"inLanguage":"fa-IR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.novinhost.org\/wiki\/advanced-linux-scripting-for-webmasters-9\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.novinhost.org\/wiki\/advanced-linux-scripting-for-webmasters-9\/","url":"https:\/\/www.novinhost.org\/wiki\/advanced-linux-scripting-for-webmasters-9\/","name":"\u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u0646\u0648\u06cc\u0633\u06cc \u067e\u06cc\u0634\u0631\u0641\u062a\u0647 \u0644\u06cc\u0646\u0648\u06a9\u0633 \u0628\u0631\u0627\u06cc \u0648\u0628\u0645\u0633\u062a\u0631 \u0647\u0627 \u2013 \u0642\u0633\u0645\u062a \u06f9 \u2013 trap - \u0648\u06cc\u06a9\u06cc \u0646\u0648\u06cc\u0646 \u0647\u0627\u0633\u062a","isPartOf":{"@id":"https:\/\/www.novinhost.org\/wiki\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.novinhost.org\/wiki\/advanced-linux-scripting-for-webmasters-9\/#primaryimage"},"image":{"@id":"https:\/\/www.novinhost.org\/wiki\/advanced-linux-scripting-for-webmasters-9\/#primaryimage"},"thumbnailUrl":"https:\/\/www.novinhost.org\/wiki\/wp-content\/uploads\/2024\/03\/AdvancedLinuxShell-9.jpg","datePublished":"2021-10-16T12:23:02+00:00","dateModified":"2025-10-01T07:03:27+00:00","breadcrumb":{"@id":"https:\/\/www.novinhost.org\/wiki\/advanced-linux-scripting-for-webmasters-9\/#breadcrumb"},"inLanguage":"fa-IR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.novinhost.org\/wiki\/advanced-linux-scripting-for-webmasters-9\/"]}]},{"@type":"ImageObject","inLanguage":"fa-IR","@id":"https:\/\/www.novinhost.org\/wiki\/advanced-linux-scripting-for-webmasters-9\/#primaryimage","url":"","contentUrl":""},{"@type":"BreadcrumbList","@id":"https:\/\/www.novinhost.org\/wiki\/advanced-linux-scripting-for-webmasters-9\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u062e\u0627\u0646\u0647","item":"https:\/\/www.novinhost.org\/wiki\/"},{"@type":"ListItem","position":2,"name":"\u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u0646\u0648\u06cc\u0633\u06cc \u067e\u06cc\u0634\u0631\u0641\u062a\u0647 \u0644\u06cc\u0646\u0648\u06a9\u0633 \u0628\u0631\u0627\u06cc \u0648\u0628\u0645\u0633\u062a\u0631 \u0647\u0627 \u2013 \u0642\u0633\u0645\u062a \u06f9 \u2013 trap"}]},{"@type":"WebSite","@id":"https:\/\/www.novinhost.org\/wiki\/#website","url":"https:\/\/www.novinhost.org\/wiki\/","name":"\u0648\u06cc\u06a9\u06cc \u0646\u0648\u06cc\u0646 \u0647\u0627\u0633\u062a","description":"","publisher":{"@id":"https:\/\/www.novinhost.org\/wiki\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.novinhost.org\/wiki\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"fa-IR"},{"@type":"Organization","@id":"https:\/\/www.novinhost.org\/wiki\/#organization","name":"\u0648\u06cc\u06a9\u06cc \u0646\u0648\u06cc\u0646 \u0647\u0627\u0633\u062a","url":"https:\/\/www.novinhost.org\/wiki\/","logo":{"@type":"ImageObject","inLanguage":"fa-IR","@id":"https:\/\/www.novinhost.org\/wiki\/#\/schema\/logo\/image\/","url":"https:\/\/www.novinhost.org\/wiki\/wp-content\/uploads\/2025\/01\/NovinHostLogo-4-1.webp","contentUrl":"https:\/\/www.novinhost.org\/wiki\/wp-content\/uploads\/2025\/01\/NovinHostLogo-4-1.webp","width":270,"height":74,"caption":"\u0648\u06cc\u06a9\u06cc \u0646\u0648\u06cc\u0646 \u0647\u0627\u0633\u062a"},"image":{"@id":"https:\/\/www.novinhost.org\/wiki\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.novinhost.org\/wiki\/#\/schema\/person\/580f148637dd551abb0352038be0a527","name":"admin","image":{"@type":"ImageObject","inLanguage":"fa-IR","@id":"https:\/\/www.novinhost.org\/wiki\/#\/schema\/person\/image\/","url":"https:\/\/www.novinhost.org\/wiki\/wp-content\/litespeed\/avatar\/19ab7b4f9bcf0dded3fa41f1350d9aa8.jpg?ver=1777198121","contentUrl":"https:\/\/www.novinhost.org\/wiki\/wp-content\/litespeed\/avatar\/19ab7b4f9bcf0dded3fa41f1350d9aa8.jpg?ver=1777198121","caption":"admin"},"url":"https:\/\/www.novinhost.org\/wiki\/author\/admin-wiki\/"}]}},"_links":{"self":[{"href":"https:\/\/www.novinhost.org\/wiki\/wp-json\/wp\/v2\/posts\/23411","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.novinhost.org\/wiki\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.novinhost.org\/wiki\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.novinhost.org\/wiki\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.novinhost.org\/wiki\/wp-json\/wp\/v2\/comments?post=23411"}],"version-history":[{"count":1,"href":"https:\/\/www.novinhost.org\/wiki\/wp-json\/wp\/v2\/posts\/23411\/revisions"}],"predecessor-version":[{"id":22234972,"href":"https:\/\/www.novinhost.org\/wiki\/wp-json\/wp\/v2\/posts\/23411\/revisions\/22234972"}],"wp:attachment":[{"href":"https:\/\/www.novinhost.org\/wiki\/wp-json\/wp\/v2\/media?parent=23411"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.novinhost.org\/wiki\/wp-json\/wp\/v2\/categories?post=23411"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.novinhost.org\/wiki\/wp-json\/wp\/v2\/tags?post=23411"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}