Directory and terminal learning under Linux

Source: Internet
Author: User
Tags parent directory

The Linux directory is divided into relative path and absolute path by call

Relative path: Finding a target from the current path can also be used./Call the current directory file or: /Call a file in the previous level directory to view the current path via PWD

Absolute path: Locates files from the root directory.


When the CAT/ETC/PASSWD command is executed, because the absolute path is referenced, it is found directly from the root directory to the ETC directory, where the passwd file is found. If you take a relative path, assume that the current directory is a etc file, you can directly perform cat passwd or cat./passwd to find the passwd file.


The switch directory under Linux is the CD command, the CD command also supports relative paths and absolute paths, and can go directly to the TMP directory via cd/tmp. If it is in the/etc directory, you can use the CD. Enter the parent directory/, then enter the TMP directory via cd/tmp


Linux is divided into multiple terminals depending on the landing method:

Physical Terminal:/dev/console

Virtual Terminal: CTRL+ALT+FN (TTY)

Graphics Terminal: X server,gnome

Pseudo Terminal:/dev/pts/#


Specific terminals can be viewed via TTY


Directory and terminal learning under Linux

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.