In Unix, the login prompt can be changed by changing the contents of the file…

2015

In Unix, the login prompt can be changed by changing the contents of the file _____ .

  1. A.

    contrab

  2. B.

    init

  3. C.

    gettydefs

  4. D.

    inittab

Attempted by 109 students.

Show answer & explanation

Correct answer: C

Answer: /etc/gettydefs

Why: The /etc/gettydefs file defines terminal initialization strings and getty configurations. The getty program reads these definitions and uses them to set up terminals and display the login prompt.

Quick notes:

  • crontab is for scheduling periodic jobs and does not affect the login prompt.

  • init is the initial system process that manages runlevels and starts system processes; it does not define the prompt text.

  • /etc/inittab lists processes (often including getty entries) for init to start, but it does not contain the login prompt strings.

  • /etc/gettydefs holds the getty terminal definitions and the login prompt text used by getty.

Explore the full course: Nta Ugc Net Paper 2

Loading lesson…