Shell Variable

Định nghĩa Shell Variable là gì?

Shell VariableShell Variable. Đây là nghĩa tiếng Việt của thuật ngữ Shell Variable - một thuật ngữ thuộc nhóm Technology Terms - Công nghệ thông tin.

Độ phổ biến(Factor rating): 5/10

Một biến vỏ là một biến mà chỉ dành cho vỏ hiện hành. Ngược lại, một biến môi trường là hệ thống có sẵn rộng và có thể được sử dụng bởi các ứng dụng khác trên hệ thống.

Xem thêm: Thuật ngữ công nghệ A-Z

Giải thích ý nghĩa

Một biến là một vị trí trong bộ nhớ được sử dụng để giữ một giá trị. Vị trí này được gán một tên để làm cho nó mô tả. Giá trị có thể là bất kỳ loại dữ liệu như tên, số, ký tự hoặc tên tập tin / thư mục. Vì vậy, một biến là gì khác hơn là một con trỏ đến một dữ liệu cụ thể. Một vỏ cho phép người dùng tạo, assign hoặc biến xóa. Tuy nhiên, các biến này chỉ là tạm thời và sẽ được tự động xóa khi phiên vỏ được đóng lại. Để thực hiện một hệ thống liên tục và sẵn biến vỏ rộng, nó phải được xuất khẩu, do đó chuyển đổi nó thành một biến môi trường. Lệnh sử dụng để thực hiện điều này phụ thuộc vào vỏ cụ thể được sử dụng. Trong vỏ Bash sử dụng Linux, lệnh là "xuất khẩu".

What is the Shell Variable? - Definition

A shell variable is a variable that is available only to the current shell. In contrast, an environment variable is available system wide and can be used by other applications on the system.

Understanding the Shell Variable

A variable is a location in memory that is used to hold a value. This location is assigned a name to make it descriptive. The value could be any type of data such as a name, number, text or filename/directory. So, a variable is nothing more than a pointer to a particular data. A shell allows a user to create, assign or delete variables. However, these variables are only temporary and are automatically deleted when the shell session is closed. To make a shell variable persistent and available system wide, it must be exported, thus converting it into an environment variable. The command used for doing this depends on the specific shell being used. In the Bash shell used by Linux, the command is "export".

Thuật ngữ liên quan

  • Shell
  • Bourne Again Shell (Bash)
  • Environment Variable
  • Linux
  • Unix
  • Ubuntu
  • Companion Virus
  • Destructive Trojan
  • 3-D Software
  • QuickTime

Source: ? Technology Dictionary - Filegi - Techtopedia - Techterm

Trả lời

Email của bạn sẽ không được hiển thị công khai. Các trường bắt buộc được đánh dấu *