linux命令
来源:互联网 发布:网络 编辑:程序博客网 时间:2024/06/05 02:46
常用命令:
df -hdu -hdu -h --max-depth=1 /tail -500f xxx.logcrontab -lcrontab -e
shell
释放cache
to free pagecache, use echo 1 > /proc/sys/vm/drop_caches; to free dentries and inodes, use echo 2 > /proc/sys/vm/drop_caches; to free pagecache, dentries and inodes, use echo 3 >/proc/sys/vm/drop_caches
常用第三种
创建快捷方式
ln s /root/xxx tmp (必须用绝对路径)
更改主机名
vim /etc/hostsvim /etc/sysconfig/network
免密码登录
(值得注意的是,不在root目录下配,要给authorized_keys赋予权限 chmod 600 authorized_keys )必须是600
ssh-keygen -t rsa -P ''
目录~/.ssh目录生成两文件
id_rsa id_rsa.pub
cat id_rsa.pub >> authorized_keys
分别cat所有机器的 id_rsa.pub 到一台机器的authorized_keys,然后把authorized_keys分发到所有机器的/root/.ssh目录下
添加用户
groupadd testadduser -g test testecho "test" | passwd --stdin test
授权文件及文件夹给其他用户
chown -R user1 /spark/Java
0 0
- linux命令-- ps命令
- 【linux命令】cd命令
- linux命令:crontab命令
- Linux 命令 --- df命令
- linux命令-touch命令
- 【linux命令】tr命令
- LINUX命令:more命令
- cmd命令,linux命令
- Linux命令-tar命令
- linux命令:wc命令
- linux命令:more命令
- linux命令:gzip命令
- linux命令:du 命令
- linux命令:wc命令
- Linux命令: PS命令
- Linux命令:wc命令
- Linux命令:lsof命令
- Linux命令:rm 命令
- 《软件工程》感受
- mongodb存储引擎
- FatFS文件系统 (每条指令讲的都很细)
- 点缀-----未读信息小圆点的简洁实现
- 在Linux/Unix系统下用iconv命令处理文本文件中文乱码问题
- linux命令
- JAVA中synchronized和lock详解 (r)
- 获取软键盘高度和生成9-patch
- Codeforces Round #333 (Div. 2) E. Kleofáš and the n-thlon (概率dp)
- ios 使用Quartz 2D画虚线 - little_star
- CCF:201604-1 折点计数(C++)
- 查看jdk源码
- android对内存的管理
- JAVA多线程程序设计23个要点 (r)