{"id":61694,"date":"2025-04-29T09:55:40","date_gmt":"2025-04-29T01:55:40","guid":{"rendered":"https:\/\/fwq.ai\/blog\/61694\/"},"modified":"2025-04-29T09:55:40","modified_gmt":"2025-04-29T01:55:40","slug":"linux-ctags%e7%9b%ae%e5%bd%95%e5%9c%a8%e5%93%aa%e9%87%8c-2","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/61694\/","title":{"rendered":"linux ctags\u76ee\u5f55\u5728\u54ea\u91cc"},"content":{"rendered":"<blockquote><p>\n  linux ctags\u76ee\u5f55\u53ef\u80fd\u5728\uff1a1\u3001\u201c\/usr\/bin\/ctags\u201d\uff0cctags\u53ef\u6267\u884c\u6587\u4ef6\u7684\u8def\u5f84\uff1b2\u3001\u201c\/usr\/share\/ctags\/\u201d\uff0cctags\u76f8\u5173\u7684\u5171\u4eab\u6587\u4ef6\u3001\u914d\u7f6e\u6587\u4ef6\u7b49\u5b58\u653e\u7684\u76ee\u5f55\uff1b3\u3001\u201c\/usr\/local\/bin\/ctags\u201d\u6216\u201c\/usr\/local\/share\/ctags\/\u201d\uff0c\u4f7f\u7528\u81ea\u5b9a\u4e49\u5b89\u88c5\u65b9\u6cd5\u65f6\u3002\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202307\/07\/2023070714095965205.jpg\" class=\"aligncenter\" title=\"linux ctags\u76ee\u5f55\u5728\u54ea\u91cc\u63d2\u56fe\" alt=\"linux ctags\u76ee\u5f55\u5728\u54ea\u91cc\u63d2\u56fe\" \/><\/p>\n<p>\u672c\u6559\u7a0b\u64cd\u4f5c\u7cfb\u7edf\uff1aLinux5.18.14\u7cfb\u7edf\u3001Dell G3\u7535\u8111\u3002<\/p>\n<p>\u5728 Linux \u7cfb\u7edf\u4e2d\uff0cctags&nbsp;\u7684\u76ee\u5f55\u4f4d\u7f6e\u53d6\u51b3\u4e8e\u4f60\u5982\u4f55\u5b89\u88c5\u548c\u914d\u7f6e&nbsp;ctags\u3002<\/p>\n<p>\u901a\u5e38\uff0c\u5728 Linux \u4e2d\uff0cctags&nbsp;\u662f\u4f5c\u4e3a\u8f6f\u4ef6\u5305\u7684\u4e00\u90e8\u5206\u8fdb\u884c\u5b89\u88c5\u7684\uff0c\u800c\u5b89\u88c5\u540e\u7684\u4e8c\u8fdb\u5236\u6587\u4ef6\u548c\u76f8\u5173\u6587\u4ef6\u4f1a\u88ab\u653e\u7f6e\u5728\u7cfb\u7edf\u7684\u6807\u51c6\u8def\u5f84\u4e2d\u3002\u4ee5\u4e0b\u662f\u51e0\u4e2a\u53ef\u80fd\u7684\u4f4d\u7f6e\uff1a<\/p>\n<ol>\n<li>\n<p>\/usr\/bin\/ctags\uff1actags&nbsp;\u53ef\u6267\u884c\u6587\u4ef6\u7684\u8def\u5f84\u3002<\/p>\n<\/li>\n<li>\n<p>\/usr\/share\/ctags\/\uff1actags&nbsp;\u76f8\u5173\u7684\u5171\u4eab\u6587\u4ef6\u3001\u914d\u7f6e\u6587\u4ef6\u7b49\u5b58\u653e\u7684\u76ee\u5f55\u3002<\/p>\n<\/li>\n<li>\n<p>\/usr\/local\/bin\/ctags&nbsp;\u6216&nbsp;\/usr\/local\/share\/ctags\/\uff1a\u5982\u679c\u4f60\u4f7f\u7528\u81ea\u5b9a\u4e49\u5b89\u88c5\u65b9\u6cd5\uff08\u5982\u4ece\u6e90\u4ee3\u7801\u7f16\u8bd1\uff09\uff0c\u5219\u53ef\u80fd\u4f1a\u5c06&nbsp;ctags&nbsp;\u5b89\u88c5\u5230&nbsp;\/usr\/local&nbsp;\u76ee\u5f55\u4e0b\u3002<\/p>\n<\/li>\n<\/ol>\n<p>\u8bf7\u6ce8\u610f\uff0c\u8fd9\u53ea\u662f\u5e38\u89c1\u60c5\u51b5\u4e0b\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff0c\u5b9e\u9645\u4f4d\u7f6e\u53ef\u80fd\u56e0\u53d1\u884c\u7248\u3001\u5b89\u88c5\u9009\u9879\u6216\u5176\u4ed6\u56e0\u7d20\u800c\u6709\u6240\u4e0d\u540c\u3002<\/p>\n<p>\u5982\u679c\u4f60\u5df2\u7ecf\u5b89\u88c5\u4e86&nbsp;ctags\uff0c\u4f46\u65e0\u6cd5\u786e\u5b9a\u5176\u51c6\u786e\u4f4d\u7f6e\uff0c\u53ef\u4ee5\u5c1d\u8bd5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6765\u67e5\u627e\uff1a<\/p>\n<pre>which&nbsp;ctags<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u8be5\u547d\u4ee4\u5c06\u663e\u793a&nbsp;ctags&nbsp;\u7684\u53ef\u6267\u884c\u6587\u4ef6\u8def\u5f84\u3002<\/p>\n<p>\u53e6\u5916\uff0c\u8fd8\u53ef\u4ee5\u4f7f\u7528&nbsp;find&nbsp;\u547d\u4ee4\u8fdb\u884c\u641c\u7d22\uff1a<\/p>\n<pre>sudo&nbsp;find&nbsp;\/&nbsp;-name&nbsp;ctags<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u8fd9\u5c06\u5728\u6574\u4e2a\u6587\u4ef6\u7cfb\u7edf\u4e2d\u641c\u7d22\u540d\u4e3a&nbsp;ctags&nbsp;\u7684\u6587\u4ef6\uff0c\u5e76\u663e\u793a\u5176\u8def\u5f84\u3002<\/p>\n<p>\u5982\u679c\u4ee5\u4e0a\u65b9\u6cd5\u4ecd\u65e0\u6cd5\u627e\u5230&nbsp;ctags&nbsp;\u7684\u4f4d\u7f6e\uff0c\u5efa\u8bae\u53c2\u8003\u4f60\u6240\u4f7f\u7528\u7684 Linux \u53d1\u884c\u7248\u7684\u6587\u6863\u6216\u793e\u533a\u652f\u6301\uff0c\u4ee5\u83b7\u53d6\u66f4\u5177\u4f53\u7684\u4fe1\u606f\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f ctags\u76ee\u5f55\u5728\u54ea\u91cc\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8FDCServers\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>linux ctags\u76ee\u5f55\u53ef\u80fd\u5728\uff1a1\u3001\u201c\/usr\/bin\/ctags\u201d\uff0cctags\u53ef\u6267\u884c\u6587\u4ef6\u7684\u8def\u5f84\uff1b2\u3001\u201c\/usr\/share\/ctags\/\u201d\uff0cctags\u76f8\u5173\u7684\u5171\u4eab\u6587\u4ef6\u3001\u914d\u7f6e\u6587\u4ef6\u7b49\u5b58\u653e\u7684\u76ee\u5f55\uff1b3\u3001\u201c\/usr\/local\/bin\/ctags\u201d\u6216\u201c\/usr\/local\/share\/ctags\/\u201d\uff0c\u4f7f\u7528\u81ea\u5b9a\u4e49\u5b89\u88c5\u65b9\u6cd5\u65f6\u3002 \u672c\u6559\u7a0b\u64cd\u4f5c\u7cfb\u7edf\uff1aLinux5.18.14\u7cfb\u7edf\u3001Dell G3\u7535\u8111\u3002 \u5728 Linux \u7cfb\u7edf\u4e2d\uff0cctags&nbsp;\u7684\u76ee\u5f55\u4f4d\u7f6e\u53d6\u51b3\u4e8e\u4f60\u5982\u4f55\u5b89\u88c5\u548c\u914d\u7f6e&nbsp;ctags\u3002 \u901a\u5e38\uff0c\u5728 Linux \u4e2d\uff0cctags&nbsp;\u662f\u4f5c\u4e3a\u8f6f\u4ef6\u5305\u7684\u4e00\u90e8\u5206\u8fdb\u884c\u5b89\u88c5\u7684\uff0c\u800c\u5b89\u88c5\u540e\u7684\u4e8c\u8fdb\u5236\u6587\u4ef6\u548c\u76f8\u5173\u6587\u4ef6\u4f1a\u88ab\u653e\u7f6e\u5728\u7cfb\u7edf\u7684\u6807\u51c6\u8def\u5f84\u4e2d\u3002\u4ee5\u4e0b\u662f\u51e0\u4e2a\u53ef\u80fd\u7684\u4f4d\u7f6e\uff1a \/usr\/bin\/ctags\uff1actags&nbsp;\u53ef\u6267\u884c\u6587\u4ef6\u7684\u8def\u5f84\u3002 \/usr\/share\/ctags\/\uff1actags&nbsp;\u76f8\u5173\u7684\u5171\u4eab\u6587\u4ef6\u3001\u914d\u7f6e\u6587\u4ef6\u7b49\u5b58\u653e\u7684\u76ee\u5f55\u3002 \/usr\/local\/bin\/ctags&nbsp;\u6216&nbsp;\/usr\/local\/share\/ctags\/\uff1a\u5982\u679c\u4f60\u4f7f\u7528\u81ea\u5b9a\u4e49\u5b89\u88c5\u65b9\u6cd5\uff08\u5982\u4ece\u6e90\u4ee3\u7801\u7f16\u8bd1\uff09\uff0c\u5219\u53ef\u80fd\u4f1a\u5c06&nbsp;ctags&nbsp;\u5b89\u88c5\u5230&nbsp;\/usr\/local&nbsp;\u76ee\u5f55\u4e0b\u3002 \u8bf7\u6ce8\u610f\uff0c\u8fd9\u53ea\u662f\u5e38\u89c1\u60c5\u51b5\u4e0b\u7684\u9ed8\u8ba4\u4f4d\u7f6e\uff0c\u5b9e\u9645\u4f4d\u7f6e\u53ef\u80fd\u56e0\u53d1\u884c\u7248\u3001\u5b89\u88c5\u9009\u9879\u6216\u5176\u4ed6\u56e0\u7d20\u800c\u6709\u6240\u4e0d\u540c\u3002 \u5982\u679c\u4f60\u5df2\u7ecf\u5b89\u88c5\u4e86&nbsp;ctags\uff0c\u4f46\u65e0\u6cd5\u786e\u5b9a\u5176\u51c6\u786e\u4f4d\u7f6e\uff0c\u53ef\u4ee5\u5c1d\u8bd5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6765\u67e5\u627e\uff1a which&nbsp;ctags \u767b\u5f55\u540e\u590d\u5236 \u8be5\u547d\u4ee4\u5c06\u663e\u793a&nbsp;ctags&nbsp;\u7684\u53ef\u6267\u884c\u6587\u4ef6\u8def\u5f84\u3002 \u53e6\u5916\uff0c\u8fd8\u53ef\u4ee5\u4f7f\u7528&nbsp;find&nbsp;\u547d\u4ee4\u8fdb\u884c\u641c\u7d22\uff1a sudo&nbsp;find&nbsp;\/&nbsp;-name&nbsp;ctags \u767b\u5f55\u540e\u590d\u5236 \u8fd9\u5c06\u5728\u6574\u4e2a\u6587\u4ef6\u7cfb\u7edf\u4e2d\u641c\u7d22\u540d\u4e3a&nbsp;ctags&nbsp;\u7684\u6587\u4ef6\uff0c\u5e76\u663e\u793a\u5176\u8def\u5f84\u3002 \u5982\u679c\u4ee5\u4e0a\u65b9\u6cd5\u4ecd\u65e0\u6cd5\u627e\u5230&nbsp;ctags&nbsp;\u7684\u4f4d\u7f6e\uff0c\u5efa\u8bae\u53c2\u8003\u4f60\u6240\u4f7f\u7528\u7684 Linux \u53d1\u884c\u7248\u7684\u6587\u6863\u6216\u793e\u533a\u652f\u6301\uff0c\u4ee5\u83b7\u53d6\u66f4\u5177\u4f53\u7684\u4fe1\u606f\u3002 \u4ee5\u4e0a\u5c31\u662f ctags\u76ee\u5f55\u5728\u54ea\u91cc\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8FDCServers\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-61694","post","type-post","status-publish","format-standard","hentry","category-os"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/61694","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=61694"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/61694\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=61694"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=61694"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=61694"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}