Linux 基础
来源:互联网 发布:500px知乎什么意思 编辑:程序博客网 时间:2024/06/16 17:12
入门教程(鸟哥):http://cn.linux.vbird.org/linux_basic/linux_basic.php
路径切换:
cd - 当上一条cd命令正确时,返回上一个非cd操作路径
修改文件读写权限:
先看文件夹下文件状态:ll
修改文件权限:chomd 777 +[filename]
ps:
r=4,w=2,x=1
若要rwx属性则4+2+1=7;
若要rw-属性则4+2=6;
若要r-x属性则4+1=5。
查找指定进程:
ps -ef|grep [keywords]
查找占用文件的进程:
lsof | grep [filename]
ps: 强制杀进程:kill -9 [pid]
ssh免密登录/拷贝
~/.ssh/id_rsa.pub 访问机的密钥
~/.ssh/authorized_keys 被访问机录入访问机密钥
增加免密访问帐号
ssh-copy-id [-i [identity_file]] [user@]machine
or
scp ~/.ssh/id_rsa.pub [user@]10.10.10.10:~
The authenticity of host ‘10.10.10.10 (10.10.10.10)’ can’t be established.
RSA key fingerprint is fc:97:3d:2b:06:06:84:af:fb:c3:61:89:e6:99:fa:51.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added ‘10.10.10.10’ (RSA) to the list of known hosts.
Password:
id_rsa.pub
===# cat ~/id_rsa.pub >> ~/.ssh/authorized_keys
生成tags文件:
在当前目录下运行:Ctags -R .
- linux基础
- Linux基础
- Linux基础
- Linux 基础
- linux基础
- Linux 基础
- Linux基础
- Linux 基础
- linux基础
- Linux基础
- Linux 基础
- Linux 基础
- Linux基础
- linux基础
- Linux 基础
- linux基础
- linux基础
- linux基础
- elasticsearch6.x {"error":"Content-Type header [application/x-www-form-urlencoded] is not supported"
- vue之图片上传解决图片压缩和ios拍摄的角度旋转的问题
- linux字符设备完全分析(二)
- Python mutilprocessing Processing 父子进程共享文件对象?
- Golang实现简单的文件上传
- Linux 基础
- Centos下PHP5升级PHP7
- 21号
- 11. java.util.Iterator
- shiro实例 缓存之Realm篇
- 机房收费系统——上机状态查询之下机
- AHB总线和axi总线的联系和区别
- SDR# (SDRSharp)代码讲解
- 插入数据时,保存的date类型时间字段的数据只有年月日,没有时分秒的问题