linux是服务器语言windows系统只要安装git就可以打开bash窗口linux常用命令clear清屏(command+k)cd输入ls显示目录文件ls-l目录和文件类型pwd完整目录当前目录cd~返回根目录history执行的所有命令cd..返回上一层cd../../返回上两层mkdirmakefile新建文件夹makefilels-la显示隐藏文件bogon:makefilemacbook$ls-latotal0drwxr-xr-x2macbook工作人员68101009:50。drwxr-xr-x7macbook员工238101009:50..bogon:makefilemacbook$cd.bogon:makefilemacbook$cd..touchtest.txt命令行创建文件cattest.txt查看文件内容vimtest.txt命令行编辑器escisshift+:wq退出编辑器mv目标文件目标路径bogon:makefilemacbook$mvtest.txtnewfilebogon:makefilemacbook$cdnewfilebogon:newfilemacbook$lstest.txtbogon:newfilemacbook$cattest.txtdffdffdfdfdfdsdfddfdfdfdfdfdfdfbogon:newfilemacbook$mv目标文件目标文件新名称bogon:newfilemacbook$mvtest.txttest.htmlbogon:newfilemacbook$opentest.html打开文件(文件会根据文件类型打开)cptest.txttest2.txt复制不同路径bogon:newfilemacbook$cptest.txttest2.txt沼泽地on:newfilemacbook$mkdirtestbogon:newfilemacbook$cptest2.txt./testbogon:newfilemacbook$lstesttest.txttest2.txtbogon:newfilemacbook$rmtest2.txtdeleterm-rftestrecursiveclearusewith小心找到。-name"*.txt"查找文件bogon:newfilemacbook$find.-name"*.txt"./test/test2.txt./test.txt./test2.txtbogon:newfilemacbook$进程相关ps显示进程psu所有进程kill-91303904慎用停止进程whowhoami查看权限chmod777设置权限为可读可写可删除
