Score:1

How to disable prompt auto clear in Ubuntu

bw flag

When starting Ubuntu in Hyper-V VM, (See picture 1), Ubuntu will auto clear the test login: prompt text at around 22 seconds. (See picture 2)

Now press Enter to make the prompt text appear again. (See picture 3)

enter image description here

How to make Ubuntu not to auto clear the prompt text on console?

Update:

This also cause the following problem: When you login very quickly, within just 1 second, and then type some text on the tty console:

root@test:~# bar
root@test:~# hello ubuntu

Now wait around 22 - 1 = 21 seconds, Ubuntu will auto clear the root@test:~# hello ubuntu:

root@test:~# bar

Now you have to press Enter to make the prompt appear again.

Marco avatar
br flag
see `man agetty`
stackbiz avatar
bw flag
I tried to run "`agetty --noclear`" on the console but get this error "`agetty: not enough arguments`". How to make this config auto apply to system reboot?
Marco avatar
br flag
`agetty` is started by your init-system. I guess it is systemd. Use this as a starting point: https://wiki.archlinux.org/title/getty
stackbiz avatar
bw flag
I have tried to set `TTYVTDisallocate=no` according to that link, the TTYVTDisallocate=no` makes it "worse screen (`keep all service start status messages`) + prompt also cleared" , I think it may not relate to `--noclear` or `TTYVTDisallocate=no`.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.