A command-line interface (or CLI) is a method of interacting with your OS or software by typing commands on your keyboard.

learn more… | top users | synonyms (3)

0
votes
0answers
11 views

Remove grep's line number output in Redhat 5.9

I havent used RH 5.9 until now. I started with 6 but we have some 5.9 servers. The syntax with 5.9 is a bit different with some things. grep for example will output a number line before the actual ...
-1
votes
2answers
20 views

Find folders called SS, return size of folder

I am able to find all folders called "SS" (superseded) in a hierarchy and list out the location of each one. I have been using this code to pipe out the list. DIR /AD /B "SS" /S > SS_Folder_List.txt ...
0
votes
0answers
21 views

Windows cmd output redirection to standard input ( >&0 )

From a question on Stackoverflow, i've being testing with redirection from/to stdin stream. And this tests, trying to send data to the stdin stream, just to see what happens, end with an apparently ...
0
votes
0answers
2 views

Encode degree sign in vnc url scheme

I would like to open ScreenSharing.app from terminal like this : open vnc://$user:$pwd@$host This works fine, but I've a password with a "°" sign in there, and it's not working with this one. How ...
0
votes
1answer
32 views

Can I run a script every time the cmd program is run?

I want to show unicode character on my windows console. For this I changed the cmd's font to lucida console and I'm using chcp 65001 before every session I will open a program which will display ...
1
vote
3answers
32 views

How to effecentily rename a file in linux CLI by inserting new characters into the existing name?

Let's say I have a long file name such as longfilename. And for the sake of brevity, let's say that "longfilename" is actually much more longer, and more complex to type. Anyway, I want to rename it ...
6
votes
1answer
28 views

Is there a windows command-line alternative to unix's expect?

The bash/unix/linux tool expect can be used to automate/script console/tty programs in posix. An example is in http://stackoverflow.com/questions/4780893/ I've read there are bindings for ...
0
votes
1answer
8 views

Launch TortoiseSVN command for more multiple paths simultaneously

Situation I have a development project with the following repository structure: root/ + core/ + branches/ + tags/ + trunk/ + module/ + branches/ + tags/ + ...
0
votes
0answers
14 views

Why is “setx” not setting my path properly?

So I use this command: setx path "C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x 86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Java\jdk1.6.0_45\bin;C:\Win ...
0
votes
1answer
8 views

Windows 7 path not being set

I've read an followed all stack overflow, super user, etc. instructions multiple times, and my GUI window shows the path to be what I want, i.e., python27. However the cmd prompt shows several lines ...
1
vote
0answers
18 views

Windows Script Issue - Works line by line, not as run.cmd

The following lines of code work perfectly for what I am wanting to do if I copy/past into CMD/DOS one line at a time. However, if I put all the code into a run.cmd file and run the file, it appears ...
-1
votes
0answers
26 views

output.txt stops at 7,407KB

I found the following code online to use the CMD Line to combine all .txt files in a directory. The code creates a dirfiles.txt of the text files in the dir and then uses that to combine them 1 at a ...
0
votes
0answers
15 views

Changing 'syskey' password using Command-Line

As far as we know, We can change windows account's passwords using the below command in CMD windows (With a user that have administrator privilege) : net user TheUserName NewPassword Now, I want to ...
0
votes
0answers
13 views

Fast MP4 thumbnails

I have worked with FFmpeg, AtomicParsley and Mp4Box in the past to set MP4 thumbnails. However today I realized that MediaMonkey can also set them, and fast. The previous three programs listed all ...
0
votes
1answer
8 views

Tar withour directory structure and exclude folders

I am trying to create a tar file to exclude certain folders and then I want to have a tar file without the parent directory structure. I am able to exclude folders, but when I extract I see path from ...
0
votes
1answer
38 views

What is the meaning of this message in bash commandline?

I did gnome-open document.pdf on my bash shell and I getting this following message :- " ** (evince:11832): WARNING **: Error setting file metadata: No such file or directory" What is ...
0
votes
1answer
194 views

How to find/detect hidden files inside JPEG file?

I'm trying to find out what is a good way to detect whether an image file has other files hidden inside it? related link: Hide files inside of JPEG images at lifehacker
-1
votes
0answers
15 views

