The prompt is what asks a user for their interactive input

learn more… | top users | synonyms

0
votes
1answer
28 views

What 016 017 in bash prompt, how can I make it correct in Terminal

I saw a beautiful bash prompt here PS1="\n\[\e[30;1m\]\[\016\]l\[\017\](\[\e[34;1m\]\u@\h\[\e[30;1m\])-(\[\e[34;1m\]\j\[\e[30;1m\])-(\[\e[34;1m\]\@ ...
0
votes
0answers
10 views

Customized bash prompt (PS1) issues when text moving to next line and back.(word wrapping)

I'm using a customized prompt which includes and output of a "case" script and also colors it. When the text is colored I'm having line wrapping issues, when I remove the color - the issue is gone. ...
0
votes
2answers
37 views

Making PS1 prompt refreshable

I want my prompt to be changed based on an output of a certain command. and based on the command result to add a color. example: run the command: cphaprob stat | grep local | awk '{ print $NF }'` ...
0
votes
0answers
24 views

how to list all CNAMEs of the current server in the bash prompt?

I have servers with a generic names (e.g. eu1.example.com) which has a set of useful CNAME (e.g. mail.example.com, rocket.example.com). How can I list the CNAME in a bash prompt, to go from ...
0
votes
0answers
12 views

How to re allow dialogue from a page in Chrome?

I had a page of mine that was stuck in a loop of prompts, so I had to choose the "prevent this page communicating" box to stop it (I didn't want to close the page or browser for a specific reason). ...
0
votes
1answer
41 views

How to change bash prompt?

I'd like to change my bash prompt when I login. But even after I change .bashrc and re-login, it still prompts the old one. What goes wrong please? I want to get [\u@\h \W]\$ but I get \s-\v\$ for ...
0
votes
2answers
57 views

Importance of default starting folder in CMD Prompt

Every time I run the Command Prompt on my machine (Windows 7 Professional, 64bit), the default message tells me on which folder my commands are active, as the CLI has "sent" me there: the ...
0
votes
0answers
68 views

No prompt for password when piping through ssh

i'm trying to use partclone to clone a partition and send the .img on my ssh server.That's what i do : partclone.ext2 -c -d -s /dev/sda1 | ssh -p xxxxx username@serveraddress "cat > backup.img" when ...
3
votes
1answer
33 views

bash's command number ( \# ) equivalent in zsh

I'm looking for a character to put in my zsh's $PROMPT that would be equivalent to bash's \# (the command number of this command, according to this site). So far I've found only %h but this is not ...
0
votes
1answer
45 views

How to configure internet explorer to block download prompt for csv files

How to configure internet explorer to avoid save or cancel prompt while downloading .csv file and download the csv file.
1
vote
0answers
32 views

Update prompt on window change in tmux

Windows in tmux can easily become out of sync. For example, in both windows I might have: ~/dir git:(master *) $ The * indicates changes. Then I run git commit in one window, or change to another ...
-1
votes
1answer
25 views

Need Macro to perform formula based on cell not number

I am working on a budget workbook and in column I (I5-I1135) I have numbers that I need to upon prompt (such as CTRL C) have the numbers divide by 10 then multiply by 12.. Example: cell I5 has ...
0
votes
1answer
45 views

How to create a windows cmd script to rename files

I have a bunch of files named YYYYDDMM_prep888 and I want to rename them to YYYYMMDD_prep888, just exchanging DD for MM. I'd appreciate some help. Thanks.
5
votes
3answers
162 views

On windows commandline, how do I get a dynamic prompt that tells me where in the filesystem I am?

I am trying to modify my CMD, to show only current dir name dynamically like: Desktop $ When i switched the folder, it must be updated. It is not required to be code in purely batch file, it may ...
4
votes
2answers
110 views

Customizing command window prompt

I am running a bunch of commands in a command prompt on a Windows server over a period of time and I would like to see when I last ran a command. I used the prompt command to customize the prompt. ...
1
vote
2answers
40 views

Subdirectories in prompt?

I'm working on making my prompt as useful as possible. Right now, it contains the date, time, and directory, along with a colored divider line so I can easily see where each batch of input starts. I ...
6
votes
3answers
256 views

Removing the useless space at the end of the right prompt of zsh ($RPROMPT)

In zsh, there is always a space character at the right of my right prompt. I tried with a very simple .zshrc such as: PROMPT="#" RPROMPT="*" There is a always a space after the * on the right of ...
0
votes
2answers
87 views

Formatting a disk drive

I need to get to the c prompt before windows 8 loads. I want to reformat my hard drive and reinstall windows 8 because I cannot get it to recognize my password.
2
votes
0answers
95 views

Open in Command line doesn't work anymore since the last windows update

since the last windows update 2013/11/12 this doesnt work anymore on Windows 7 64bit : Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\cmd] @="Open cmd here" ...
0
votes
2answers
55 views

iTerm2 & Terminal Giving >> [33[01;32m]u@h[33[00m]:[33[01;36m]w[33[00m]$

I opened iTerm2 and it changed the prompt to.. [33[01;32m]u@h[33[00m]:[33[01;36m]w[33[00m]$ I have no idea how this happened, and I can't figure out how to change it. I went to terminal ...
1
vote
0answers
53 views

How do I display a newline in a mysql prompt?

I'm trying to make my mysql prompt look like this: root@localhost:3306 database $ [mysql commands…] How might I place the dollar sign on a newline? Here's my current prompt configuration, in which ...
0
votes
0answers
64 views

Shortcuts from Start command prompt not working : Windows 7

I am having Windows 7 Home basic in my system. From last few days I am not able to run shortcut commands from the Start Command Prompt( that can be opened by clicking the windows icon on the left hand ...
-1
votes
1answer
46 views

Save custom Prompt string in command prompt [duplicate]

I've come to like starting all my sessions with a prompt $D$H$H$H$H$H$H$H$H$H $T$H$H$H $P $_ Is there a way to just save it so it does it itself?
2
votes
1answer
71 views

how to open cmd from gvim without waiting the cmd window to be closed

In gvim I can open cmd typying :!cmd, but gvim keeps waiting for the cmd window to be closed. Is there a way to tell gvim NOT to wait?
3
votes
2answers
182 views

How to answer a prompt in a batch file

Per suggestion I added /ad to return only dirs, but continue to get prompted. The prompt suggests it wants to know whether to create a file or directory. How do I automate the answer in a batch ...
0
votes
0answers
49 views

Can I test if command prompt support unicode in Windows

Is there a simple test (or trick) I can run on Windows command line to know if it supports unicode? For the context, I'm using Node.js - but I'm pretty confident I could adapt any solutions.
0
votes
3answers
719 views

How to execute linux command in background?

Currently, I'm using nohup command & to send it in background. But the problem is: if I execute nohup command & I get outout as : root@ubuntu:/home/test# nohup sleep 10 & [2] 52439 ...
0
votes
0answers
17 views

How do I change my bash prompt to say the user I'm logged in as + my current directory? [duplicate]

What I mean is, right now my bash prompt looks like this: http://puu.sh/2UH1K.png I want it instead to say: {username} @ {current directory} (EG: root@/home/public_html/ ~)
0
votes
2answers
84 views

Sending special bash characters to a custom function

I read this great article on customizing the bash prompt: http://blog.superuser.com/2011/09/21/customizing-your-bash-command-prompt/ I also read about using 256 colors in bash: ...
2
votes
2answers
247 views

How to prevent zsh from showing environment variable name instead of current path?

I'm using "oh-my-zsh". I have an environment variable set to the current path, let's say: PROJECT=/home/me/projects/client/project and my zsh prompt looks like this: me@my-machine:~PROJECT$ ...
3
votes
1answer
987 views

Ubuntu 12.10 - How to change login screen to allow login to active directory domain

So, I have an Ubuntu 12.10 machine that has been joined to an active directory domain. However, when the machine turns on and I am presented with a login screen, I cant just type DOMAIN\user. All ...
6
votes
1answer
3k views

What is rootfs# and what can you do with it?

I have been dropped to a [rootfs /]# prompt many times when booting my distro failed. Usually I found I couldn't fix the problem with the limited commands available, so I would use any spare Live CD I ...
0
votes
1answer
442 views

Check if Files are Being Written To

Note: I've read the other question, but I need it differently. I'm working on my NAS, which also works as a storing device for my PVR. Now I want to change my shell prompt on the NAS whenever the PVR ...
1
vote
1answer
289 views

How to configure message on Remote Desktop access on Windows Server 2008 R2?

I have Windows Server 2008 R2. When a user is logged in and another user (with same credentials) tries to logon, I need to display a prompt with the message that another user is already logged in. If ...
0
votes
1answer
261 views

%1 in registry not being expanded in Windows 8

I have made a tool that adds some things to the context menu when right clicking a directory, inside the 'empty space' of a directory, or a drive. I have used this extensively in Windows XP, Vista, ...
1
vote
1answer
656 views

how to connect to secured wireless network connection in cmd in windows?

I program on C#, I don't want to use P/invoke, so I will use shell, so I need to connect to a secured wireless network connection on the CMD in windows, I know how to connect to a wireless network but ...
1
vote
1answer
62 views

Arbitrary code execution in tcsh prompt?

I'd like to customize my prompt to include the output of an arbitrary command, like you can do in bash (e.g., I'd like to cat a file and have its (one-word) contents appear in the prompt, or show the ...
2
votes
1answer
412 views

How to change the prompt of mc's subshell

I often use the subshell of mc. So I want the promt of mc-subsell to be different form the primary shell. Say, how can I change the sub-prompt like this: mc:$Current_dir$ many thanks
0
votes
1answer
239 views

Zsh customized prompt and updating variable's value

I would like to use the value of a variable set in my zsh shell to display in my prompt line. For example, let's say export TOKEN='hello' is set in my session. At that time, I load my prompt which ...
1
vote
1answer
60 views

unable to ssh on the command prompt

I have a problem with ssh on my ubuntu laptop, but after several effort I was able to get the putty work by making changes to the proxy type: I check the http and set the proxyhost name to ...
2
votes
1answer
110 views

Line wrapping issues in bash/php

I am writing a program that prints colored lines, and the more I do with it the more I find myself working around line wrapping issues that come up. It is a sort of terminal written in php, here is ...
0
votes
2answers
165 views

rename command windows to rename *.a.b to *.b [duplicate]

Possible Duplicate: windows rename command to rename file.a.b to file.b I have a few folders with hundreds of html files. The file name should have been .htm but it is .asp.htm and it does ...
1
vote
3answers
83 views

Is it possible to have environment variables in the path of the working directory : PS1?

I am on Lubuntu and I am using bash. My PS1 (in .bashrc) is : PS1="\w> " I like it because I need to paste the working directory all the time. The problem is that the path is always very long ...
1
vote
1answer
112 views

How can I have the return string of a program appear in my tcsh prompt?

I am using vcprompt to provide me with the git branch and dirtiness status. It returns it as a string. How can I catch this string in my tcsh prompt setting? I guess I need to put the call to ...
2
votes
1answer
365 views

How do you assign a shortcut key to Command Prompts so that it can open multiple windows?

On every Windows machine that I've ever owned (or used at work), I've assigned a Shortcut key to open a Command Prompt window on entering the shortcut key. If you enter this shortcut key several ...
3
votes
1answer
193 views

Why my Network Connection Properties don't show UAC prompt & settings change everytime I connect?

I can't set my network connection interface properties, UAC prompt doesn't appear anymore for only this adapter interface. I disable Netbios but each time I connect it changes back to default. Earlier ...
1
vote
1answer
91 views

NAS Drive Not Correctly Reporting Files, Directories from a DOS/Command prompt in WIN7

I have an NAS drive on my network, and it works just fine. I can access every file on it with WIN7. However, when I go to a command prompt and perform a directory command, the command reports 0 ...
0
votes
1answer
620 views

How do I change the blinking underline cursor (_) color in Command Prompt?

If I change the screen text color to red, the blinking underline cursor (_) stays white.
5
votes
1answer
452 views

Right and fast way to test git directory and git branch?

While trying to set up my new fish shell prompt, I ended up testing ways to get the branch name and also testing if I was on a git repository. I have found (1) git rev-parse --abbrev-ref HEAD, (2) git ...
1
vote
1answer
81 views

Custom prompt doesn't work on Mac's terminal

I like to use a custom prompt (current path in blue) on my unix machine: export PS1='\[\e[0;34m\]\w \$\[\e[m\] ' But when I try to use it on Mac's terminal it doesn't work: it fails to detect the ...