{"id":399,"date":"2022-02-15T13:15:55","date_gmt":"2022-02-15T05:15:55","guid":{"rendered":"https:\/\/830519.xyz\/?p=399"},"modified":"2024-02-24T08:52:03","modified_gmt":"2024-02-24T00:52:03","slug":"linux-%e5%91%bd%e4%bb%a4","status":"publish","type":"post","link":"https:\/\/830519.xyz\/?p=399","title":{"rendered":"Linux"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code><strong>LemonBench<\/strong>\ncurl -fsSL http:\/\/ilemonra.in\/LemonBenchIntl | bash -s fast\nwget -qO- http:\/\/ilemonra.in\/LemonBenchIntl | bash -s fast\n\n<strong>yabs<\/strong>\ncurl -sL yabs.sh | bash -s -- -fi<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>\u767b\u5f55\u7cfb\u7edf\u8bb0\u5f55<\/strong>\nlastb\nlastb | wc -l\necho \"\" &gt; \/var\/log\/wtmp  #\u6e05\u9664\u767b\u5f55\u7cfb\u7edf\u6210\u529f\u7684\u8bb0\u5f55(last\u547d\u4ee4\u770b\u5230\u7684\u8bb0\u5f55)             \necho \"\" &gt; \/var\/log\/btmp  #\u6e05\u9664\u767b\u5f55\u7cfb\u7edf\u5931\u8d25\u7684\u8bb0\u5f55(lastb\u547d\u4ee4\u770b\u5230\u7684\u8bb0\u5f55)        \nhistory -c               #\u6e05\u9664\u5386\u53f2\u6267\u884c\u547d\u4ee4(history\u547d\u4ee4\u770b\u5230\u7684\u8bb0\u5f55)\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>\u67e5\u770b\u7f51\u7edc\u8fde\u63a5<\/strong>\nnetstat -an\nnetstat -an | grep :80 | wc -l\nnetstat -na | grep ESTABLISHED | wc -l\n\nwatch ifconfig\nwatch more \/proc\/net\/dev<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>screen<\/strong>\nscreen -S\nscreen -r\nscreen -ls\nscreen -rd\nCTRL+a+d\nscreen -dm tcpdump\nexit<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>chattr<\/strong>\nchattr +i ***   \/\/\u7981\u6b62\u66f4\u6539\u6587\u4ef6\nchattr -i ***   \/\/\u8fd8\u539f\u5c5e\u6027\nchattr -R +i ***   \/\/-R \u9012\u5f52\nchattr +a ***   \/\/\u589e\u52a0\u6570\u636e\u800c\u4e0d\u80fd\u5220\u9664   <\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>zip\u3001unzip<\/strong>\nzip ana.zip anaconda-ks.cfg\nzip test.zip install.log install.log.syslog\nzip -r dir1.zip dir1\n\nunzip test.zip \t\t\t\t-&gt;\u5c06test.zip\u89e3\u538b\u5230\u5f53\u524d\u6587\u4ef6\u4e0b\nunzip -n test.zip -d \/tmp \t-&gt;\u5c06test.zip\u89e3\u538b\u5230\/tmp\u76ee\u5f55\u4e0b\uff0c\u5e76\u4e14\u4e0d\u8981\u8986\u76d6\u5df2\u6709\u6587\u4ef6\nunzip -v test.zip\t\t\t-&gt;\u67e5\u770btest.zip\u5185\u5bb9\uff0c\u4f46\u4e0d\u89e3\u538b\nunzip -o test.zip -d tmp\/\t-&gt;\u5c06test.zip\u89e3\u538b\u5230\/tmp\u76ee\u5f55\u4e0b\uff0c\u5e76\u4e14\u8986\u76d6\u5df2\u6709\u6587\u4ef6<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>BestTrace<\/strong>\nyum -y install zip unzip\nwget https:\/\/cdn.ipip.net\/17mon\/besttrace4linux.zip\nunzip besttrace4linux.zip\nchmod +x besttrace\n.\/besttrace 14.122.163.247<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>Xshell \u5bc6\u94a5\u767b\u9646<\/strong>\nmkdir .ssh\nchmod 700 .ssh\nchmod 600 .ssh\/authorized_keys\n\nnano \/etc\/ssh\/sshd_config\n\nRSAAuthentication yes\nPubkeyAuthentication yes\nAuthorizedKeysFile .ssh\/authorized_keys\nPasswordAuthentication no\n\nservice sshd restart<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-399","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/830519.xyz\/index.php?rest_route=\/wp\/v2\/posts\/399","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/830519.xyz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/830519.xyz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/830519.xyz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/830519.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=399"}],"version-history":[{"count":5,"href":"https:\/\/830519.xyz\/index.php?rest_route=\/wp\/v2\/posts\/399\/revisions"}],"predecessor-version":[{"id":807,"href":"https:\/\/830519.xyz\/index.php?rest_route=\/wp\/v2\/posts\/399\/revisions\/807"}],"wp:attachment":[{"href":"https:\/\/830519.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=399"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/830519.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=399"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/830519.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=399"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}