php面试专题---14、Linux基础考点

php面试专题---14、Linux基础考点

一、总结

一句话总结:

php考linux其实也考不了很难

1、系统定时任务?

crontab命令和 at命令
crontab命令
crontab -e
* * * * *命令(分时日月周)

at命令
#at 2:00 tomorrow
at>/home/Jason/do_job
at>Ctrl+D

2、vi/vim 编辑器 模式?

一般模式、编辑模式和命令行模式

3、shell 基础?

脚本执行方式:赋予权限,直接执行,例:chmod +x test.sh;./test.sh
调用解释器使得脚本执行:例:bash、csh、csh、ash、bsh、ksh等等
使用source命令:例:source test.sh
编写基础:开头用#!指定脚本解释器,例如:#!/bin/sh

4、如何实现每天0点钟重新启动服务器?

1、crontab -e
2、0 0 * * * reboot

二、内容在总结中

 

转载于:https://www.cnblogs.com/Renyi-Fan/p/11062192.html

猜你喜欢

转载自blog.csdn.net/weixin_33670713/article/details/93572353