Skip to content

Commit

Permalink
auto-push
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Dec 3, 2023
1 parent 7f65f2f commit a80fb49
Show file tree
Hide file tree
Showing 11 changed files with 38 additions and 7 deletions.
12 changes: 8 additions & 4 deletions 001_crontab/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="robots" content="noodp" />
<title>Linux 定时任务之 crontab - 小贝塔教程资源</title><meta name="Description" content="所行化坦途,所求皆如愿"><meta property="og:title" content="Linux 定时任务之 crontab" />
<meta property="og:description" content="Linux 定时任务之 crontab 1. crontab一般用法,crontab –e 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 # 重启cron服务 service cron restart #" />
<meta property="og:description" content="Linux 定时任务之 crontab 1. crontab一般用法,crontab –e crontab -e 第一次用会选择一下编辑器,vim还是nano自己看着来 1 2 3 4 5 6 7 8 9 10 11 12" />
<meta property="og:type" content="article" />
<meta property="og:url" content="https://example.com/001_crontab/" /><meta property="og:image" content="https://example.com/logo.png"/><meta property="article:section" content="posts" />
<meta property="article:published_time" content="2023-11-30T15:44:18+08:00" />
Expand All @@ -15,7 +15,7 @@
<meta name="twitter:image" content="https://example.com/logo.png"/>

