The command-line tag has no wiki summary.
1
vote
2answers
30 views
Command to restart the command promp itself (in Windows 7)?
Whenever I change environment variable(in Windows 7) I have to exit and start the command prompt. This is necessary or the changes are not reflected.
Is there any command (or simple method) to restart ...
2
votes
2answers
21 views
Basic command line tutorials for Windows and *NIX
I am writing how tos for Plone CMS ( http://plone.org ). Often how tos begin with "you need to know the basics of command line use"
Do you know any basic tutorials for
Windows command line (cd, ...
0
votes
1answer
17 views
Why does rsync skip a sub-folder named “core”?
I'm using the following command to synch files from one folder to another on my local OSX system:
rsync -avC ./src ~/Sites
Inside of ./src there are several sub-folders:
./src/assets
./src/core
...
2
votes
1answer
24 views
Sorting files based on a timestamp within the file
I have a bunch of files which contain an ascii header with a time stamp WITHIN the file, followed by a large chunck of binary data. I would like to list the files sorted by this time stamp, at the ...
1
vote
0answers
16 views
Linux CLI Connect Manager?
I am looking for a connection manager for Linux that runs in the CLI. To be clear, by connection manager I mean a program that allows you to create, save, and quickly launch remote connections. ...
1
vote
2answers
70 views
What is the benefit of copy over xcopy on the command line?
I know that xcopy has more options however is there some benefit to using copy rather than xcopy?
0
votes
1answer
12 views
iptables Administration in Redhat
Normally (that is, on Debianish systems), when you have to add a firewall rule uou have to put a defenition in the iptables.d/ directory and restart iptables. I can easily write a script to do this on ...
1
vote
1answer
26 views
How do I permantly set the command-prompt codepage in Windows 7?
I would like to set permantly in DOS the codepage.
chcp 1252
How can I store the result of that command?
1
vote
2answers
61 views
How to “fresh-clean” OS on the server?
Is there any fast and reliable way to remove everything not related to OS from the server?
In removing everything I mean:
Completely delete all packages and it's dependencies
Completely delete all ...
0
votes
0answers
19 views
How to fix “Client for Microsoft Networks” and “File and Printer Sharing For Microsoft Networks” via command line?
C:\>net view
System error 1060 has occurred.
The specified service does not exist as an installed service.
What service doesn't exist?
Does "Client for Microsoft Networks" and "File and ...
1
vote
2answers
86 views
equivalent “echo on” for linux?
How can I get to stdout all commands that run in bash script?
That is output must contain commands output AND commands themselves.
I found
#!/bin/bash -x
but this is not exactly the same because ...
1
vote
1answer
50 views
How to give and pass input between separate programs?
There's so many individual, useful programs out there who's source code isn't available, some of which would integrate beautifully with each other! The only problem is I don't know how to enable ...
0
votes
1answer
38 views
Java programs wont run in Ubuntu
I have downloaded the java jdk in the terminal window of Ubunutu. I am trying to trace the number of system calls a No-op java program runs for my computer science class. the program looks like so:
...
2
votes
3answers
58 views
Linux command line argument variations
New to Linux and have a few questions about command line arguments:
Let's say there a command-line tool called widget that takes an argument called fizz. I've seen all different types of arguments:
...
0
votes
0answers
26 views
Is there a way to add a “fade to black” effect to a video, from the command line?
I have a script to encode videos (using mencoder), but is there a way to add a simple "fade out/in to black" from the command line, preferably free (as in open source).
It could be either on Windows ...
0
votes
0answers
9 views
Get a List of All Valid Fields in Google CL Picasa
I want to get the url to the images on Picasa such as:
https://lh4.googleusercontent.com/-rU35o4QG9eU/Tyrl8TnswSI/AAAAAAAADus/VCI1SAKi1tc/s800/1027-skype-ingilizce-alistirma.jpg
I use the ...
1
vote
3answers
38 views
Grep fail to ouptut to a pipe?
I'm having problems with grep filtering of make output. In particular,
make target 2>&1 | grep -E --color=never "^make.*"
works as expected, but the following will print no output to the ...
1
vote
0answers
33 views
How to retrieve the list of computer shutdown timing for Windows OS?
Is it possible to retrieve the list of shutdown timing (regardless if it is shut down by the computer or by the user) for a Windows OS XP and up via command prompt or software or anything?
For ...
2
votes
1answer
30 views
Command line syntax for launching a softphone
I was advised to use the following command, from the Windows command line, in order to get my softphone to dial a number:
@="\"C:\\Program Files\\qutecom\\qutecom.exe\" \"-c\" \"call\\%1\""
...
0
votes
1answer
21 views
Path Variables Inconsistent in Control Panel vs cmd.exe
First is what the Environment Variables window under System Properties tells me is under "Path".
When I do echo %PATH% on cmd.exe I get the second. All my node.js install isn't working :\
...
3
votes
1answer
40 views
Launching specific sections of the Control Panel from the command line
I am writing a personal application using AutoHotkey to speed up common tasks. One thing I do often is change my desktop background to solid white (for screenshots I post on Super User, as you may ...
0
votes
1answer
27 views
Linux command line expansion, reuse values
I'm trying to tftp a bunch of files
tftp -m binary 192.168.1.2 -c put file1 target/file1
I've been trying to use cmd line expansion such as
tftp -m binary 192.168.1.2 -c put `ls *` target/`ls *`
...
2
votes
1answer
21 views
command-line utility to record from microphone
I am looking for command-line utility that monitors the microphone, and if you start to speak, writes the file. Recording period should be adjusted.
Solution is:
sox -t alsa default recording.wav ...
2
votes
1answer
54 views
how do I make a batch file that executes this command
I am trying to make a batch file that executes the following DOS command:
exiftool "-FileName<CreateDate" -d "%Y%m%d_%H%M%S.%%e" "C:\Users\Tom\Desktop\belvedere"
(FYI, exiftool.exe is a script ...
1
vote
4answers
103 views
How is mail actually sent when I use the Linux “mail” command?
What email account is used to send an email when using the mail command from the linux terminal as in:
echo "Body of email" | mail -s "Subject" abc@def.com
If the emails are not being sent, does ...
0
votes
0answers
18 views
Simple tool to download a whole S3 bucket from the command line
Is there a simple tool to download a whole S3 bucket from the command line? I know about s3cmd and s3sync, none of them work (I think due to not being updated to Ruby 1.9, but I'm not sure, are they ...
0
votes
2answers
64 views
xcopy files created this month in PowerShell
I wrote this code to copy files, what I need is a way to make it copy just the files created this month or created last 31 days?
$a = "L:\EndMonths\"
$a +=get-date -format MMMM
xcopy "L:\28*.zip" $a ...
6
votes
1answer
77 views
Take frame from video with command-line utility in Windows
I want to take a frame of a video at a certain percentage of time (for example, 25%, 50% and 75%) and save it somewhere.
I need this to be done from the command-line so I can automate it. Also, this ...
4
votes
3answers
131 views
windows cmd with too long prompt
When I go to a deep directory in MS Windows cmd, the prompt is too long since it show the full name of the working directory.
How to make it hide the directory name or at least part of it?
0
votes
1answer
51 views
Get the most common appearing lines from file in Linux
I have a text file that has various words per line.
How can I find the 12 most frequent appearing lines in the file and display them?
I am not very good with scripting commands.
If I could get the ...
0
votes
3answers
40 views
Excluding files of particular extension using DIR command on windows command line
if i want to see e.g. files of a particular extension only using dir listing, i can do that using the command:
DIR *.txt
And it shows all files with .txt extension.
Now i want to know is there ...
1
vote
2answers
46 views
What is the difference between dd's direct and fsync options?
I would like to copy an image to a USB thumb drive. As I would like to get "real" speeds, and don't want to wait ages for the device to sync after copying the image, I would like to know which ...
0
votes
1answer
28 views
cmd cannot find message text for 0x26e
:: try to rename the old file
C:\parentfolder\fix move "program.exe" "program_old.exe"
The system cannot find message text for message number 0x2 in the message file or System.
:: try a directory ...
1
vote
1answer
64 views
List only files of a particular extension with the DIR command
On Windows, we can see directory content using the DIR command.
I want to know, how can one see the list of only those files which have particular extension, e.g I want to see list of all .txt ...
1
vote
1answer
52 views
Detecting currently active window
The linux commandline tool wmctrl allows you to list all windows, or all desktops, among other things. In the desktop-listing mode, the current desktop is marked with an asterisk.
I need a tool that ...
0
votes
0answers
49 views
How can I put a newline in my zsh prompt without causing terminal redraw issues?
I'm trying to fix a minor (but annoying) issue with my zsh prompt. The problem I'm seeing is that when I'm using a terminal in a GUI OS environment (for example, Terminal.app or iTerm 2 on OS X ...
3
votes
1answer
80 views
How do I open a second Skype instance with a Batch file?
I want to launch a 2nd Skype instance from a Batch file.
I have done that successfully with the run window:
"C:\Program Files (x86)\Skype\Phone\skype.exe" /secondary
But for the life of me I ...
2
votes
2answers
79 views
Powershell Access to the path denied
I'm sure this has been asked a million times, but I can't figure out why I can't run this simple command in powershell:
PS> new-item -path c:\users\me\desktop\testfolder -name (get-date).txt ...
0
votes
0answers
58 views
Creating a new Outlook email from a text file
I'd like to be able to create a new email from a text file (e.g. a .html file or a text file containing the full email text including headers), and either open it as a draft or send it immediately ...
1
vote
2answers
40 views
Copy files to directory when I don't know entire path
I have an application that generates a directory with some files in it when it is opened. I would like to access some files in this directory to export them and also import into this directory. The ...
0
votes
1answer
48 views
How to make for /f deal with space in the file path?
The command for /f %%f in (c:\path\list.txt) do echo %%f gets confused if path contains spaces.
Typically, I'd just put quotes around the path (in ("c:\path with spaces\list.txt") do), but in this ...
-1
votes
1answer
29 views
wmic answear to javascript [closed]
I am having some problems in wmic tool.
I need to use it a java script to run WShell.run("wmic process where name="ASDF.exe" get CommandLine,Processid,Caption,CSName and I need that the result will ...
1
vote
0answers
65 views
Zyxel router custom DNS names or storing configuration to survive reboots
On my Zyxel P-870HN-51b - although I reckon the same solution may then also apply to other router models - I would like to add custom host and domain names local to my network. I.e. I don't want to ...
1
vote
0answers
67 views
How to use Win 7 command line with folder with “My” prefix [closed]
Possible Duplicate:
Display “My Documents”/“My Videos”/etc. without “My” prefix in Windows 7
What is the "right" way to get rid of the "My" prefix in ...
3
votes
3answers
108 views
FTP Server via command-line
Does anyone know of a FTP Server that can be run via the command line?
Ideally I want a self contained server.exe file (.dll's/configs are fine) than I can set up, start/stop via the command line, ...
4
votes
3answers
86 views
What are some nice command line ways to inspect DLL/EXE details?
With most Windows executables (DLL, EXE...), version and other details can be viewed using "Details" tab in "Properties" (Alt+Enter).
I wonder: is there also a command-line way to do this? I'm ...
3
votes
1answer
73 views
Windows explorer sees different file name from cmd
I just got a new computer, and put my old hard drive (which contained Windows) in the new computer to keep my old files. I was successfully able to remove the Windows directory from this drive, but ...
4
votes
2answers
137 views
Open folder in Windows Explorer from Cmd
Say if I am navigating some folder in cmd such as E:\dir1\dir2
E:\dir1\dir2>
How can I open the folder quickly in Windows Explorer? Copying the whole path and pasting seems awkward.
There is ...
1
vote
1answer
52 views
Record all commands
I am learning ruby and following tutorials in a book. I want to record all the commands i enter in shell( I am using zsh) . How can I do that? I should be able to stop and start recording.
0
votes
2answers
59 views
Mac equivalent of `netstat -b -n`?
Is there an equivalent tool/shell command for Mac (preferably integrated with the OS) that has the functionality of the Windows command-line netstat -b -n? (displays active network connections, with ...