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)

2
votes
1answer
27 views

Batch script is adding funky characters when a command gets executed

I have this script and when I try to execute it, a bunch of random symbols show up in the command prompt: cd "X:\folder\subfolder" svn update pause I have no idea what those symbols are called or ...
0
votes
0answers
12 views

Java server started from putty with screen cmd gets unresponsive over night

I have a java server that I start on a centos box via putty. I use the screen command like this: screen -S name java -cp desktop-1.0.jar com.aperico.game.skellitown.desktop.DataServer & Ctrl + A ...
0
votes
1answer
39 views

Symlinks over SSH: Why am I unable to access files/directories in parent directory if traversal to current directory was through a symlink?

NOTE: This behaviour is observed via remote access using SSH. I noticed that if I have moved into a directory using a symlink that I cannot use the .. entry in the directory listing to move back into ...
1
vote
0answers
35 views

Delete all files and folders in a specific directory older than 1 day except one folder with bat file using forfiles

Hello I want to delete all folders, subfolders and files older than 1 day in a specific directory and leave one folder untouched with the forfiles like the command below: forfiles /p ...
-2
votes
2answers
42 views

How can you remove the need to type the full name of an .exe in cmd to run it? [duplicate]

OK, so you can run something like start iexplore in cmd and have it run internet explorer. Is there a way to allow the same sort of behavior with something like, javac.exe (or some other utility ...
-3
votes
1answer
24 views

What is command prompt's console name? [closed]

Is there a "console" in command prompt? There are consoles in browsers, but what about command prompt? I tried console.log, but it didn't understand what "console" meant. I have Windows 7 ...
0
votes
3answers
36 views

Is it possible to cd with command line through a folder to a shortcut

I have a shortcut to a folder on my Desktop (as I don't store files directly on it). Is it possible to get to the directory the shortcut points to when I am in the desktop on command line? I would ...
2
votes
0answers
22 views

Program options have sometime one or two dashes (-foo, --foo) [duplicate]

In gcc every command line arguments have one dash. In some other tools, options that are not a single character have a two dashes prefix. Why is there two standards, which one is the most common? ...
1
vote
2answers
29 views

understanding tilda,slash command in bash

I have confusion in the meaning of command ~/ if x is a directory, then what is the meaning of ~/x in bash. Please guide me
0
votes
1answer
17 views

How to delete the profile AD attribute using dsmod or similar?

As part of a user management batch script, I need to delete the profile value from an AD User object. The syntax I'm using is as follows: dsquery user -name TEST | dsmod user -profile "" It ...
2
votes
1answer
39 views

Function using watch on command with command line arguments

I want to run watch on a command which uses an optional command line argument, like this: function queue() { watch -n 10 'squeue -p ${1:-default} -o "%.8i" ' } but the command-line argument ...
1
vote
1answer
31 views

Is there a way to get the current volume output from command-line on Windows?

I'm looking for the current actual output levels, not what the volume is set to. Ideally this would be a command-line tool, but if there's so way I could generate one myself with APIs, that would ...
0
votes
2answers
35 views

Passing variables with space to the command line as admin

strong textscript.bat placed on the sendTo folder(file setted running as admin from properties -> advanced -> run as admin) @echo off cd %~dp1 echo %~dp1 echo "%~1" pause if i pass a parameters ...
0
votes
1answer
9 views

find certain item of a file by using command line tool in windows 7

recently I used findstr "ItemThatIsBeeingSearchedFor" C:\Windows\System32\drivers\etc\hosts > J:\documents\HostsFile\ResultOfSearch.txt in order to output a certain entry of the hosts file into ...
9
votes
3answers
450 views

How to use “<<” in batch file or command prompt?

I know what >> is used for, it write all messages into a file instead of screen. And I guess << do reverse, I try it and receive a message: << was unexpected at this time. Please ...
0
votes
0answers
18 views

can't see the output of python in cmd and desktop

I've been messing around with python 3 for a while with notepad and cmd everything worked fine up until today when I saved a python file to my desktop. when I clicked on the file it said something ...
0
votes
1answer
73 views

Detailed steps for creating a junction for winsxs folder in Windows 7 [closed]

I was searching for a list of detailed steps in Windows 7 for moving the winsxs folder to my data HDD drive and creating a junction in the SSD with mklink /J oldpath newpath I could only find ...
0
votes
0answers
31 views

call environment path commands from powershell

I can call any executable included in the environmental variable path from a command prompt by simply calling its name. However when i try to do the same from Power-shell I get an exception the ...
0
votes
1answer
13 views

Can I add one permission to many files at the same time?

I am using Git bash on a Windows 7 system. I have a directory with 20 files in it. They have various permissions, but they are all missing w for the group. I want them all to have w for the group ...
0
votes
1answer
27 views

Run Excel macros in multiple files and paths

I need assistance to enhance the method I've implemented. Here are the details. I have multiple excel spreadsheets (xls, originally written on Excel 2007 or 2010) that have 3 main macros that I want ...
-1
votes
3answers
74 views

cmd-Difference between quit and exit

If you type telnet in cmd, you will have to type quit to get out of there, but if you type wmic, both quit and exit will work. Welcome to Microsoft Telnet Client Escape Character is 'CTRL+]' ...
3
votes
2answers
31 views

Get the first few characters without the extension of the file in DOS

My files are AAAAAAA-01.pdf , BBBBBB-02.pdf, CCCCCCC-03.pdf I was able to generate an excel list of file name in the folder without the extension using this command below: for %%i in (*.pdf) do @echo ...
1
vote
0answers
16 views

getmac ERROR: Invalid class

When trying to run getmac from the Windows Command Prompt, I am getting ERROR: Invalid class. As a Windows utility, I'm not entirely sure why it's broken or how to go about fixing it. Can anyone ...
0
votes
1answer
17 views

How to get files created in last 5 days and form a list for informatica source

Find all the files of the format yyyymmdd_test.txt created in last 5 days. The file may not be available or created for a day in between as well. i.e. for 5th june if following are the available ...
0
votes
2answers
41 views

Windows Batch commands to copy file to multiple subdirectories

I have 2 files file1.txt and file2.txt that I want to copy into a folder structure like this parentfolder subfolder1 destinationfolder subfolder2 destinationfolder ...
1
vote
1answer
65 views

Can't run batch file in Server 2012

This site rocks! I am trying to run a simple .bat file on Server 2012 that will ping another server, filter out all the lines except one, and then write to a file for later use (I then want that file ...
1
vote
1answer
47 views

Batch appending groups of images using imagemagick

I want to use ImageMagick’s convert script to append two images horizontally. This is easily done with convert +append input1.jpg input2.jpg output.jpg. I have a directory of jpeg files however. ...
0
votes
2answers
35 views

How to disable displaying previously viewed code/output from command line in linux?

For example, if I view a piece of doc called a.txt in linux. Here is my prompt: user $ less a.txt This is a document named a.txt, here is what happened when I press 'q' user $ Small document ...
0
votes
1answer
32 views

How to do this in all subdirectories in parent folder using batch script?

i am total noob for scripting so i need small help with this batch script... Here is script : @ECHO OFF SetLocal EnableDelayedExpansion SET par2_path="C:\PAR2\phpar2.exe" SET par2_redundancy=10 ...
0
votes
1answer
3 views

How to trim and join several parts of an audio file using crossfades?

I want to keep several sections of an audio file, merged together, but without any discontinuities ("clicks") at the join points. There's a SoX command that does this (http://superuser.com/a/677351), ...
0
votes
1answer
22 views

Start VLC command line but not successful stream

Hi i used this code worked with my old tv-tuner (it connected direct with my PC and i used tv digital for streaming. Start "" "C:\Program Files (x86)\VideoLAN\VLC\vlc" ...
0
votes
0answers
12 views

Deploying Win 7 prompts for password change

So I am deploying Windows 7 through WDS. I have made a golden image, launched sysprep jumped back into audit mode and deleted the default User account so that it is clean. Then generalised it and ...
1
vote
0answers
23 views

How can I flash the screen to indicate a CMD process has completed?

I'm running a process on a remote Windows 8.1 PC through CMD, and have a Remote Desktop window open to monitor it. That window is usually in the background. How can I have CMD display a visual cue ...
0
votes
1answer
41 views

Unicode and MS DOS sessions

Considering UTF-8 + Windows CMD nightmare... After reading this question, are these solutions only partial ? Is there a way to set globally the character set/encoding in a cmd environment? It seems ...
1
vote
1answer
102 views

Chmod 777 in Windows 7

I use Window 7 and I need to create a new .dat file in the principal partition C:. But I can't do that because I don't have all the permissions. I run the cmd as administrator and I try again but the ...
2
votes
1answer
29 views

Putty - excute remote script and leave console open

I'm running the following command in windows console: "C:\Putty\putty.exe" -load "mySavedSession1" -m C:\somePath\localScript.txt -v localScript.txt content: /somePath/update-new-ver.sh the ...
1
vote
2answers
37 views

Linux: w (who) command top-like monitor

Is there a monitor like top but for the w (who) command? It's ok if it's a package that needs to be installed. Any Linux flavor. I'd like to have a simple CLI real-time monitor of users logged into ...
1
vote
1answer
27 views

Aliasing piping operations in bash

I frequently will do something like grep -R foo . at the root of a project. It’s helpful but the results get diluted by the inclusion of binary. temp, and test files that I don’t care about. So I end ...
2
votes
2answers
53 views

Can I adjust command line output to make columns vertically align?

The first image is Mac terminal output, these columns are vertically aligned. This is Windows cmder output, in a mess. Can I adjust it?
1
vote
2answers
62 views

I want to delete a certain number of oldest files in a folder with .cmd

I have a backup folder where are for everyday day a Backup-folder (like 15.06.; 14.06; 13.06.....) containing the backup files. I now want a to delete (in .cmd file) An amount of x oldest folders ...
0
votes
2answers
34 views

Batch check for *.reg but only if = 1 file

I am looking to basically check if a batch file is present by wildcard *.reg, but I would like it to error if there is more than 1 .reg file. This is the code I have been trying to use, but my batch ...
0
votes
1answer
26 views

how can I extract entries out of the HOSTS file with the command line tool in Windows 7?

It concerns the HOSTS file, Windows 7 Ultimate 64bit. I want all entries/lines with a certain name in it to be written in a .txt file. how can I do this in the command line tool?
1
vote
0answers
14 views

schtask Activate task when specific user login

I want to create a batch file that creates a scheduled task to run a .cmd file when a specific user logons. So far I've come up with this: @echo off schtasks /CREATE /RU %username% /TN "TaskName" /TR ...
0
votes
1answer
34 views

Piping a line of the file read with while read loop

I am trying to read each line of the file and then assign some parts of it to variables. A line itself is read as a variable so I need to process a variable input say for cat which seems to be ...
0
votes
2answers
37 views

Pinging My phone [closed]

I have recently lost my phone and I really need to find it I was searching on how to ping it for its location but I still haven't found any useful information. Is it possible I could ping it from ...
2
votes
1answer
39 views

Get URL from HTML file using FindStr

I'd like to preface this by saying that I'm very new to the command prompt and I've been only using it for some WGET and YOUTUBE-DL, and that I'm on a Windows 8 PC. I'd like to get a bunch of links ...
1
vote
2answers
15 views

download file in Linux console from server that use redirection

First of all, I just don't want to change name of curl's output file. The great example is http://www.getsoloapp.com/download. When you do: curl http://www.getsoloapp.com/download you download html. ...
-2
votes
1answer
20 views

How to connect remote machine using CLI

I want to connect one of my Windows/Linux machines remotely via CLI(command-line interface). I can login into the remote machine with team viewer(GUI). Is there any software that help me to create a ...
0
votes
0answers
24 views

DEVCON stopped working - permissions issue on Windows 7 32 bit?

I have used DEVCON for many years as part of scheduled tasks in a Windows 7 32 bit system. It verifies that certain USB devices are connected and properly enumerated. In the last week, it has ...
1
vote
1answer
33 views

How to set path for sudo commands

If I issue sudo my-command how does Linux look for that my-command? The my-command is in my PATH. I can invoke it without any problem. However, when I invoke it with sudo, I'll get command not ...