linux questions
2015-10-20 11:14
555 查看
(1)ntpdate ntp.fudan.edu.cn提示no
server suitable for synchronization found
1)防火墙问题:udp的123端口
2)上层路由器设置问题
解决方法:
yum install -y rdate
rdate time-b.nist.gov
rdate -s time-b.nist.gov
(2)实时监控文件内容
tail -f filename
(3)source file,sh、. file.sh、bash file.sh、sh file.sh和./file.sh区别
A:source file.sh和. file.sh是在当前bash中读取file.sh内容执行,file.sh无需执行权限;
B:bash file.sh和sh
file.sh是当前bash的子shell中读取file.sh内容执行,当前bash是子shell的父亲,file.sh无需执行权限;
C:./file.sh需要执行权限;
(4)
server suitable for synchronization found
1)防火墙问题:udp的123端口
2)上层路由器设置问题
解决方法:
yum install -y rdate
rdate time-b.nist.gov
rdate -s time-b.nist.gov
(2)实时监控文件内容
tail -f filename
(3)source file,sh、. file.sh、bash file.sh、sh file.sh和./file.sh区别
A:source file.sh和. file.sh是在当前bash中读取file.sh内容执行,file.sh无需执行权限;
B:bash file.sh和sh
file.sh是当前bash的子shell中读取file.sh内容执行,当前bash是子shell的父亲,file.sh无需执行权限;
C:./file.sh需要执行权限;
(4)
相关文章推荐
- JDK7下载|JDK1.7下载可选择window版和linux版
- Linux下通过mysqldump备份MySQL数据库成sql文件
- linux on power 开源技术的新选择
- Linux设备模型之kobject
- Linux之split命令详解
- centos下设置ssh连接时间
- cpio.gz包的解压方法(linux)
- linux 环境变量配置
- centOS安装scipy
- CentOS-minimal 6.5 安装mysql
- Lua在Linux下的安装
- centos 7 修改默认运行级别
- centos 安装字体
- Linux Security Module Framework
- Vmware克隆centos:device eth0 does not seem to be present,delaying initialization
- linux服务器被挂马,ps命令netstat命令被挟持替换成其他程序
- Linux 通用中断子系统
- Linux IPC实践(3) --具名FIFO
- Linux下ls命令实现
- Linux IPC实践(1) --匿名PIPE