Python coded batch files

I know this is more suited to Stack Overflow but I'm not allowed to ask any questions there so here seemed like the next best thing. I'm creating a batch file for the first time and don't understand ...
1
vote
1answer
16 views

Is is possible to insert comments into a long command with escaped newlines?

I have a long command line, longer than but similar to the example below. I would like to add comments to individual argument in the sense of what is shown here: ssh -N \ -R :10000:10.0.0.1:80 \ ...
1
vote
1answer
22 views

What does WindowsXP SetMonTime.exe command do?

I noticed on my Windows XP SP3 workstation a command runs at startup as follows: C:\WINDOWS\system32\SetMonTime 600 I searched on the net and there is absolutely no reference to what it is and what ...
-1
votes
1answer
33 views

How to rename 7-Zip split files as name_00N.zip instead of name.zip.00N

On Windows, when I create .zip split files with volumes less than 20MB with a command like: 7z a name.zip files\* -v20M I get one or more files named name.zip.001, name.zip.002, etc. I need to ...
0
votes
1answer
35 views

.bat file to rename files (not bulk)

I take pictures of airplanes. When i put them on the computer they are named DCS_5678 (or anotrher number :p ) The way i catalogue my pictures is by renaming them as followed: ...
0
votes
3answers
43 views

How to find location of Applications listed in Add/Remove Programs of the Control Panel (Windows)

I am cleaning up a Windows 8 computer and have a program which cannot be uninstalled from the control panel Add/Remove programs section. Is there a way to easily find the locations of the programs ...
1
vote
0answers
9 views

php is not recognized as an internal or external command although it is available in commandline

this is somewhat of a tricky question when it comes to "where should I place it?", but I assume a general problem behind it, which is why I am putting it on superUser. I have a Doctrine script which ...
0
votes
1answer
15 views

'dd' command on Damn Small Linux?

I looked at the package list of DSL, and I don't see 'dd'. For example I would like to restore /dev/sdb from an .img file like so: dd bs=1M if=/home/myname/image.img of=/dev/sdb What command do I ...
0
votes
2answers
41 views

any way to run grep backwards, i.e. from the end of the file and up?

i have a 70G+ log file, and i'd like the most recent entries (apache log append new items at the end) that match a pattern. i can either: run grep | tail or run tail | grep option 1 will take ...
0
votes
0answers
7 views

How to open a file inside an XP Mode application from the command line

There is a shortcut in Start menu for a Windows XP Mode application. It has a Target like this: %SystemRoot%\system32\rundll32.exe %SystemRoot%\system32\VMCPropertyHandler.dll,LaunchVMSal "Windows ...
0
votes
1answer
26 views

Command line: Copy files listed with DIR /S to another folder

I'm trying to list all macro enabled files in my D: and copy them to a "newfolder" I created in the same drive, this is what I've tried and the error message: D:\>copy dir \*.xlsm/S newfolder\ The ...
1
vote
2answers
47 views

BAT file: Delete all files in directory older than 5 days except one file

I have a directory with many temp files. All files older than 5 days can be deleted except one file 'DoNotDelete.txt'. Therefore I should add an extra argument to my current script: forfiles /p ...
-1
votes
0answers
22 views

windows 8.1 does not boot after CHKDSK command

I had problem with Windows 8.1 high Disk usage so in order to solve , searched forums. A voted answer suggested to use CHKDSK command as follow: run command prompt and as administrator type ...
-1
votes
0answers
21 views

Need Text Line Editing Commands for windows

I asked something similar to be do with batch but it didn't work out well (as i need batch only solution). Some suggested SED , TR etc. So i hope to get a solution with these 3rd party exe's using ...
-1
votes
1answer
22 views

How to collect specific data? [on hold]

I have a text file like this abcdxxxxx abcdxxxxx 1234567 - abcxxxx from that file I want to separate only the strings with abcd as header part. Help me please. Thank you.
0
votes
0answers
11 views

Display image with fit to window and single instance mode

I’ve got a stream of images (jpg) and I want to display each one as soon as it arrives. So, basically, here is what I want: There is currently some image on the screen; a new image arrives, my ...
0
votes
0answers
12 views

An omnipotent Command Line? [closed]

