What does $ mean in linux

藏色散人
Release: 2019-11-04 10:22:08
Original
6148 people have browsed it

$What does it mean in linux?

The $ in linux is the "command prompt" where you can enter commands at the end. The current user may be prompted in front of the command prompt. Some information, under Linux, the user will be prompted for the current directory and current user.

Recommended: Linux Tutorial

What does $ mean in linux

##$ is used to give variable commands in Linux, for example $JAVA_HOME refers to the environment variable of JAVA_HOME.

echo $JAVA_HOME can output the home directory of jdk in the Linux terminal.

$ is also used when passing parameters to the script in the Shell script. For example, the format for obtaining parameters in the script is: $n, n represents a number, 1 is the first parameter to execute the script, and 2 is the execution The second parameter of the script, and so on.

Linux is a set of Unix-like operating systems that are free to use and freely disseminated. It is a multi-user, multi-task, multi-threading and multi-CPU operating system based on POSIX and Unix. It can run major Unix software tools, applications and network protocols. It supports 32-bit and 64-bit hardware. Linux inherits the network-centric design philosophy of Unix and is a multi-user network operating system with stable performance.

The above is the detailed content of What does $ mean in linux. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template