What does "$" mean in command line commands?

I often find command line commands, starting with the dollar sign, in the installation instructions for many things. For example, to install Ruby on Ubuntu , a website says to use the following command:

$ sudo apt-get install ruby-full

What does it mean $?

+4
source share
2 answers

$ is not part of the command, as shown, to indicate an input terminal. The full logbook guys would read something like

Dominic@stackoverflow$ sudo ap...
+3
source

$not part of the team. He should tell you that this command should be executed as a regular user.

( , bash) , , @, , :, , $.

:

bob@work-station:~$ 

root, $ #:

root@work-station:~#

-:

  • $, , .
  • #, , root.

, .

+2

Source: https://habr.com/ru/post/1626670/


All Articles