Terminal

Terminal vs. Bash vs. Command line vs. Prompt #

tty
# -sSilent
tty -s

who
# in docker container
id -u

who vs. whoami

  • You can access a full-screen TTY session, on Linux

    • Ctrl+Alt+F1: Returns to the graphical desktop
    • Ctrl+Alt+F2: Returns to the graphical desktop environment
    • Ctrl+Alt+F3: TTY 3
    • Ctrl+Alt+F4: TTY 4
    • Ctrl+Alt+F5: TTY 5
    • Ctrl+Alt+F6: TTY 6
  • Computer_terminal

  • terminal is short for terminal emulator, is a windows on screen

  • terminal emulator is running a shell like bash / zsh

  • bash is the language that runs in most terminal emulators

  • a stupid / dumb question: how do I copy and paste in bash

    • copying and pasting come from terminal emulator
    • it is specific to this graphical program
    • bash binds ctrl C, not terminal
  • command line: python has a command line

  • Prompt: variable PS1 in shell(bash / zsh / fish)

  • 现代软件堆栈是历史的凝固,软件替代硬件是历史的大趋势,硬件终端的消失,伴随这软件终端模拟器的诞生和发展,然而,历史总是会惊人的相似,至于下一个即将消失的主流硬件是什么,让我们拭目以待.