Home  >  Article  >  Operation and Maintenance  >  What does $ mean in linux?

What does $ mean in linux?

藏色散人
藏色散人Original
2019-05-21 11:40:3761424browse

What does $ mean in linux?

The [$] symbol in linux is the "command prompt", which means you can enter the command [1] at the end. The command prompt may prompt some information about the current user. In linux The user will be prompted for the current directory and current user.

Attachment:

  • $0 The execution name of this program

  • $n The nth parameter of this program Value, n=1..9

  • #$* All parameters of this program, this option parameter can exceed 9.

  • $# The number of parameters of this program

  • $$ The PID of this program (the current process ID number of the script running)

  • $! The PID of the last background command executed (the process ID number of the last process running in the background)

  • $? The return of the previous command Value (displays the exit status of the last command. 0 indicates no error, any other value indicates an error)

  • $-Displays the current options used by the shell, the same function as the set command

  • $@ Similar to $*, but can be used as an array

##Related learning recommendations:

linux video tutorial

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!

Statement:
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