Explain the parameters before and after @ in the terminal promptError message “sudo: unable to resolve host...
Crop image to path created in TikZ?
How would photo IDs work for shapeshifters?
Why did the Germans forbid the possession of pet pigeons in Rostov-on-Don in 1941?
Could Giant Ground Sloths have been a good pack animal for the ancient Mayans?
Finding files for which a command fails
Are cabin dividers used to "hide" the flex of the airplane?
Landlord wants to switch my lease to a "Land contract" to "get back at the city"
A poker game description that does not feel gimmicky
How can I add custom success page
Does a dangling wire really electrocute me if I'm standing in water?
How to make payment on the internet without leaving a money trail?
What is GPS' 19 year rollover and does it present a cybersecurity issue?
What is the offset in a seaplane's hull?
Why doesn't a const reference extend the life of a temporary object passed via a function?
What causes the sudden spool-up sound from an F-16 when enabling afterburner?
Is every set a filtered colimit of finite sets?
What do you call words made from common English words?
When blogging recipes, how can I support both readers who want the narrative/journey and ones who want the printer-friendly recipe?
If a centaur druid Wild Shapes into a Giant Elk, do their Charge features stack?
"listening to me about as much as you're listening to this pole here"
Piano - What is the notation for a double stop where both notes in the double stop are different lengths?
Can a planet have a different gravitational pull depending on its location in orbit around its sun?
Doomsday-clock for my fantasy planet
Calculate Levenshtein distance between two strings in Python
Explain the parameters before and after @ in the terminal prompt
Error message “sudo: unable to resolve host (none)”What does the name after '@' at terminal prompt mean?Determining the geometry parameters of a running terminalColoring the terminal prompt text issueNO prompt for the terminalChange the terminal promptHow to show a running clock in terminal before the command promptTerminal command prompt missingWhere are commands of the netinstall mini.iso documented?Some basic questions about installing PHP on ubuntuReverse Terminal Command prompt
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
What do the values in the prompt mean?
alexey511@rgb-3345:~$
I know it is a very basic question. But I am struggling with this problem and I cannot solve it because of the lack of the basic understanding. After googling I didn't find any explanation. (Certainaly it is hidden somewhere in the documentation and one should read probably hundreds of pages to get there).
I'd appreciate your help. I really like to get knowing with Linux but first steps are somehow not easy.
16.04 command-line
add a comment |
What do the values in the prompt mean?
alexey511@rgb-3345:~$
I know it is a very basic question. But I am struggling with this problem and I cannot solve it because of the lack of the basic understanding. After googling I didn't find any explanation. (Certainaly it is hidden somewhere in the documentation and one should read probably hundreds of pages to get there).
I'd appreciate your help. I really like to get knowing with Linux but first steps are somehow not easy.
16.04 command-line
add a comment |
What do the values in the prompt mean?
alexey511@rgb-3345:~$
I know it is a very basic question. But I am struggling with this problem and I cannot solve it because of the lack of the basic understanding. After googling I didn't find any explanation. (Certainaly it is hidden somewhere in the documentation and one should read probably hundreds of pages to get there).
I'd appreciate your help. I really like to get knowing with Linux but first steps are somehow not easy.
16.04 command-line
What do the values in the prompt mean?
alexey511@rgb-3345:~$
I know it is a very basic question. But I am struggling with this problem and I cannot solve it because of the lack of the basic understanding. After googling I didn't find any explanation. (Certainaly it is hidden somewhere in the documentation and one should read probably hundreds of pages to get there).
I'd appreciate your help. I really like to get knowing with Linux but first steps are somehow not easy.
16.04 command-line
16.04 command-line
edited yesterday
MEE the setup wizard
1033
1033
asked yesterday
alex511ZUalex511ZU
193
193
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
The part before the "@"
alexey511
is your username; check with
$ whoami
alexey511
The part between "@" and ":"
rgb-3345
is the hostname:
$ hostname
rgb-3345
The part between ":" and "$"
~
is the current working directory, abbreviated to the tilde which is a synonym for your home directory:
$ pwd
/home/alexey511
And finally the "$" is the actual "prompt" sign, indicating you're a normal user (instead of root
, in which case it would read "#"), and that command input is expected from you here.
Altogether this is a fairly vanilla shell prompt which is defined and assigned to the environment variable PS1
like this (without color codes for better readability), usually in the file ~/.bashrc
:
PS1='u@h:w$ '
If you want to experiment with it, check out this page:
https://www.howtogeek.com/307701/how-to-customize-and-colorize-your-bash-prompt/
add a comment |
The prompt in the terminal is set by the variable PS1
.
echo $PS1
shows how it is set in your system, and
man bash
and search for the chapter on PROMPTING
gets you the possible parameters for the PS prompts.
PS1 is set in .bashrc
file.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1131814%2fexplain-the-parameters-before-and-after-in-the-terminal-prompt%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
The part before the "@"
alexey511
is your username; check with
$ whoami
alexey511
The part between "@" and ":"
rgb-3345
is the hostname:
$ hostname
rgb-3345
The part between ":" and "$"
~
is the current working directory, abbreviated to the tilde which is a synonym for your home directory:
$ pwd
/home/alexey511
And finally the "$" is the actual "prompt" sign, indicating you're a normal user (instead of root
, in which case it would read "#"), and that command input is expected from you here.
Altogether this is a fairly vanilla shell prompt which is defined and assigned to the environment variable PS1
like this (without color codes for better readability), usually in the file ~/.bashrc
:
PS1='u@h:w$ '
If you want to experiment with it, check out this page:
https://www.howtogeek.com/307701/how-to-customize-and-colorize-your-bash-prompt/
add a comment |
The part before the "@"
alexey511
is your username; check with
$ whoami
alexey511
The part between "@" and ":"
rgb-3345
is the hostname:
$ hostname
rgb-3345
The part between ":" and "$"
~
is the current working directory, abbreviated to the tilde which is a synonym for your home directory:
$ pwd
/home/alexey511
And finally the "$" is the actual "prompt" sign, indicating you're a normal user (instead of root
, in which case it would read "#"), and that command input is expected from you here.
Altogether this is a fairly vanilla shell prompt which is defined and assigned to the environment variable PS1
like this (without color codes for better readability), usually in the file ~/.bashrc
:
PS1='u@h:w$ '
If you want to experiment with it, check out this page:
https://www.howtogeek.com/307701/how-to-customize-and-colorize-your-bash-prompt/
add a comment |
The part before the "@"
alexey511
is your username; check with
$ whoami
alexey511
The part between "@" and ":"
rgb-3345
is the hostname:
$ hostname
rgb-3345
The part between ":" and "$"
~
is the current working directory, abbreviated to the tilde which is a synonym for your home directory:
$ pwd
/home/alexey511
And finally the "$" is the actual "prompt" sign, indicating you're a normal user (instead of root
, in which case it would read "#"), and that command input is expected from you here.
Altogether this is a fairly vanilla shell prompt which is defined and assigned to the environment variable PS1
like this (without color codes for better readability), usually in the file ~/.bashrc
:
PS1='u@h:w$ '
If you want to experiment with it, check out this page:
https://www.howtogeek.com/307701/how-to-customize-and-colorize-your-bash-prompt/
The part before the "@"
alexey511
is your username; check with
$ whoami
alexey511
The part between "@" and ":"
rgb-3345
is the hostname:
$ hostname
rgb-3345
The part between ":" and "$"
~
is the current working directory, abbreviated to the tilde which is a synonym for your home directory:
$ pwd
/home/alexey511
And finally the "$" is the actual "prompt" sign, indicating you're a normal user (instead of root
, in which case it would read "#"), and that command input is expected from you here.
Altogether this is a fairly vanilla shell prompt which is defined and assigned to the environment variable PS1
like this (without color codes for better readability), usually in the file ~/.bashrc
:
PS1='u@h:w$ '
If you want to experiment with it, check out this page:
https://www.howtogeek.com/307701/how-to-customize-and-colorize-your-bash-prompt/
edited yesterday
answered yesterday
MurphyMurphy
793315
793315
add a comment |
add a comment |
The prompt in the terminal is set by the variable PS1
.
echo $PS1
shows how it is set in your system, and
man bash
and search for the chapter on PROMPTING
gets you the possible parameters for the PS prompts.
PS1 is set in .bashrc
file.
add a comment |
The prompt in the terminal is set by the variable PS1
.
echo $PS1
shows how it is set in your system, and
man bash
and search for the chapter on PROMPTING
gets you the possible parameters for the PS prompts.
PS1 is set in .bashrc
file.
add a comment |
The prompt in the terminal is set by the variable PS1
.
echo $PS1
shows how it is set in your system, and
man bash
and search for the chapter on PROMPTING
gets you the possible parameters for the PS prompts.
PS1 is set in .bashrc
file.
The prompt in the terminal is set by the variable PS1
.
echo $PS1
shows how it is set in your system, and
man bash
and search for the chapter on PROMPTING
gets you the possible parameters for the PS prompts.
PS1 is set in .bashrc
file.
answered yesterday
Soren ASoren A
3,54211024
3,54211024
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1131814%2fexplain-the-parameters-before-and-after-in-the-terminal-prompt%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown