{"id":120092,"date":"2018-09-19T08:08:58","date_gmt":"2018-09-19T00:08:58","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=120092"},"modified":"2018-09-10T11:10:12","modified_gmt":"2018-09-10T03:10:12","slug":"screen-captures-linux-scrot","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/screen-captures-linux-scrot.html","title":{"rendered":"\u547d\u4ee4\u884c\u4e2d\u622a\u56fe\u7684\u5c0f\u5de5\u5177"},"content":{"rendered":"
Linux \u684c\u9762\u4e0a\u6709\u8bb8\u591a\u7528\u4e8e\u622a\u5c4f\u7684\u4f18\u79c0\u5de5\u5177\uff0c\u6bd4\u5982 Ksnapshot<\/a>[1]<\/span> \u548c Shutter<\/a>[2]<\/span> \u3002\u751a\u81f3 GNOME \u684c\u9762\u81ea\u5e26\u7684\u7b80\u6613\u622a\u5c4f\u5de5\u5177\u4e5f\u80fd\u591f\u5f88\u597d\u7684\u5de5\u4f5c\u3002\u4f46\u662f\uff0c\u5982\u679c\u4f60\u5f88\u5c11\u622a\u5c4f\uff0c\u6216\u8005\u4f60\u4f7f\u7528\u7684 Linux \u53d1\u884c\u7248\u6ca1\u6709\u5185\u5efa\u622a\u5c4f\u5de5\u5177\uff0c\u6216\u8005\u4f60\u4f7f\u7528\u7684\u662f\u4e00\u53f0\u8d44\u6e90\u6709\u9650\u7684\u8001\u7535\u8111\uff0c\u90a3\u4e48\u4f60\u8be5\u600e\u4e48\u529e\u5462\uff1f<\/p>\n \u6216\u8bb8\u4f60\u53ef\u4ee5\u8f6c\u5411\u547d\u4ee4\u884c\uff0c\u4f7f\u7528\u4e00\u4e2a\u53eb\u505a Scrot<\/a>[3]<\/span> \u7684\u5b9e\u7528\u5de5\u5177\u3002\u5b83\u80fd\u591f\u5b8c\u6210\u7b80\u5355\u7684\u622a\u5c4f\u5de5\u4f5c\uff0c\u540c\u65f6\u5b83\u6240\u5177\u6709\u7684\u4e00\u4e9b\u7279\u6027\u4e5f\u8bb8\u4f1a\u8ba9\u4f60\u611f\u5230\u975e\u5e38\u60ca\u559c\u3002<\/p>\n \u8bb8\u591a Linux \u53d1\u884c\u7248\u90fd\u4f1a\u9884\u5148\u5b89\u88c5\u4e0a Scrot \uff0c\u53ef\u4ee5\u8f93\u5165 which scrot<\/span> \u547d\u4ee4\u6765\u67e5\u770b\u7cfb\u7edf\u4e2d\u662f\u5426\u5b89\u88c5\u6709 Scrot \u3002\u5982\u679c\u6ca1\u6709\uff0c\u90a3\u4e48\u53ef\u4ee5\u4f7f\u7528\u4f60\u7684 Linux \u53d1\u884c\u7248\u7684\u5305\u7ba1\u7406\u5668\u6765\u5b89\u88c5\u3002\u5982\u679c\u4f60\u60f3\u4ece\u6e90\u4ee3\u7801\u7f16\u8bd1\u5b89\u88c5\uff0c\u90a3\u4e48\u4e5f\u53ef\u4ee5\u4ece GitHub<\/a>[4]<\/span> \u4e0a\u4e0b\u8f7d\u6e90\u4ee3\u7801\u3002<\/p>\n \u5982\u679c\u8981\u8fdb\u884c\u622a\u5c4f\uff0c\u9996\u5148\u6253\u5f00\u4e00\u4e2a\u7ec8\u7aef\u7a97\u53e3\uff0c\u7136\u540e\u8f93\u5165 scrot [filename]<\/span> \uff0c[filename]<\/span> \u662f\u4f60\u60f3\u8981\u4fdd\u5b58\u7684\u56fe\u7247\u6587\u4ef6\u7684\u540d\u5b57\uff08\u6bd4\u5982 desktop.png<\/span>\uff09\u3002\u5982\u679c\u7f3a\u7701\u4e86\u8be5\u53c2\u6570\uff0c\u90a3\u4e48 scrot \u4f1a\u81ea\u52a8\u521b\u5efa\u4e00\u4e2a\u540d\u5b57\uff0c\u6bd4\u5982 2017-09-24-185009_1687x938_scrot.png<\/span> \u3002\uff08\u8fd9\u4e2a\u540d\u5b57\u7f3a\u4e4f\u4e86\u5bf9\u56fe\u7247\u5185\u5bb9\u7684\u63cf\u8ff0\uff0c\u8fd9\u5c31\u662f\u4e3a\u4ec0\u4e48\u6700\u597d\u5728\u547d\u4ee4\u4e2d\u6307\u5b9a\u4e00\u4e2a\u540d\u5b57\u4f5c\u4e3a\u53c2\u6570\u3002\uff09<\/p>\n \u5982\u679c\u4e0d\u5e26\u4efb\u4f55\u53c2\u6570\u8fd0\u884c Scrot\uff0c\u90a3\u4e48\u5b83\u5c06\u4f1a\u5bf9\u6574\u4e2a\u684c\u9762\u8fdb\u884c\u622a\u5c4f\u3002\u5982\u679c\u4e0d\u60f3\u8fd9\u6837\uff0c\u90a3\u4e48\u4f60\u4e5f\u53ef\u4ee5\u5bf9\u5c4f\u5e55\u4e2d\u7684\u4e00\u4e2a\u5c0f\u533a\u57df\u8fdb\u884c\u622a\u56fe\u3002<\/p>\n \u53ef\u4ee5\u901a\u8fc7\u8f93\u5165 scrot -u [filename]<\/span> \u547d\u4ee4\u6765\u5bf9\u4e00\u4e2a\u7a97\u53e3\u8fdb\u884c\u622a\u5c4f\u3002<\/p>\n -u<\/span> \u9009\u9879\u544a\u8bc9 Scrot \u5bf9\u5f53\u524d\u7a97\u53e3\u8fdb\u884c\u622a\u5c4f\uff0c\u8fd9\u901a\u5e38\u662f\u6211\u4eec\u6b63\u5728\u5de5\u4f5c\u7684\u7ec8\u7aef\u7a97\u53e3\uff0c\u4e5f\u8bb8\u4e0d\u662f\u4f60\u60f3\u8981\u7684\u3002<\/p>\n \u5982\u679c\u8981\u5bf9\u684c\u9762\u4e0a\u7684\u53e6\u4e00\u4e2a\u7a97\u53e3\u8fdb\u884c\u622a\u5c4f\uff0c\u9700\u8981\u8f93\u5165 scrot -s [filename]<\/span> \u3002<\/p>\n -s<\/span> \u9009\u9879\u53ef\u4ee5\u8ba9\u4f60\u505a\u4e0b\u9762\u4e24\u4ef6\u4e8b\u7684\u5176\u4e2d\u4e00\u4ef6\uff1a<\/p>\n \u4f60\u4e5f\u53ef\u4ee5\u8bbe\u7f6e\u4e00\u4e2a\u65f6\u5ef6\uff0c\u8fd9\u6837\u8ba9\u4f60\u80fd\u591f\u6709\u65f6\u95f4\u6765\u9009\u62e9\u4f60\u60f3\u8981\u6355\u83b7\u7684\u7a97\u53e3\u3002\u53ef\u4ee5\u901a\u8fc7 scrot -u -d [num] [filename]<\/span> \u6765\u8bbe\u7f6e\u65f6\u5ef6\u3002<\/p>\n -d<\/span> \u9009\u9879\u544a\u8bc9 Scrot \u5728\u6355\u83b7\u7a97\u53e3\u524d\u5148\u7b49\u5f85\u4e00\u6bb5\u65f6\u95f4\uff0c[num]<\/span> \u662f\u9700\u8981\u7b49\u5f85\u7684\u79d2\u6570\u3002\u6307\u5b9a\u4e3a -d 5<\/span> \uff08\u7b49\u5f85 5 \u79d2\uff09\u5e94\u8be5\u80fd\u591f\u8ba9\u4f60\u6709\u8db3\u591f\u7684\u65f6\u95f4\u6765\u9009\u62e9\u7a97\u53e3\u3002<\/p>\n Scrot \u8fd8\u63d0\u4f9b\u4e86\u8bb8\u591a\u989d\u5916\u7684\u7279\u6027\uff08\u7edd\u5927\u591a\u6570\u6211\u4ece\u6765\u6ca1\u6709\u4f7f\u7528\u8fc7\uff09\u3002\u4e0b\u9762\u662f\u6211\u53d1\u73b0\u7684\u4e00\u4e9b\u6709\u7528\u7684\u9009\u9879\uff1a<\/p>\n \u5982\u679c\u4f60\u60f3\u4e86\u89e3 Scrot \u7684\u5176\u4ed6\u9009\u9879\uff0c\u53ef\u4ee5\u5728\u7ec8\u7aef\u4e2d\u8f93\u5165 man scrot<\/span> \u6765\u67e5\u770b\u5b83\u7684\u624b\u518c\uff0c\u6216\u8005\u5728\u7ebf\u9605\u8bfb<\/a>[5]<\/span>\u3002\u7136\u540e\u5f00\u59cb\u4f7f\u7528 Scrot \u8fdb\u884c\u622a\u5c4f\u3002<\/p>\n \u867d\u7136 Scrot \u5f88\u7b80\u5355\uff0c\u4f46\u5b83\u7684\u786e\u80fd\u591f\u5de5\u4f5c\u5f97\u5f88\u597d\u3002<\/p>\n via: https:\/\/opensource.com\/article\/17\/11\/taking-screen-captures-linux-command-line-scrot<\/a><\/p>\n \u4f5c\u8005\uff1aScott Nesbitt<\/a>[6]<\/span>\u00a0\u8bd1\u8005\uff1aucasFL<\/a>[7]<\/span>\u00a0\u6821\u5bf9\uff1awxy<\/a>[8]<\/span><\/p>\n \u672c\u6587\u7531 LCTT<\/a>[9]<\/span> \u539f\u521b\u7f16\u8bd1\uff0cLinux\u4e2d\u56fd<\/a>[10]<\/span> \u8363\u8a89\u63a8\u51fa<\/p>\n \u539f\u6587\u6765\u81ea\uff1ahttps:\/\/linux.cn\/article-9997-1.html<\/a><\/p>\n\n
\n
\n\n