text: (window.webpackJsonp=window.webpackJsonp||[]).push([[93],{509:function(t,s,i){"use strict";i.r(s);var r=i(15),a=Object(r.a)({},(function(){var t=this,s=t.$createElement,i=t._self._c||s;return i("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[i("h1",{attrs:{id:"常用linux操作"}},[i("a",{staticClass:"header-anchor",attrs:{href:"#常用linux操作"}},[t._v("#")]),t._v(" 常用Linux操作")]),t._v(" "),i("blockquote",[i("p",[t._v("这里我使用的是"),i("strong",[t._v("Git")]),t._v("进行的Linux操作，如果你有"),i("strong",[t._v("服务器")]),t._v("、或者"),i("strong",[t._v("LInux系统")]),t._v("可以直接尝试")])]),t._v(" "),i("p",[t._v("首先保证自己电脑上成功安装好了Git，右键鼠标:")]),t._v(" "),i("img",{staticStyle:{zoom:"80%"},attrs:{src:"https://gitee.com/MoYu-zc/picgo/raw/master/img/20210331092959.png",alt:"1"}}),t._v(" "),i("p",[t._v("随便找一个文件夹(我这里使用的是桌面的"),i("strong",[t._v("GitTest")]),t._v("文件夹)，右键点击"),i("strong",[t._v("Git Bash")]),t._v(" （启动的是Linux输入框）")]),t._v(" "),i("img",{staticStyle:{zoom:"90%"},attrs:{src:"https://gitee.com/MoYu-zc/picgo/raw/master/img/20210331093118.png",alt:"2"}}),t._v(" "),i("ul",[i("li",[t._v("cd：改变目录")])]),t._v(" "),i("p",[t._v("在GitTest文件夹中有一个 1 文件夹：")]),t._v(" "),i("p",[i("img",{attrs:{src:"https://gitee.com/MoYu-zc/picgo/raw/master/img/20210331093641.png",alt:"3"}})]),t._v(" "),i("ul",[i("li",[t._v("cd..回退到上一个目录，直接cd进入默认目录")])]),t._v(" "),i("p",[i("img",{attrs:{src:"https://gitee.com/MoYu-zc/picgo/raw/master/img/20210331093700.png",alt:"4"}})]),t._v(" "),i("ul",[i("li",[t._v("pwd：显示当前所在的目录路径。")])]),t._v(" "),i("p",[i("img",{attrs:{src:"https://gitee.com/MoYu-zc/picgo/raw/master/img/20210331093720.png",alt:"5"}})]),t._v(" "),i("ul",[i("li",[i("p",[t._v("clear：清屏")]),t._v(" "),i("p",[i("strong",[t._v("这个输入之后全部消失了")])])]),t._v(" "),i("li",[i("p",[t._v("ls(||)：都是列出当前目录中的所有文件，只不过||（两个||）列出的内容更为详细")])])]),t._v(" "),i("p",[i("strong",[t._v("GitTest文件夹")]),t._v("中有一个"),i("strong",[t._v("1文件夹")]),t._v("和一个"),i("strong",[t._v("常用Linux操作.md")])]),t._v(" "),i("p",[i("img",{attrs:{src:"https://gitee.com/MoYu-zc/picgo/raw/master/img/20210331094056.png",alt:"6"}})]),t._v(" "),i("ul",[i("li",[t._v("touch：新建一个文件")])]),t._v(" "),i("img",{staticStyle:{zoom:"67%"},attrs:{src:"https://gitee.com/MoYu-zc/picgo/raw/master/img/20210331094311.png",alt:"7"}}),t._v(" "),i("ul",[i("li",[t._v("rm：移除一个文件")])]),t._v(" "),i("img",{staticStyle:{zoom:"67%"},attrs:{src:"https://gitee.com/MoYu-zc/picgo/raw/master/img/20210331094436.png",alt:"8"}}),t._v(" "),i("ul",[i("li",[t._v("mkdir：创建一个文件夹")])]),t._v(" "),i("img",{staticStyle:{zoom:"80%"},attrs:{src:"https://gitee.com/MoYu-zc/picgo/raw/master/img/20210331095148.png",alt:"9"}}),t._v(" "),i("ul",[i("li",[t._v("rm-r：删除一个文件夹")])]),t._v(" "),i("div",{staticClass:"language-sh line-numbers-mode"},[i("pre",{pre:!0,attrs:{class:"language-sh"}},[i("code",[i("span",{pre:!0,attrs:{class:"token function"}},[t._v("rm")]),t._v(" -rf /    递归清除根目录，切勿在Linux中尝试\n")])]),t._v(" "),i("div",{staticClass:"line-numbers-wrapper"},[i("span",{staticClass:"line-number"},[t._v("1")]),i("br")])]),i("p",[i("img",{attrs:{src:"https://gitee.com/MoYu-zc/picgo/raw/master/img/20210331095542.png",alt:"10"}})]),t._v(" "),i("ul",[i("li",[t._v("mv：移动文件")])]),t._v(" "),i("p",[t._v("创建一个test.html和一个test文件夹")]),t._v(" "),i("p",[i("img",{attrs:{src:"https://gitee.com/MoYu-zc/picgo/raw/master/img/20210331130921.png",alt:"11"}})]),t._v(" "),i("p",[i("strong",[t._v("之后使用命令")])]),t._v(" "),i("p",[i("img",{attrs:{src:"https://gitee.com/MoYu-zc/picgo/raw/master/img/20210331130936.png",alt:"12"}})]),t._v(" "),i("ul",[i("li",[i("p",[t._v("reset：重新初始化终端/清屏")]),t._v(" "),i("p",[i("strong",[t._v("可以理解为重启Git")])])]),t._v(" "),i("li",[i("p",[t._v("history：查看命令历史")]),t._v(" "),i("p",[i("strong",[t._v("会出现你曾经使用过了全部语句")])])])]),t._v(" "),i("p",[i("img",{attrs:{src:"https://gitee.com/MoYu-zc/picgo/raw/master/img/20210331131114.png",alt:"13"}})]),t._v(" "),i("ul",[i("li",[t._v("help：帮助")]),t._v(" "),i("li",[t._v("exit ：退出")])])])}),[],!1,null,null,null);s.default=a.exports}}]);