Syndicate content

crontab -e — change default editor, selected wrong editor

In Ubuntu 16.04, I wanted to add a user cron file with crontab -e, which has a new behavior: the very first time, it asks you what editor you want to use (i.e. nano, vim, ...)

If you choose the wrong one, then next time it does not ask you, it remembers your choice forever, so you'll be stuck.

The nano editor is okay, but difficult to work with if you're used to something like vim.

The data actually gets saved in a hidden file of your home directory named .selected_editor.

# Generated by /usr/bin/select-editor

Mine was set to "/bin/nano" instead of "/usr/bin/vim". You can just edit this file or delete it and crontab -e will re-ask you.

There is probably another way to set this up for your entire system, although I have not looked for a different solution at this point.

Syndicate content


Terms of Site Index

Find the page/content you are looking for with our index.

  • Fedora

    Linux system based on the now discontinued free RedHat distribution. Previously called FedoraCore.

  • float

    float is a type in most software languages referencing an IEEE floating point number. These numbers are generally defined on 32 or 64 bits with three parts: a sign, an exponent and a mantissa. There is also a bias which is not saved in the number. The sign is 0 (positive) or 1 (negative). This means you have a representation of: +0.0 and -0.0. The exponent is about 1/6th the total size in bits. The bias is added/subtracted from the exponent. In the end, it is a signed power of 2 exponent (i.e. exercises a shift on the mantissa.) The mantissa forms the current number.

  • not

    In programming there are two not operators. One is the logical not that transforms TRUE into FALSE and vice versa. The other transforms bits from 0 to 1 and vice versa. not is also used in documentation with a very specific meaning. Often, the accompagnying verb defines the meaning with more details (i.e. MUST NOT and SHOULD NOT.)

  • security
  • sub-forms