> ## Content Index
> Fetch the complete content index at: https://www.albert-yu.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# 設置crontab 的默認編輯器
- URL: https://www.albert-yu.com/blog/set-crontab-default-editor/
- Published: 2016-12-28T06:20:37.000Z
- Updated: 2026-10-30T03:43:32.000Z
- Author: Albert Yu
- Tags: Linux/Unix, OS, crontab, Ubuntu

第一次crontab 時會請您設置編輯器

選擇編輯器

Select an editor. To change later, run \\'select-editor\\'.

1. /bin/ed
2. /bin/nano <---- easiest
3. /usr/bin/vim.basic
4. /usr/bin/vim.tiny Choose 1-4 \[2\]:

以後該改選擇， 輸入 sudo select-editor