1

shell脚本相关

 1 year ago
source link: https://suyumen.github.io/2023/02/03/2023-02-03-shell%E8%84%9A%E6%9C%AC%E7%9B%B8%E5%85%B3/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

shell脚本相关

2023-02-03 shell
Word count: 224 | Reading time: 1min

临阵磨枪一下,基本语法不写了。

Linux开机流程

引导分区后涉及到/etc/inittab的配置,默认情况下runlevel是3,如果存在有执行权限的用户自定义脚本rc.local的话,会执行这个。而不满足上述的情况时,执行rc3.d的对应服务,位于init.d文件夹中。

基于crontab服务。

  • * * * * * 分别对应分时日月周

  • crontab -e编辑定时任务。

  • systemctl restart crond.service重启服务

  • crontab -l 查看当前定时任务

  • crontab -r 清楚定时任务

  • vim /var/spool/mail/root 查看定时任务历史

  • 换行问题:set fileformat=unix

Linux相关知识

Linux链接

Linux链接分硬链接和符号链接,默认情况ln命令产生硬链接。

  • 硬链接:通过索引节点来进行连接。
  • 软链接:存储位置信息。

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK