The prompt is what asks a user for their interactive input

learn more… | top users | synonyms

0
votes
1answer
3k views

disable possword policy using command prompt in Server 2008

Is there a way to disable password policy in Windows Server 2008 using command prompt. I know how to do it using Local Security Policy in Administrative Tools. I was wondering if there is a way to ...
4
votes
1answer
103 views

Force prompt on specific directories

Is there a way to change the prompt on a different directories on the same machine? For example, I want a simple prompt "[\W] \$" in development directories. Ideas?
1
vote
1answer
1k views

No Telnet login prompt when used over SSH tunnel

I have a device, let's call it d1, runnning a lightweight Linux. This device is NATed by my internet box/router, hence not reachable from the Internet. That device runs a telnet daemon on it, and only ...
63
votes
5answers
36k views

OpenSSL without prompt

I am using following code to generate keys: apt-get -qq -y install openssl; mkdir -p /etc/apache2/ssl; openssl genrsa -des3 -out server.key 1024; openssl req -new -key server.key -out server.csr; cp ...
14
votes
8answers
7k views

Pushing my PS1 prompt over ssh

I use a specific PS1 prompt that I like. I share a few logins with other other people on a few different servers. I was wondering if there was a way to specify in my local bash profile a remote prompt ...
8
votes
3answers
6k views

Lightning bolt for prompt (PS1)

I've seen on a few screencasts a while back where someone had a lightning bolt instead of $ on the bash prompt. Does anyone know how to do this?
2
votes
1answer
2k views

How to correctly set GNU Screen to display currently running program in hardstatus

In bash, to display the name of the current program in the GNU Screen hardstatus line takes only two configuration lines. First, tell screen what the end of your prompt normally looks like, and supply ...
2
votes
1answer
408 views

How can I minimise my Bash shell prompt?

Currently the terminal prompt looks like this: [karlis@karlis-desktop current_folder]$ How can I minimize the prompt, so that it only shows $ or # without extra info in square brackets? I checked ...
20
votes
5answers
41k views

How can I display the absolute path in bash prompt?

I currently have my bash PS1 set to something like this: PS1="\[\`if [[ \$? = "0" ]]; then echo '\e[32m\h\e[0m'; else echo '\e[31m\h\e[0m' ; fi\`:\w\n\$ " How can I make it show the absolute path ...
2
votes
2answers
535 views

How to highlight current folder in Bash prompt?

I'd like to use the \w variable in .bashrc, but I want the prompt to highlight the current end-directory. Something like this: /usr/local/<strong>bin</strong> How can I do that?
9
votes
6answers
29k views

How to Run an app as Administrator without the prompt?

When I start SQL Server Management Studio 2008, I an error that's been around forever and is documented here. One of the suggestions to fix it that actually worked was to start SSMS with Run as ...
3
votes
2answers
2k views

How to make bash update its idea of hostname

My bash prompt shows my hostname. If I change my hostname with the hostname command, in /etc/hosts, /etc/hostname and $HOSTNAME, the prompt still uses the old name. Is it possible to update this ...
0
votes
1answer
221 views

Command line Bin to local Printer

I am trying to run a bin file from the command prompt to a local printer connected via usb. The line I am using is: C:\Users\Administrator>rundll32 printui.dll,PrintUIEntry /b PAItx2002f /a %windi ...
0
votes
1answer
3k views

Execute remote shell commands on windows XP embedded

The following situation: We have Windows XP Embedded clients that have all admin shares disabled and only have read-only shares (for security reasons). What we want to do is run remote shell (dos) ...
4
votes
1answer
332 views

Why is my bash prompt repeating its last line twice, when I ls, or cd or issue misc commands?

My prompt is such: PS1="\[\033[32m\]\u@myserver\n\[\033[33m\w$\033[0m\] " So as output after I ls i see this: jake@myserver ~/public_html$ ~/public_html$ When I should only (I think) see: jake@...
1
vote
1answer
624 views

ANSI prompts messed in Ubuntu 10.04 terminal window (Unicode 0002), but ok in Putty

My bash prompt is: PS1='\e[1;31m\]\[\u\e[0m\]@\h [\e[1;33m\]\w\[\e[0m\]]\$ ' (reddish username, yellowish current directory). If I connect with Putty from a Windows machine, everything is fine. If ...
2
votes
1answer
216 views

'sourcing' from the bash prompt

I have a little script that sets my proxy system wide in one go, it calls gconftool-2, sets a proxy in ~/.ssh/config and sets the proxy for apt. This is all relatively simple. The real problem comes ...
0
votes
2answers
122 views

How do I add history/reverse_matching feature to windows prompt?

In linux prompt,we can type !mysql and so on to match a history command to save time. Is there a utility for windows(XP to be exact) that enables this feature?
5
votes
3answers
4k views

Get Function Into PS1 (Zsh)?

This works in Bash (parse_git_branch is a defined function) export PS1="\$(parse_git_branch)" but I cannot figure out the equivalent in zsh. Note: If I do PROMPT="$(parse_git_branch)" it seems ...
2
votes
2answers
3k views

How to search recursively for a string in a prompt in windows?

I've installed unixutils,and grep string * can search string in the current directory, but how to make it search recursively?
1
vote
2answers
5k views

How to fix dual boot after messing up with formatting and partitioning?

I recently tried to reformat one of the partitions in my dual boot PC. I originally had XP and then installed 7 as a dual boot. Well, long story short, XP was having problems, so I reformatted the XP ...
1
vote
3answers
1k views

in zsh, how do I get pwd in my prompt?

I've recently switched from bash to zsh, but it annoys me that I can't see what directory I'm in (MacOSX) how do I get 'pwd' to show up in my prompt?
2
votes
3answers
2k views

How to change prompt in jailshell

My ISP has switched to jailshell at some point, and now when I SSH in my prompt is always: -jailshell-3.2$ I'd like it to be: `pwd` $ Where do I configure this? I seem to recall some kind of ...
0
votes
3answers
605 views

Solidworks on windows 7 UAC request at every login

Is there a way to stop solidworks from requiring a UAC permission prompt every time the system is booted up? It is apparently trying to activate a server at startup. Is this an authentication service, ...
2
votes
2answers
2k views

Default prompt for Zsh in Ubuntu

How can you get the prompt "/home/user@address:/path" for Zsh? I run the following unsuccessfully in my .zshrc PROMPT='%d%>:%{\e[0m%} ' I get as my prompt /home/masi
45
votes
4answers
16k views

What is the origin of the UNIX $ (dollar) prompt?

The UNIX prompt uses a $ symbol to indicate that your input is expected. I was wondering why this symbol was chosen—if there is a reason. Dollar just seems a little unexpected. A > symbol would ...
1
vote
4answers
10k views

xcopy Not Surpressing File/Directory Query

Hey folks, I'm attempting to use xcopy to copy over a file from one machine to another on our network as part of a Java program. I'm calling xcopy like this: xcopy "C:\Program Files\path\to\my\file" ...
11
votes
4answers
9k views

How do I fix my prompt in emacs shell-mode?

I'm doing some programming on a colleague's machine. He has a version of emacs (23.1.1) I haven't used before. My problem is that when I go to shell-mode, my bash prompt looks like this: ^[]0;jay@...
14
votes
6answers
3k views

How to show the current Vi mode when using Vi keybindings in the shell?

I use the vi keybindings in my tcsh shell. Now, I don't know which vi mode I'm in (insert mode or command mode), which leads to a lot of frustration. Does anyone know of a way to show the current ...