The command-prompt tag has no wiki summary.
-1
votes
1answer
16 views
Ubuntu server trouble with command-line prompts
I bought VPS with ubuntu 12.04 server minimal. When I logged in, there is very simple command line by default.
How install full-function command-line with prompt and etc?
6
votes
2answers
635 views
How to display the first N lines of a command output in Windows? (the equivalent of Unix command “head”)
I need to display the first N lines of the output of a command (any command).
In other words, I esentially want an equivalent of the Unix "head" command.
After discovering a few tricks from some other ...
0
votes
1answer
32 views
rdiff-backup -r is not working with QT
I am using rdiff-backup to get previous version of the files from server with this command:
rdiff-backup --no-hard-links --force -r "DATE" "USERNAME@IP::SERVER PATH" "CLIENT PATH"
I can do this ...
2
votes
2answers
1k views
Windows Server 2012 GUI went missing after removing Active Directory
I'm sorry but i'm stuck in figuring out a problem i'm facing here. I removed the AD feature from server manager and after rebooting, my server 2012 gui wasn't there anymore. There's only command ...
0
votes
1answer
147 views
How should I resolve “-bash: promptpath: command not found”?
My Turnkeylinux machine uses the following PS1 environment variable for bash prompt:
PS1="${debian_chroot:+($debian_chroot)}\[\033[01;33m\]\u@\h \[\033[01;34m\]$(promptpath)\[\033[00m\]\$"
I plugged ...
0
votes
1answer
65 views
VPN Server on Windows server 2003 with command
Is there any way to create VPN Server using command line on Windows server 2003 ?
9
votes
4answers
776 views
How can I tell if Windows is running in Safe Mode?
I have a Windows server that will sometimes reboot into safe mode after updates. I'm working on that issue but what I'd really like to know is how can I check to see if Windows is running in safe mode ...
-3
votes
2answers
140 views
Scroll up while in screen
When I use screen command, I am not able to use page-up and only 1 page is displayed on the screen.
If I do not use "screen" command, I can scroll up a few pages.
1) How do I enable scrolling while ...
0
votes
1answer
167 views
Issue with Prompts when SSH from Tmux to Remote Host
I have a Tmux session running locally, in one of the panes I ssh to another host, however once the remote machine is logged in, the cursor is overwriting the command prompt. I think this is happening ...
0
votes
2answers
40 views
Is there a way to log commands that a user runs in Windows 7?
I manage a large enterprise environment, and while we try to advise users not to, there are inevitably users that need to have local admin access to their machines. The problem is that some of these ...
1
vote
2answers
89 views
How can I customize the command prompt when your effective gid does not match your uid?
We frequently sg to switch to a "shared" effective group. I want a visible reminder that we are not using our default group. Was thinking of having the bash prompt change color or display the ...
0
votes
1answer
64 views
Is it possible to launch the Windows command prompt from Management Console?
I've googled for this quite a bit - I have a custom MMC setup at work that gives me quick access to everything I need, including various web-based admin consoles. The one thing I can't seem to do is ...
0
votes
2answers
1k views
PSExec “access is denied” on WS '03?
I'm trying to execute commands to a remote server offsite and PSExec for some reason is not working.
C:\> psexec \\LOC-Server -u AdminUser -p AdminPW cmd
This won't even let me run command ...
3
votes
1answer
450 views
How to create a Windows 2008 Advanced Firewall rules group definition through the command prompt
Is there a way to create a group, or add to an existing group, to a rule in Windows Advanced Firewall (preferable through a command prompt or WSH script).
Edit:
1
vote
2answers
343 views
Disk Space discrepancy SMB vs command prompt
We have a Windows 2008 server core installation that has a 400GB disk attached to it. When viewing the free space of this disk via the command prompt it reports 35GB free. Computer management also ...
1
vote
2answers
163 views
Why does Windows command prompt stalls until a key is pressed when executing long batch files or programs
I've just had two occurrences of windows 7 stalling an execution until I hit enter on the command prompt/powershell. Afterward execution seems to continue as expected.
First was an batch file of copy ...
2
votes
1answer
77 views
I'm having trouble finding these commands to run in a batch file?
I want a batch file to pull information from the first line of a text file (notepad), use that information to add information to a DNS server, and then delete it. I'm thinking if I create a loop, I ...
4
votes
2answers
2k views
Environment Variables in PATH Not Expanded for non-Admin Command Prompt?
I have a Windows 7 machine which, when Command Prompt is run by a normal user, fails to expand environment variables in the %PATH%. If command prompt is instead run as administrator (right click, Run ...
1
vote
2answers
700 views
Specifying date in robocopy destination folder
I would like to specify the date via CLI when running robocopy so that the destination folder includes the date.
robocopy C:\folder\ Z:\folder_DATE /E /ZB /COPYALL /NP /V /LOG:F:\backup_log.txt
...
3
votes
3answers
481 views
Open Elevated “Administrator:” cmd prompt instead of “cmd prompt (Running as Administrator)”
If you open a command prompt with a runas command, you will see a window that shows
(Running as some_user)
In the title bar, but if you right click on cmd.exe and choose Run as Administrator you ...
0
votes
1answer
158 views
How to re-save web.config using command prompt
I'm using a simple cmd batch file to deploy my Asp.net MVC web application to server network share.
The problem I'm having is that my DLLs can't be simply replaced by new files since existing ones ...
0
votes
3answers
511 views
Change data path for PostgreSQL
I run PostgreSQL as a Service.
In Administration - Services, I can see the following path
"C:\Program Files\PostgreSQL\8.4.3-3.1C\bin\pg_ctl.exe" runservice -w -N "pgsql-8.4.3-3.1C" -D "C:\Program ...
3
votes
2answers
230 views
screen not dropping down a line?
Minor annoyance with the Screen linux utility; when connected to a Linux (Fedora) box from my Mac (using Terminal), when I'm writing out a long command, usually when the text reaches the edge of the ...
5
votes
2answers
573 views
Terminal only shows $?
I recently set up a new user using "adduser username" on my server and noticed that when I login I get:
$
Also, with my new user there is no folder highlighting, or tab completion.
However when I ...
2
votes
2answers
257 views
Know of a trick to sustain quiet ssh connections from firewall auto-disconnects?
Our enterprise firewall is configured to disconnect ssh connections after 30 minutes of of inactivity. Sometimes, I need to perform an operation on a server that requires a sustained connection ...
0
votes
2answers
370 views
wsname logfile to a filename using mac address or hostname
I am using wsname to rename workstations as they are deployed.
i have a \logfile switch which changes the default location of the wsname logfile to a folder on the C drive.
I want to change this to a ...
0
votes
1answer
253 views
Unlock Windows XP for Command Prompt (and other admin feature)
I have the admin access to a Win XP machine, I want to setup that as a public kiosk and so I go to group policy to disable all Command Prompt, Control panel etc.
The problem is, even I have admin ...
1
vote
1answer
217 views
Change Command Prompt Hostname
How can I change the hostname that is in the command prompt.
I have
[root@domU-12-31-19-93-37-71 ~]# ls
Can I change to
[root@jasonvaritek ~]# ls
1
vote
1answer
321 views
Command Prompt - see who is on network [closed]
Using Command Prompt... can you see all of the users who are logged on a network?
6
votes
5answers
2k views
Different color prompts for different machines when using terminal/ssh?
I have 5 machines I constantly ssh into to do work. Its getting increasingly frustrating when I am issuing wrong commands on wrong boxes. Luckily I havent done anything bad yet. I wanted to know if ...
0
votes
1answer
81 views
Show command prompt on reboot
In one of my linux machines, when i give reboot command at the shell command prompt then press enter, i get another command prompt and then the system reboots.
$reboot
$
But in one of my office ...
0
votes
2answers
736 views
Escape TAB in cmd.exe?
I need to pass a tab character into a program from the command-line on Windows.
eg: grep "foo<TAB>bar" filename
However, cmd.exe's auto-completion gets in the way.
On Unix, you can hit Ctrl-V ...
5
votes
2answers
1k views
Weird symbols always appearing in command line (putty / zsh)
I've had this problem for a while and I hope it's a pretty easy fix:
In various places, I'll see weird symbols appearing in the command line. Such as 'â'.
It seems like it's replacing some other ...
0
votes
2answers
98 views
How do I set the PATH environment variable to point to JRE version 1.5
Hi there I have a program that requires me to set the PATH
environment variable to point to JRE version 1.5 as I need to access the program via a command prompt. So any ideas on how to do that?
0
votes
3answers
662 views
How to convert a elevated command prompt to a regular command prompt?
I have UAC disabled on my system, and all command prompts start as elevated ("Administrator: ..."). Even if I start cmd.exe from the Start Menu, it's still elevated.
Is there a way to run a ...
0
votes
1answer
412 views
Telnet session - can't run commands
I have 2 VMs running CentOS 5.0 and I configured telnet on both of them.
I can telnet from one to another... but when I type ls or cd at the prompt I get a message like this
-bash: ls: command not ...
2
votes
3answers
324 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)")\] ...
2
votes
2answers
174 views
Ubuntu server: lost prompt on monitor
I am running Ubuntu 9.04 server edition. I have a monitor plugged into the box for occasional admin tasks. I pulled out a USB disk (without unmounting) and the screen is now full with this message:
...
5
votes
11answers
38k views
Windows command prompt: how to get the count of all files in current directory?
What command would you use in cmd.exe to find the number of files in the current directory?
Is there a powershell option here?
Update: I was hoping to avoid dir, as I know there are 10,000+ files in ...
2
votes
2answers
1k views
Batch file to call multiple batch files and keep going after errors
I have a batch file like this, the issue that I have is that if the first batch file fails, the second one never gets started, how can I get them to both keep going?
@echo off
MapNetworkDrive_J.cmd
...
2
votes
9answers
3k views
Command window missing default 8x12 font
Installation:
Windows Server 2008 R2
Remote Desktop Service role
When I logon locally my command window (cmd.exe) displays with default font that is 8x12. But when I logon remotely and open ...
1
vote
3answers
767 views
How to add Command Prompt Here to a folder context menu in Windows 2003?
I am doing quite a bit of work at the command line and recently started having to do it on a Windows 2003 box.
I can't figure out how to add a Command Prompt Here to a folder context menu. And ...
2
votes
4answers
361 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 ...
0
votes
2answers
3k views
Automatically capture the output of poolmon
I'm hunting of a memory pool leak using poolmon. In the KB article, they explain how to capture the output manually using cut&paste. Isn't there a way to automate this?
Since the tool doesn't ...