So far it seems like Command Line (CL) is an omnipotent tool. But I was wondering, are there any tasks that one can do only through Graphical User Interface (GUI), and at the same time can't be ...
0
votes
2answers
29 views

Is there any reason this cronjob would fail in cron, but not on the command line?

I have written a little one liner that will email me when a list of files changes - I used sha512 to generate a list of hashes and then periodically check that those hashes still match. */5 * * ...
0
votes
1answer
35 views

How can i make changes to this file Encoding?

I have these 3 files 21/08/2014 07:15 PM 122 Tw2AWK.csv 21/08/2014 07:15 PM 125 Tw2Notepad.csv 21/08/2014 07:15 PM 119 Tw2REPL.csv C:\myfiles>file ...
0
votes
1answer
21 views

Start a program after waiting for user input

I'm writing a .bat file, and I'd like to start a program after waiting for the user to press any key. I tried the command below, but I got and "Invalid syntax" error: timeout /t -1 foo.exe
0
votes
2answers
26 views

Perform scp-then-ssh in one connection

Both at work and at home I tend to do the following very often: $ scp "SomeScriptIJustCreatedOrModified.sh" some-server: $ ssh some-server ./SomeScriptIJustCreatedOrModified.sh arguments And ...
1
vote
2answers
11 views

How can I reconnect to a dropped gutil ssh session?

I have installed Matlab on a (remote) linux (debian) machine. I run Matlab by tunnelling in from my Osx machine via ssh and then using the command line interface. To run a Matlab script I run ...
0
votes
1answer
33 views

Windows Batch - Move files to folder parent & Remove empty subfolders

I found several such questions and tried to adapt the answers to my needs but no luck so far. Im trying to create two context menu entries in Windows 7 that would: Move all files from ...
0
votes
0answers
35 views

Automatic Onedrive setup at login

Now here's a fun ol' question. Basically we now have Office 365 and want a students home area to also be their Onedrive. We have managed to set this up for multiple users on a single machine, and it ...
0
votes
0answers
23 views

Trying to delete locked files

I'm new to coding and the mac OS and I'm trying to delete a locked file under application support but I'm not sure what code I need to put into terminal in order to do that. If somebody could help, ...
0
votes
1answer
26 views

How do I use Adobe Acrobat's “combine supported files in Acrobat” feature from the command line?

The Windows version of Adobe Acrobat (not Adobe Reader) has a feature where I can select a group of files and hit "Combine supported files in Acrobat" in the context menu and it will present me with a ...
0
votes
1answer
22 views

Assigning a Windows environment variable to a batch variable?

I can't seem to assign an environment variable to another one inside a batch script. For example, this will work: set varA=C:\this\is\a\directory and I can happily use find /I "MyString" %varA% ...
0
votes
0answers
15 views

Prefix commands in batch

I am using a batch file to run Grunt with some console customization. I was wondering if there is a way to add grunt and a space to the commands I enter into the console. Here is my batch file: CD ...
0
votes
2answers
32 views

CMD doesn't update environment variables even when restarting the OS

I've been setup my variables for my development environment using the Windows cmd, but it works well only the first time I set them with the System>Advanced>Env Vars dialog. I just restart cmd and it ...
-3
votes
0answers
23 views

When deleting file I get this msg [duplicate]

by Erase Command : C:\important Folders\pentest\bluetooth\blue-smash\vcards>erase "c:\important Fol ders\pentest\bluetooth\blue-smash\vcards\AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ...
1
vote
0answers
17 views

Is there a simple command line UPnP AV Control Point?

I am looking to implement a Glorified Internet Picture Frame at work. The goal is to show a 4k picture on our wonderful 4k television, with all pixels intact, from a network-accessible source which is ...
0
votes
1answer
23 views

After each command tmux prints: ps1_update: command not found

On Linux Ubuntu 11.04, after each command (cd, ls, vim...) successful or not, tmux prints out as a last line ps1_update: command not found. Is there any config option I am missing? Thank you very ...
0
votes
2answers
45 views

How do I find and kill a php loop (process)?

I have a php script that I have been developing which calls an external api within a loop. It is being tested on a VPS which is running LAMP on Debian. I noticed this morning that the api was not ...