About 149,000 results
Open links in new tab
  1. How do I run a command as the system administrator (root)

    I need to run a command with administrative privileges. Someone said I should run a command as root. How do I do this?

  2. How can I display the contents of a text file on the command line?

    Oct 11, 2016 · I would like to display the contents of a text file on the command line. The file only contains 5-6 characters. Is there an easy way to do this?

  3. How to change the prompt in Linux? - Unix & Linux Stack Exchange

    The default prompt will be root@monu dev]# Can we change the "root@monu" part and give it a desired name?

  4. How to show the host name in Linux commandline prompt

    Jul 24, 2015 · I have several VMs and right now my command-line prompt looks like -bash-3.2$; identical on every VM, because it doesn't contain the host name. I need to always see which VM I'm …

  5. $PS1 vs $PROMPT_COMMAND in bash? - Unix & Linux Stack Exchange

    Dec 10, 2022 · PROMPT_COMMAND is used to introduce annoying delays by executing one or more commands before each prompt is printed to the terminal. PS1 is used to set the primary terminal …

  6. How do I exit or cancel a bad bash command? - Unix & Linux Stack …

    I expect to get some flak for this, but I can't find the answer anywhere. It seems like it should be so obvious. Sometimes, when I type a bad command in a bash terminal, the cursor just jumps down ...

  7. command line - What does the ./ mean (dot slash) in linux? - Unix ...

    Oct 11, 2017 · The ./ notation is useful when trying to run a script or other executable in the current directory. Unlike the Windows command prompt, Unix (and Unix-like systems like Linux) shells do …

  8. How to boot Linux to command-line mode instead of GUI?

    I am using 32-bit Red Hat Linux in my VM. I want to boot it to command-line mode, not to GUI mode. I know that from there I can switch to GUI mode using startx command. How do I switch back to comm...

  9. prompt - How do I get a new command line to appear in terminal

    Nov 23, 2022 · A new prompt will be automatically generated when processing of the previous command entered in the terminal (here, the node program) has finished. So, everything that does "create" a …

  10. How to change the format of the bash prompt? - Unix & Linux Stack …

    Aug 16, 2017 · This indeed seems to be about the prompt. In bash, you'd want to customize PS1. For reference on the possible special characters, see info "(bash)Controlling the Prompt" (the …