Linux terminal and TTY who echo command usage and Shell bash variables

Source: Internet
Author: User
Tags echo command

Linux terminal is divided into physical terminal, pseudo terminal, serial terminal, virtual terminal

Physical Terminal:/dev/console

Pseudo terminal (terminal under Remote terminal graphics):/dev/pts/# (digital)

Virtual Terminal:/dev/tty#

Serial Terminal:/dev/ttys#

StartX Start the graphical interface

CTRL + C cancels the command being executed

Shift+pageup/pagedown screen in command screen


TTY command displays current terminal end device files

Who command to view all accounts logged on the current system

Who am I show current terminal login UH account


Shell

GUI: (Windows, Gnome, KDE, XFCE)

CLI: (BSH, CSH, tcsh, ksh, bash, zsh)


Bash:

Administrator prompt: #

Normal user prompt: $


Variable: is a memory space

Echo Echoes

Referencing a variable ${variable name}


Macro:

echo $PS 1

[\[email protected]\h \w]\$

\u: Current User

\h: Host Name

\w: Path base name for working directory


For Linux, the path delimiter:/


Absolute path: The path starting from the top level

Relative path: The path starting at the current position

This article is from the "10991570" blog, please be sure to keep this source http://11001570.blog.51cto.com/10991570/1835846

Linux terminal and TTY who echo command usage and Shell bash variables

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.