Linux常用指令梳理

目录下查找字符串:

find .|xargs grep -ri "   "

-r 递归 -i 不区分大小写


终端下使用sudo 加 指令出现error  :  sudo: fastboot: command not found

把对应的命令文件(如fastboot )拷贝到 /user/bin/目录下,并修改其权限


正则表达式:

删除文件所有行第一个字符:

:% s/^.\{1\}//g


通过IP地址登陆同一局域网的其他电脑:

ssh name(用户名)@xxx.xxx.x.xx(IP地址)

拷贝其他设备文件到本地:

scp [email protected]:/文件路径 ./

拷贝本地文件到远端设备:

scp 文件 [email protected]:/路径


猜你喜欢

转载自blog.csdn.net/wing12345678910/article/details/79480752