{"id":107691,"date":"2023-02-17T08:58:05","date_gmt":"2023-02-16T23:58:05","guid":{"rendered":"https:\/\/softantenna.com\/blog\/?p=107691"},"modified":"2023-02-17T08:58:05","modified_gmt":"2023-02-16T23:58:05","slug":"shell-gpt","status":"publish","type":"post","link":"https:\/\/softantenna.com\/blog\/shell-gpt\/","title":{"rendered":"Shell GPT - ChatGPT\u3092\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u304b\u3089\u547c\u3073\u51fa\u3059\u3053\u3068\u304c\u3067\u304d\u308b\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3"},"content":{"rendered":"<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2023\/02\/s_20230216_144328.jpg\" alt=\"S 20230216 144328\" title=\"s_20230216_144328.jpg\" border=\"0\" width=\"860\" height=\"560\" \/><\/p>\n<p>\u4eca\u4e16\u754c\u4e2d\u3067\u5927\u6ce8\u76ee\u306eAI\u30c1\u30e3\u30c3\u30c8\u30dc\u30c3\u30c8\u300c<a href=\"https:\/\/chat.openai.com\/\">ChatGPT<\/a>\u300d\u3002\u5358\u306bWeb\u30d6\u30e9\u30a6\u30b6\u304b\u3089\u4f7f\u7528\u3059\u308b\u3060\u3051\u3067\u306a\u304f\u3001\u3055\u307e\u3056\u307e\u306a\u30a2\u30d7\u30ea\u306b\u7d44\u307f\u8fbc\u3093\u3067\u6d3b\u7528\u3059\u308b\u305f\u3081\u306e\u8a66\u307f\u3082\u884c\u308f\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u672c\u65e5\u7d39\u4ecb\u3059\u308b\u300c<a href=\"https:\/\/github.com\/TheR1D\/shell_gpt\">Shell GPT<\/a>\u300d\u3082\u305d\u306e\u3088\u3046\u306a\u8a66\u307f\u306e\u3072\u3068\u3064\u3067\u3059\u3002Python\u88fd\u306e\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3067\u3001\u30bf\u30fc\u30df\u30ca\u30eb\u304b\u3089\u7d20\u65e9\u304fChatGPT\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>ChatGPT\u3092\u4f7f\u7528\u3059\u308b\u305f\u3081\u306b\u30d6\u30e9\u30a6\u30b6\u3092\u7acb\u3061\u4e0a\u3052\u308b\u5fc5\u8981\u304c\u306a\u3044\u305f\u3081\u3001\u666e\u6bb5\u304b\u3089\u30bf\u30fc\u30df\u30ca\u30eb\u3092\u4f7f\u3063\u3066\u4f5c\u696d\u3057\u3066\u3044\u308b\u65b9\u306f\u3001\u3088\u308a\u52b9\u7387\u7684\u306bAI\u306e\u30d1\u30ef\u30fc\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u4ee5\u4e0b\u4f7f\u7528\u65b9\u6cd5\u3092\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<h2>Shell GPT\u306e\u4f7f\u7528\u65b9\u6cd5<\/h2>\n<p>Shell GPT\u306fPython\u88fd\u306e\u30c4\u30fc\u30eb\u3067\u3059\u3002pip\u30b3\u30de\u30f3\u30c9\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u4e8b\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre>\r\npip install shell-gpt --user\r\n<\/pre>\n<p>\u4f7f\u7528\u3059\u308b\u305f\u3081\u306b\u306fChatGPT\u306eAPI\u30ad\u30fc\u304c\u5fc5\u8981\u3067\u3059\u3002API\u30ad\u30fc\u306e\u53d6\u5f97\u65b9\u6cd5\u306f\u4ee5\u4e0b\u306e\u8a18\u4e8b\u3067\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/softantenna.com\/blog\/chatgpt-api-key\/\">https:\/\/softantenna.com\/blog\/chatgpt-api-key\/<\/a><\/p>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u6210\u529f\u3059\u308b\u3068<code>sgpt<\/code>\u30b3\u30de\u30f3\u30c9\u304c\u5b9f\u884c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><code>sgpt \"\u8cea\u554f\"<\/code>\u3068\u5b9f\u884c\u3059\u308c\u3070\u56de\u7b54\u304c\u8fd4\u3063\u3066\u304d\u307e\u3059\u3002\u4f8b\u3048\u3070nginx\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u5834\u6240\u3092\u77e5\u308a\u305f\u3044\u5834\u5408\u3001\u30bf\u30fc\u30df\u30ca\u30eb\u3067\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre>\r\nsgpt \"nginx default config file location\"\r\n<\/pre>\n<p>\u305f\u3060\u3057\u3001\u521d\u56de\u306fAPI\u30ad\u30fc\u306e\u5165\u529b\u304c\u6c42\u3081\u3089\u308c\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2023\/02\/s_20230216_144225.jpg\" alt=\"S 20230216 144225\" title=\"s_20230216_144225.jpg\" border=\"0\" width=\"860\" height=\"560\" \/><\/p>\n<p>\u25b2\u300cPease enter your API secret key: \u300d\u3068\u8868\u793a\u3055\u308c\u305f\u3089\u3001\u5148\u307b\u3069\u53d6\u5f97\u3057\u305fChatGPT\u306eAPI\u30ad\u30fc\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3053\u308c\u3067\u5b9f\u884c\u53ef\u80fd\u3068\u306a\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n<p>\u518d\u5ea6\u30b3\u30de\u30f3\u30c9\u5b9f\u884c\u3057\u3066\u307f\u308b\u3068\u3001\u4eca\u5ea6\u306f\u56de\u7b54\u304c\u8868\u793a\u3055\u308c<code>\/etc\/nginx<\/code>\u3068<code>\/usr\/local\/etc\/nginx<\/code>\u306b\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u304c\u5b58\u5728\u3059\u308b\u4e8b\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/p>\n<pre>\r\n$ sgpt \"nginx default config file location\"\r\nThe default location for nginx config files is \/etc\/nginx\/ or \/usr\/local\/etc\/nginx\/.\r\n<\/pre>\n<p>\u6b8b\u5ff5\u306a\u304c\u3089\u3001\u65e5\u672c\u8a9e\u306b\u306f\u5bfe\u5fdc\u3057\u3066\u3044\u306a\u3044\u3088\u3046\u3067\u3059\u3002\u8cea\u554f\u3059\u308b\u3068\u7d50\u679c\u304c\u8aad\u3081\u306a\u3044\u6587\u5b57\u5217\u3068\u3057\u3066\u8868\u793a\u3055\u308c\u307e\u3057\u305f(\u30a8\u30b9\u30b1\u30fc\u30d7\u3055\u308c\u305f\u30e6\u30cb\u30b3\u30fc\u30c9\u6587\u5b57\u5217\u3089\u3057\u304f\u3001\u30c7\u30b3\u30fc\u30c9\u3059\u308c\u3070\u4e00\u5fdc\u5185\u5bb9\u3092\u89e3\u8aad\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u308b\u3088\u3046\u3067\u3059)\u3002<\/p>\n<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2023\/02\/s_20230216_150323.jpg\" alt=\"S 20230216 150323\" title=\"s_20230216_150323.jpg\" border=\"0\" width=\"860\" height=\"560\" \/><\/p>\n<h2>\u3055\u3089\u306b\u4fbf\u5229\u306a\u30b3\u30de\u30f3\u30c9\u3082<\/h2>\n<p>Shell GPT\u3092\u3055\u3089\u306b\u52b9\u7387\u7684\u306b\u4f7f\u7528\u3059\u308b\u306b\u306f\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u7d44\u307f\u5408\u308f\u305b\u307e\u3059\u3002<\/p>\n<p><code>--shell<\/code>\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u6307\u5b9a\u3059\u308b\u3068\u3001\u30b7\u30a7\u30eb\u30b3\u30de\u30f3\u30c9\u306e\u307f\u3092\u51fa\u529b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre>\r\n$ sgpt --shell  \"make all files in current directory read only\"\r\nchmod 444 .\/*\r\n<\/pre>\n<p><code>--execute<\/code>\u30b3\u30de\u30f3\u30c9\u3068\u7d44\u307f\u5408\u308f\u305b\u308b\u3053\u3068\u3067\u76f4\u63a5\u5b9f\u884c\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002\u3053\u306e2\u3064\u306e\u30b3\u30de\u30f3\u30c9\u3092\u7d44\u307f\u5408\u308f\u305b\u3001ChatGPT\u306e\u51fa\u529b\u3092\u76f4\u63a5\u30b7\u30a7\u30eb\u3067\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u306e\u3067\u3059(\u8cea\u554f\u306b\u3088\u3063\u3066\u306f\u5371\u967a\u306a\u30b3\u30de\u30f3\u30c9\u304c\u5b9f\u884c\u3055\u308c\u3066\u3057\u307e\u3046\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u3054\u6ce8\u610f\u3092)\u3002<\/p>\n<pre>\r\n$ sgpt --shell  --execute \"make all files in current directory read only\"\r\nchmod a-w *\r\nExecute shell command? [y\/N]:\r\n<\/pre>\n<p>\u307e\u305f<code>--code<\/code>\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u30b3\u30fc\u30c9\u306e\u307f\u3092\u51fa\u529b\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u305d\u306e\u4ed6\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u8a73\u7d30\u306f<a href=\"https:\/\/github.com\/TheR1D\/shell_gpt\">\u516c\u5f0f\u30b5\u30a4\u30c8<\/a>\u3067\u78ba\u8a8d\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>Shell GPT\u3092\u5229\u7528\u3059\u308c\u3070\u3001\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u304b\u3089ChatGPT\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u8a18\u4e8b\u57f7\u7b46\u6642\u3001\u65e5\u672c\u8a9e\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u306a\u3044\u306e\u304c\u6b8b\u5ff5\u3067\u3059\u304c\u3001\u4eca\u5f8c\u306e\u6539\u826f\u306b\u671f\u5f85\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u4e16\u754c\u4e2d\u3067\u5927\u6ce8\u76ee\u306eAI\u30c1\u30e3\u30c3\u30c8\u30dc\u30c3\u30c8\u300cChatGPT\u300d\u3002\u5358\u306bWeb\u30d6\u30e9\u30a6\u30b6\u304b\u3089\u4f7f\u7528\u3059\u308b\u3060\u3051\u3067\u306a\u304f\u3001\u3055\u307e\u3056\u307e\u306a\u30a2\u30d7\u30ea\u306b\u7d44\u307f\u8fbc\u3093\u3067\u6d3b\u7528\u3059\u308b\u305f\u3081\u306e\u8a66\u307f\u3082\u884c\u308f\u308c\u3066\u3044\u307e\u3059\u3002 \u672c\u65e5\u7d39\u4ecb\u3059\u308b\u300cShell GPT\u300d\u3082\u305d\u306e\u3088\u3046\u306a\u8a66\u307f\u306e\u3072\u3068 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":107700,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[3459],"tags":[580,4590],"class_list":["post-107691","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-review","tag-ai","tag-chatgpt"],"_links":{"self":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/107691","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/comments?post=107691"}],"version-history":[{"count":0,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/107691\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media\/107700"}],"wp:attachment":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media?parent=107691"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/categories?post=107691"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/tags?post=107691"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}