<meta name="twitter:title" content="Linux 定时任务之 crontab"/>
<meta name="twitter:description" content="Linux 定时任务之 crontab 1. crontab一般用法,crontab –e 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 # 重启cron服务 service cron restart #"/>
<meta name="twitter:description" content="Linux 定时任务之 crontab 1. crontab一般用法,crontab –e crontab -e 第一次用会选择一下编辑器,vim还是nano自己看着来 1 2 3 4 5 6 7 8 9 10 11 12"/>
<meta name="application-name" content="小贝塔教程资源">
<meta name="apple-mobile-web-app-title" content="小贝塔教程资源"><meta name="theme-color" content="#ffffff"><meta name="msapplication-TileColor" content="#da532c"><link rel="canonical" href="https://example.com/001_crontab/" /><link rel="stylesheet" href="/css/style.min.css"><link rel="preload" href="https://cdn.jsdelivr.net/npm/@fortawesome/[email protected]/css/all.min.css" as="style" onload="this.onload=null;this.rel='stylesheet'">
<noscript><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/[email protected]/css/all.min.css"></noscript><link rel="preload" href="https://cdn.jsdelivr.net/npm/[email protected]/animate.min.css" as="style" onload="this.onload=null;this.rel='stylesheet'">
Expand All @@ -28,7 +28,7 @@
"mainEntityOfPage": {
"@type": "WebPage",
"@id": "https:\/\/example.com\/001_crontab\/"
},"image": ["https:\/\/example.com\/images\/Apple-Devices-Preview.png"],"genre": "posts","keywords": "Linux, crontab, 系统","wordcount": 852 ,
},"image": ["https:\/\/example.com\/images\/Apple-Devices-Preview.png"],"genre": "posts","keywords": "Linux, crontab, 系统","wordcount": 881 ,
"url": "https:\/\/example.com\/001_crontab\/","datePublished": "2023-11-30T15:44:18+08:00","dateModified": "2023-11-30T15:44:18+08:00","publisher": {
"@type": "Organization",
"name": "xxxx","logo": "https:\/\/example.com\/images\/avatar.png"},"author": {
Expand Down Expand Up @@ -102,7 +102,7 @@ <h2 class="toc-title">目录</h2>
<div class="toc-content" id="toc-content-auto"></div>
</div><article class="page single"><h1 class="single-title animate__animated animate__flipInX">Linux 定时任务之 crontab</h1><div class="post-meta">
<div class="post-meta-line"><span class="post-author"><a href="https://blog.xbta.tk" title="Author" target="_blank" rel="noopener noreffer author" class="author"><i class="fas fa-user-circle fa-fw" aria-hidden="true"></i>小贝塔</a></span>&nbsp;<span class="post-category">收录于 <a href="/categories/linux/"><i class="far fa-folder fa-fw" aria-hidden="true"></i>Linux</a></span></div>
<div class="post-meta-line"><i class="far fa-calendar-alt fa-fw" aria-hidden="true"></i>&nbsp;<time datetime="2023-11-30">2023-11-30</time>&nbsp;<i class="fas fa-pencil-alt fa-fw" aria-hidden="true"></i>&nbsp;约 852 字&nbsp;
<div class="post-meta-line"><i class="far fa-calendar-alt fa-fw" aria-hidden="true"></i>&nbsp;<time datetime="2023-11-30">2023-11-30</time>&nbsp;<i class="fas fa-pencil-alt fa-fw" aria-hidden="true"></i>&nbsp;约 881 字&nbsp;
<i class="far fa-clock fa-fw" aria-hidden="true"></i>&nbsp;预计阅读 2 分钟&nbsp;<span id="/001_crontab/" class="leancloud_visitors" data-flag-title="Linux 定时任务之 crontab">
<i class="far fa-eye fa-fw" aria-hidden="true"></i>&nbsp;<span class=leancloud-visitors-count></span>&nbsp;次阅读
</span>&nbsp;</div>
Expand All @@ -120,6 +120,9 @@ <h2 class="toc-title">目录</h2>
</nav></div>
</div><div class="content" id="content"><h1 id="linux-定时任务之-crontab"><strong>Linux</strong> 定时任务之 <strong>crontab</strong></h1>
<h2 id="1-crontab一般用法crontab-e">1. <code>crontab</code>一般用法,<code>crontab –e</code></h2>
<ul>
<li><code>crontab -e</code> 第一次用会选择一下编辑器,<code>vim</code>还是<code>nano</code>自己看着来</li>
</ul>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt"> 1
Expand Down Expand Up @@ -257,6 +260,7 @@ <h2 id="2-crontab高级用法crontab-配置文件">2. <code>crontab</code>高级
</ul>
</li>
</ul>
<img src="./assets/crontab_cheatsheet.png" alt="crontab_cheatsheet" style="zoom:50%;" />
<hr>
<h2 id="3-一些坑">3. 一些坑</h2>
<ol>
Expand Down
5 changes: 4 additions & 1 deletion 001_crontab/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

## 1. `crontab`一般用法,`crontab –e`

- `crontab -e` 第一次用会选择一下编辑器,`vim`还是`nano`自己看着来

```bash
# 重启cron服务
service cron restart
Expand Down Expand Up @@ -78,6 +80,8 @@ export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
systemctl restart cron
```

<img src="./assets/crontab_cheatsheet.png" alt="crontab_cheatsheet" style="zoom:50%;" />

---

## 3. 一些坑
Expand Down Expand Up @@ -106,4 +110,3 @@ export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
</div>
</div>


4 changes: 4 additions & 0 deletions categories/linux/index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
<guid>https://example.com/001_crontab/</guid>
<description><![CDATA[<h1 id="linux-定时任务之-crontab"><strong>Linux</strong> 定时任务之 <strong>crontab</strong></h1>
<h2 id="1-crontab一般用法crontab-e">1. <code>crontab</code>一般用法,<code>crontab –e</code></h2>
<ul>
<li><code>crontab -e</code> 第一次用会选择一下编辑器,<code>vim</code>还是<code>nano</code>自己看着来</li>
</ul>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt"> 1
Expand Down Expand Up @@ -149,6 +152,7 @@
</ul>
</li>
</ul>
<hr>
<h2 id="3-一些坑">3. 一些坑</h2>
<ol>
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
title="logo.png" /></a></div><h1 class="home-title">小贝塔教程资源</h1><div class="home-subtitle"><div id="id-3" class="typeit"></div></div><div class="links"><a href="https://github.com/rentianyu" title="GitHub" target="_blank" rel="noopener noreffer me"><i class="fab fa-github fa-fw" aria-hidden="true"></i></a><a href="https://space.bilibili.com/192194108" title="bilibili" target="_blank" rel="noopener noreffer me"><i data-svg-src="https://cdn.jsdelivr.net/npm/[email protected]/icons/bilibili.svg" aria-hidden="true"></i></a><a href="mailto:[email protected]" title="Email" rel="me"><i class="far fa-envelope fa-fw" aria-hidden="true"></i></a><a href="/index.xml" title="RSS" target="_blank" rel="noopener noreffer me"><i class="fas fa-rss fa-fw" aria-hidden="true"></i></a></div></div>
<article class="single summary" itemscope itemtype="http://schema.org/Article"><h1 class="single-title" itemprop="name headline">
<a href="/001_crontab/">Linux 定时任务之 crontab</a>
</h1><div class="post-meta"><span class="post-author"><a href="https://blog.xbta.tk" title="Author" target="_blank" rel="noopener noreffer author" class="author"><i class="fas fa-user-circle fa-fw" aria-hidden="true"></i>小贝塔</a></span>&nbsp;<span class="post-publish">发布于 <time datetime="2023-11-30">2023-11-30</time></span>&nbsp;<span class="post-category">收录于 <a href="/categories/linux/"><i class="far fa-folder fa-fw" aria-hidden="true"></i>Linux</a></span></div><div class="content">Linux 定时任务之 crontab 1. crontab一般用法,crontab –e 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 # 重启cron服务 service cron restart #</div><div class="post-footer">
</h1><div class="post-meta"><span class="post-author"><a href="https://blog.xbta.tk" title="Author" target="_blank" rel="noopener noreffer author" class="author"><i class="fas fa-user-circle fa-fw" aria-hidden="true"></i>小贝塔</a></span>&nbsp;<span class="post-publish">发布于 <time datetime="2023-11-30">2023-11-30</time></span>&nbsp;<span class="post-category">收录于 <a href="/categories/linux/"><i class="far fa-folder fa-fw" aria-hidden="true"></i>Linux</a></span></div><div class="content">Linux 定时任务之 crontab 1. crontab一般用法,crontab –e crontab -e 第一次用会选择一下编辑器,vim还是nano自己看着来 1 2 3 4 5 6 7 8 9 10 11 12</div><div class="post-footer">
<a href="/001_crontab/">阅读全文</a><div class="post-tags">
<i class="fas fa-tags fa-fw" aria-hidden="true"></i>&nbsp;<a href="/tags/linux/">Linux</a>,&nbsp;<a href="/tags/crontab/">crontab</a>,&nbsp;<a href="/tags/%E7%B3%BB%E7%BB%9F/">系统</a></div></div>
</article></div></div>
Expand Down
Loading

1 comment on commit a80fb49

@vercel
Copy link

@vercel vercel bot commented on a80fb49 Dec 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

xiaobeita – ./

xiaobeita-git-master-xiaobeita.vercel.app
xiaobeita.vercel.app
xiaobeita-xiaobeita.vercel.app

Please sign in to comment.