Questions tagged [prompt]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
662 views

How to Make the IP Address Appear as Part of Bash Prompt?

Running an Amazon EC2 instance with Ubuntu 22.04. The elastic ip address is 52.120.94.72. I want the bash prompt to read like this (no space) [email protected]:~/working_directory$ Based on some ...
Della's user avatar
  • 215
0 votes
1 answer
164 views

Custom SSH password prompt on Linux

I want to modify the ssh (OpenSSH) password prompt on ssh [email protected] from: [email protected]'s password: to: user's password: How can achieve this?
Harish Reddy's user avatar
0 votes
1 answer
234 views

When using rsh i'm getting prompt for the password, but other SLES12 servers are working without prompting password

[ 2 root ] $ cat /etc/securetty # # This file contains the device names of tty lines (one per line, # without leading /dev/) on which root is allowed to login. # tty1 tty2 tty3 tty4 tty5 tty6 rsh ...
Saravanan Arumugam's user avatar
0 votes
1 answer
86 views

The {0} ok prompt is missing a # inside the {} [closed]

We have tried to replicate at our lab facility but were unable to get empty braces {}. We tried with hard drives in place and with none. There is also no errors indicated when using the rotary switch ...
Peter L's user avatar
  • 11
0 votes
1 answer
584 views

Cognos Analytics 11.1.6 - Reports Requesting User ID and Password When Clicked

I'm running Cognos Analytics 11.1.6 and restored a bunch of reports from the previous server that was running 10.2.2. A user mentioned that when she clicks a report on the 11 instance she is required ...
jrd1989's user avatar
  • 688
2 votes
1 answer
70 views

PS variable for expansion of word designators

Is there an undocumented PS variable like PS2 that bash would show when it replaces a word designator into its actual value? I think it would help clarify where the command ends and where the ...
Juanma's user avatar
  • 132
1 vote
3 answers
8k views

Ansible - Is it possible to skip the execution of a role?

Here is my main playbook, which launch the roles listed below --- - hosts: slaves roles: - ntp - nmap - tcpdump - unattended-upgrades - traceroute - apache ...
Osh's user avatar
  • 11
2 votes
1 answer
3k views

How to display user@hostname in SSHD password prompt

When I SSH to a server, the prompt sometimes displays my user and the hostname of the server: xavier@local:~$ ssh server1 xavier@server1's password: Sometimes all I get is Password: xavier@local:~...
Calimo's user avatar
  • 410
0 votes
1 answer
32 views

how do i edit the username and password prompt window for my protected virtual path?

I am using abyss web server X2 to create this username and password prompt window for my protected virtual path. I would like to edit this prompt window or pop up with my custom text for the visitors....
jehovahsays's user avatar
-1 votes
1 answer
760 views

Not getting the console login prompt in HP ILO 3

Not able to get the console login in the ILO 3. When I am entering the vsp command in the ilo it is not showing the console login prompt. Tried to reset the ilo(from the Diagnostic Option in the Web ...
Nishit Shah's user avatar
3 votes
1 answer
5k views

Trouble using powershell output as a variable in batch file

I can manually run this command from a Windows Command Prompt: powershell (new-timespan -start 01/01/2000 -end (get-date)).days % 14 And it returns a number from 0 to 13. I want to use this result ...
pigeonpigeon's user avatar
1 vote
1 answer
2k views

Change login prompt on Debian server

I need to change a telnet login prompt of Debian 4.0 server. Currently it is of form: hostname login: I need to have just: login: Apparently chnages to /etc/issue.net only influence what is ...
JasonPa112's user avatar
1 vote
3 answers
360 views

Where are all the places Windows environment variables set?

When I run cmd.exe and type 'set' I have a %LIB% variable set. The value is pointing to a folder that doesn't exist, which causes warnings during Visual Studio compiles. Here's the thing... If I go ...
Swoogan's user avatar
  • 2,097
2 votes
4 answers
2k views

How to lock user in a shell script program?

Let's say I have a Linux OS without desktop environment. After the PC finish boot up, it will directly show the shell terminal to the user. I plan to write a shell script program and make it ...
user avatar
2 votes
3 answers
909 views

What's wrong with this bash prompt?

I use the following entry in ~/.bashrc file to colorize the prompt and display current branch of git repository: PS1='\[\e[1;32m\]\[\u@\h\]\[\e[m\] \[\w\]\[\e[1;1m\]\[$(__git_ps1 " (%s)")\] \[\e[1;1m\...
takeshin's user avatar
  • 1,481
0 votes
1 answer
1k views

unwanted password prompt pops up on web server?

my web server randomly asks for a password as though basic authentication is turned on. It's an IIS 7 web server and you have to specifically install basic authentication in the roles section. It isn'...
user avatar
2 votes
4 answers
262 views

a unix single-line editor/prompt?

I've got a bash script that would be nicer if when I prompt the user, rather than just asking for input, if it provided a line that the user could edit (but a full text editor would be overkill, it's ...
jes5199's user avatar
  • 377
11 votes
4 answers
4k views

Bash: how to know if the last command's output ends with a newline or not?

Most of the time the output of a command ends with the newline character. But sometimes it does not, so the next shell prompt is printed in the same line together with the output. Example: root@...
GetFree's user avatar
  • 1,530
5 votes
4 answers
6k views

Prompt customization: how to detect when there is no tty

I have a customized prompt with colors (using tput) and every time I start a non-interactive session in the server I get a bunch of errors. For instance if I start a non-interactive session like this: ...
GetFree's user avatar
  • 1,530
8 votes
1 answer
4k views

Bash custom prompt breaking wrapping of long command lines

I have a custom bash prompt that colours my username, hostname and current working directory. The colours display correctly, however when I type a command line that needs to wrap, the terminal does ...
Murali Suriar's user avatar
4 votes
9 answers
33k views

Is there a way to delay a forced reboot?

I realize this is more appropriate for our company's admin group to field. However, pretend they are unresponsive just for the sake of discussion =) If my system is prompting me to reboot now or in a ...
user avatar
7 votes
3 answers
995 views

Getting more helpful tab completion prompts in bash?

Let's say I have a directory with a few files in it like this: $ ls file1 file2 file3 And I want to do some tab completion in bash: $ cat file<tab> file1 file2 file3 I remember seeing ...
Amandasaurus's user avatar
  • 32.2k
3 votes
5 answers
2k views

Who decided the default shell prompts in Linux?

There are a couple of defaults in the standard Linux shell, bash, that I think need some history brought out. This question is about the prompt. The default prompt in bash in many Linux distros is [\...
staticsan's user avatar
  • 1,539
2 votes
4 answers
779 views

How can I copy sanely (not using "Mark") from the Windows command prompt

Given a very long single command at the command line in Windows, I'd like to simply copy that command into clipboard. I am just looking for the ubiquitous Shift-End , Ctrl-C type functionality almost ...
Kevin Radcliffe's user avatar