Environment variable names are usually preceded by a dollar sign ($) i dịch - Environment variable names are usually preceded by a dollar sign ($) i Việt làm thế nào để nói

Environment variable names are usua


Environment variable names are usually preceded by a dollar sign ($) in
scripts and on shell command lines, except when they’re assigned. Getting
this detail wrong can produce results you weren’t expecting; for instance,
typing echo HOSTNAMEproduces the output HOSTNAMErather than the computer’s hostname.
Setting an environment variable as just described sets it permanently for the shell or
(when used with export) for all programs you launch from it. If you want to set an environment variable for just one program, you can do so with env:
$ env DISPLAY=seeker.example.com:0.0 nedit
This command launches the neditprogram such that it attempts to use the :0.0display on seeker.example.comrather than the default local display (or whatever the original
DISPLAYenvironment variable specifies; for more on this variable, see the next section).
This particular command is not guaranteed to work, though, since it depends on the
configuration of seeker.example.comto work. It’s actually possible to omit the envcommand in most cases; however, envcan take options that require its use. Most notably, -ior
--ignore-environmentbegins with a completely empty environment, and -u VARNAMEor
--unset=VARNAMEunsets the specified variable, $VARNAME.
Although you can set environment variables manually at a bashprompt, a more common approach is to set them in a global or local bashstartup script. These scripts are
described in more detail shortly, in “Modifying Shell Configuration Files.”
0/5000
Từ: -
Sang: -
Kết quả (Việt) 1: [Sao chép]
Sao chép!
Environment variable names are usually preceded by a dollar sign ($) in scripts and on shell command lines, except when they’re assigned. Getting this detail wrong can produce results you weren’t expecting; for instance, typing echo HOSTNAMEproduces the output HOSTNAMErather than the computer’s hostname.Setting an environment variable as just described sets it permanently for the shell or (when used with export) for all programs you launch from it. If you want to set an environment variable for just one program, you can do so with env:$ env DISPLAY=seeker.example.com:0.0 neditThis command launches the neditprogram such that it attempts to use the :0.0display on seeker.example.comrather than the default local display (or whatever the original DISPLAYenvironment variable specifies; for more on this variable, see the next section). This particular command is not guaranteed to work, though, since it depends on the configuration of seeker.example.comto work. It’s actually possible to omit the envcommand in most cases; however, envcan take options that require its use. Most notably, -ior --ignore-environmentbegins with a completely empty environment, and -u VARNAMEor --unset=VARNAMEunsets the specified variable, $VARNAME.Although you can set environment variables manually at a bashprompt, a more common approach is to set them in a global or local bashstartup script. These scripts are described in more detail shortly, in “Modifying Shell Configuration Files.”
đang được dịch, vui lòng đợi..
Kết quả (Việt) 2:[Sao chép]
Sao chép!

Tên biến môi trường thường được bắt đầu bằng một dấu đô la ($) trong
kịch bản và trên dòng lệnh shell, trừ khi chúng được gán. Bắt
chi tiết sai này có thể tạo ra kết quả bạn không mong muốn; Ví dụ,
gõ HOSTNAMEproduces vang các HOSTNAMErather đầu ra so với hostname của máy tính.
Thiết lập một biến môi trường như vừa mô tả bộ vĩnh viễn cho các vỏ hoặc
(khi được sử dụng với xuất khẩu) cho tất cả các chương trình mà bạn khởi động từ nó. Nếu bạn muốn thiết lập một biến môi trường cho chỉ là một chương trình, bạn có thể làm như vậy với env:
$ env DISPLAY = seeker.example.com: 0.0 nedit
lệnh này sẽ khởi chạy neditprogram như vậy mà nó cố gắng để sử dụng: 0.0display trên người tìm kiếm. example.comrather hơn mặc định hiển thị địa phương (hoặc bất kỳ bản gốc
biến DISPLAYenvironment định; để biết thêm về biến này, xem phần tiếp theo).
Lệnh này đặc biệt không được bảo đảm để làm việc, mặc dù, vì nó phụ thuộc vào
cấu hình của seeker.example việc .comto. Nó thực sự có thể bỏ qua các envcommand trong hầu hết trường hợp; Tuy nhiên, envcan mất tùy chọn mà yêu cầu sử dụng của nó. Đáng chú ý nhất, -ior
--ignore-environmentbegins với một môi trường hoàn toàn trống rỗng, và -u VARNAMEor
--unset = VARNAMEunsets biến quy định, $ varname.
Mặc dù bạn có thể thiết lập các biến môi trường bằng tay tại một bashprompt, một cách tiếp cận phổ biến hơn là thiết lập chúng trong một kịch bản bashstartup toàn cầu hay địa phương. Những kịch bản được
mô tả chi tiết hơn trong thời gian ngắn, trong "Sửa Shell các file cấu hình."
đang được dịch, vui lòng đợi..
 
Các ngôn ngữ khác
Hỗ trợ công cụ dịch thuật: Albania, Amharic, Anh, Armenia, Azerbaijan, Ba Lan, Ba Tư, Bantu, Basque, Belarus, Bengal, Bosnia, Bulgaria, Bồ Đào Nha, Catalan, Cebuano, Chichewa, Corsi, Creole (Haiti), Croatia, Do Thái, Estonia, Filipino, Frisia, Gael Scotland, Galicia, George, Gujarat, Hausa, Hawaii, Hindi, Hmong, Hungary, Hy Lạp, Hà Lan, Hà Lan (Nam Phi), Hàn, Iceland, Igbo, Ireland, Java, Kannada, Kazakh, Khmer, Kinyarwanda, Klingon, Kurd, Kyrgyz, Latinh, Latvia, Litva, Luxembourg, Lào, Macedonia, Malagasy, Malayalam, Malta, Maori, Marathi, Myanmar, Mã Lai, Mông Cổ, Na Uy, Nepal, Nga, Nhật, Odia (Oriya), Pashto, Pháp, Phát hiện ngôn ngữ, Phần Lan, Punjab, Quốc tế ngữ, Rumani, Samoa, Serbia, Sesotho, Shona, Sindhi, Sinhala, Slovak, Slovenia, Somali, Sunda, Swahili, Séc, Tajik, Tamil, Tatar, Telugu, Thái, Thổ Nhĩ Kỳ, Thụy Điển, Tiếng Indonesia, Tiếng Ý, Trung, Trung (Phồn thể), Turkmen, Tây Ban Nha, Ukraina, Urdu, Uyghur, Uzbek, Việt, Xứ Wales, Yiddish, Yoruba, Zulu, Đan Mạch, Đức, Ả Rập, dịch ngôn ngữ.

Copyright ©2025 I Love Translation. All reserved.

E-mail: