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
1 view

I can't find how to clear led alarm in juniper

How can I clear led alarm in my juniper after problem has been resolved? I find the command "clear led alarm", but in my CLI I have only: root@EX2200-2501-03> clear l ^ ...
0
votes
0answers
12 views

Can't get symbolic links to work with the mklink command in cmd

I'm trying to create a symbolic link in cmd (yes, I have admin privileges) like this: mklink /D "G:\test" "C:\test" The command runs without issue: "Symbolic link created for G:\test <==> ...
0
votes
0answers
7 views

Time Machine external backup hard drive not showing on other pc

My hard drive doesn't show in other computers. How can I solve that problem, preferably in terminal.
1
vote
1answer
14 views

How to download files matching a particular pattern from ftp command line

I am accessing ftp through command line and trying to delete all the files matching particular pattern. But seems it does literal match than regex match. Can somebody suggest anyway that we can do ...
2
votes
0answers
15 views

du is giving me inconsistent results depending on argument order

I'm running Darwin (Mac OS X 10.11.2 - the current version of El Capitan) on my Mac Book Pro, but this is about a standard command line utility, du. I am getting inconsistent results from du: 21:19 ...
0
votes
0answers
30 views

Copy Files based on different file name

I would like to keep two different folders in sync. I was thinking of going with Robocopy with the /XO flag, however, the files are renamed when moved to the second folder and cannot be compared. I ...
1
vote
1answer
23 views

Windows cmd copy directories and content recursively if the files do not exist

The question fits in the title: I want to copy from local storage to a network storage directories and thier contant, but only the new or updated files with no prompt. My idea would be to use xcopy ...
0
votes
0answers
10 views

Is there a way to apply preferences in firefox without restarting it

Instead of using manually about:config I want to be able to change firefox settings from command line (in linux). For this the only way I know is to change some lines in user.js (just as in my answer ...
0
votes
2answers
19 views

RDP logout using bat file

Using Windows 7. When I RDP to a PC I'd like to be able to logout of the session without the screen reverting to a Ctrl+Alt+Del Login screen. The PC's in question are kiosks running Chrome in full ...
0
votes
1answer
21 views

sed align all lines to last line in a file Bash script

I have a files with below lines Dev_Campaign_1873.rpm Dev_Campaign_1987.rpm Dev_Campaign_9876.rpm http://52.30.241.107:8081/artifactory/api/storage/adifact Trying to get the output to a file as ...
0
votes
0answers
13 views

Time command execution with real time updates

Generally I use time myCommand to know how long does it take to run myCommand. I was wondering if there's a command that also shows how long it has been running so far on real time. Something like: $ ...
3
votes
0answers
39 views

Understanding wifi scan results

I'm working on a script to tell how secure a wifi connection is. Unfortunately I've become stuck pretty early trying to decode the output of the scan - can anyone help me understand what this is ...
1
vote
1answer
29 views

How to construct a proper command string in bash? Quoting issues, I think

I have a very newbie question, I am sure. I am trying to construct a script to edit the internal EXIF timestamps of a number of JPG photo files, using the commandline exiftool utility. My actual ...
0
votes
1answer
25 views

files dissapear when I run mv command

I use the below command to move files: mv *.gz directoryname but directory name has spell mistake and the file with directory name has been generated with unknown format. And I lost my file. How ...
0
votes
0answers
7 views

mitmproxy ignore all websocket connections

At the moment, mitmproxy doesn't seem to be able to handle websocket connections. How can I just pass these on so that clients can still connect with a websocket server? Here's my current command: ...
1
vote
1answer
18 views

Terminal: cp -r with directories with same name and different case

I'm trying to copy around ~250Gb from one drive to another. Catch is that the destination drive is formatted in NTFS or FAT or something and isn't case-sensitive, and I've got folders I need to copy ...
1
vote
0answers
11 views

How to disable or enable policy setting using CMD or using registry editor?

I want to known how to enable or disable group policy setting via cmd or registry editor.
0
votes
1answer
14 views

Cannot launch app minimized with /minimized

For whatever reason, AMD Gaming Evolved (Raptr) is dying randomly (ticket has been submitted). I made a task schedule that automatically launches Raptr every hour with this action: "C:\Program Files ...
0
votes
1answer
17 views

Run several processes in cmd window with ConEmu

I'm using ConEmu with Windows 8.1. I need to write a BAT-file, which will run ConEmu and open several cmd-shell tabs, running a process in each of it. Right now my file looks like this: start ...
0
votes
0answers
19 views

Display Toolbar in Command prompt Windows XP

in windows 98 there was an option in properties to display a toolbar for command prompt.When using windows XP i cant find this option. I need that toolbar because it allowed me to copy text from ...
0
votes
1answer
32 views

Open a movie with VLC from command line via SSH

I have a linux machine connected to the tv and being the lazy person I am, I would like to sit on my laptop, SSH into the linux machine and play a movie in full screen. I've tried running the command: ...
0
votes
1answer
42 views

How to know if someone else is logged to a remote shared PC?

In the company I work for, there are some shared PCs where people can log to remotely. It's boring to ask first who is logged in before login to it yourself, just not to disrupt others work. With ...
1
vote
1answer
18 views

Looping through wildcard folders and executing multiple commands in Bash

I have a set of commands to change the contents of files called MenuSettings which work fine when directed to a folder. cd /Applications/snowflake/table-updater/Testing/Applications/Salford_100 sed ...
0
votes
2answers
30 views

Copying and renaming of .xlsm files using batch

Its glad to be here and i am really excited n new to batch scripting. I have been using a batch containing below for copying an excel from one folder to another { @echo off cp -r ...
0
votes
0answers
17 views

When drive mapped on a windows machine from remotely by using “net use” command, shows unavailable status

I am trying to map a share directory on remote windows machine by executing "net use" command with admin credentials, however the directory is getting mapped and showing status as unavailable. ...
0
votes
0answers
31 views

Keyboard/mouse layout changed and weird commands in logs. Was I hacked? (OSX)

Edit: Looks like my colleagues had some fun. False alarm. My work computer is running OSX Yosemite 10.10.1. I noticed my keyboard layout was changed to Dvorak and my mouse direction reversed when ...
0
votes
2answers
28 views

How to pass parameter in linux command at the end of the line

I would like to pass a parameter at the end of the line while I am giving a command in terminal. So I would like something like the example below find /path/to/directory -type f -exec grep -irl ...
0
votes
2answers
54 views

Running a command as an administrator with Runas.exe [duplicate]

I've read several threads about using the runas.exe command to start an elevated process. However, when I type try to use the command runas.exe /user:BruceWayne\Administrator cmd.exe, the Command ...
0
votes
0answers
14 views

Command prompt “emulator” not searching PATH

I've made a cmd file to run at the school computers for things like Remote Desktop, instead of creating a new file just to type mstsc. The school computers do not allow you to open the command prompt, ...
0
votes
3answers
36 views

Batch file to run programs as admin - error 740

I am working on a small batch script that elevates basic windows programs to run as administrator. All of the functions work fine but I have ran into a problem when trying to run "regedit.exe". When ...
1
vote
1answer
28 views

Execute an SSH command with the Apache2 www-data user

I'm working on a virtual machine project where I use two servers, let's call them server A and server B, both with Ubuntu 14.04 LTS installed. Server A runs web server Apache2 with a website where ...
0
votes
0answers
23 views

From command line how do I change password [duplicate]

HP 110 desktop with win 8.1 where owner of standalone workstation has forgotten password. I have hacked into cmd prompt but don't know how to change password of account that has administrator ...
0
votes
1answer
24 views

How to overwrite an echo/printf line with another one? (Making it start at the center of the screen)

I want to write a script which outputs sentences I choose. I want them to appear in the center of the screen: output the first one, and then make the second one appear over the first. Here's my code: ...
3
votes
1answer
19 views

How to prevent opening same program on terminal server by the “same user” with command prompt?

I have several users that use Remote Desktop App (Server 2008) and when they open the .BAT file I have created, it opens up two programs...however, I need to prevent the same program (in this case ...
2
votes
1answer
45 views

Batch Script to Bulk Rename Files - Strip off Parenthesis and all Characters between

I wish to rename a group of files in a particular folder in such a way that everything between and including the parenthesis is erased. For example a file with the name of: "78 Tax Tips for ...
0
votes
0answers
16 views

Composer not working on command prompt Windows 7

I installed composer via composer windows installer and it installed to the path C:\ProgramData\ComposerSetup. The composer.phar file is in the bin folder in the directory. ...
0
votes
0answers
25 views

Autorun a bat file after a predefined inactive period

Is there a way to auto run the following command after a predefined inactive time? manage-bde -lock G: This DOS command activates the bit lock on windows on a removable G drive. I want preferably ...
0
votes
1answer
17 views

Alias command from terminal that opens a new terminal on a specific folder

I have this command already working in my .bash_profile: alias mysite='cd /Applications/sites/mysite;pwd; php artisan serve --port=9000 | open http://localhost:9000 | open -a Finder ./' So it: ...
0
votes
0answers
16 views

change letter directory for boot drive CMD

I some how messed up my boot directory. Can some one please explain to me in lay terms how to reset the root directory for my boot drive using CMD in boot up of windows 10. I have been finding info on ...
0
votes
0answers
20 views

How to extract PPmD archive data in Ubuntu?

So I have a file called ppmdData with no extension, then when I use the file command on it, it says it is a PPMD archive data. When I run 7z x secret, I get an unsupported method error. Can anyone ...
0
votes
1answer
20 views

How to run a js file from windows terminal?

In order to have the measurements displayed of a photocell linked to an Arduino on the terminal, Iam trying to execute a node.js server. It's from a tutorial made by Adil Moujahid I tried to follow ...
1
vote
4answers
67 views

Linux - “grep” from certain lines to the end of file

I have a text file similar to this: line 1 line 2A line 3 line 4A line 5 I want to "grep" from "line 2A" to the end of file, something like this cat file.txt|some_grep "line 2A" Also, I want to ...
0
votes
1answer
28 views

How do I execute commands on files in multiple folders?

I'm trying to figure out a way to execute commands on multiple files that exist in multiple folders. From what I understand, a for loop is the best way to do this in CMD (I'm using Windows.) I'm ...
0
votes
0answers
27 views

Why won't `date` accept it's own default output?

On my system right now by default date outputs: $ date Fri 29 Jan 22:04:26 GMT 2016 However if I try to feed dates of this format back into date it results in "invalid date": $ date -d "$(date)" ...
0
votes
1answer
30 views

How do I find keyloggers and other hidden biles/processes from the command line in windows 8.1? [closed]

I have noticed a great number of system "Glitches" as of late. Recently while poking around explorer, i believe in my system32 dir, i noticed that every time I entered a subdirectory and existing to ...
1
vote
1answer
17 views

Run Atom using a bat file after changing directory

I have writen in my bat file cmd /k cd /d"C:\Users\amanz\Desktop\Introduction - Computing\Java files" call atomer.bat right now, it just seems to change the directory and stops right there. It ...
0
votes
1answer
23 views

piping command output to text files not working

Trying to use CMD to print the output of an executable to a file. The name of the program is adb (in my path). When called without arguments it prints the help text. I can't seem to capture it. adb ...
2
votes
1answer
33 views

Batch command delete from list of files from multiple computers

Currently I use a poor piece of programming where I delete multiple files on multiple PC's. What I would like to do is have a file with the names of the PC's (PC.txt) and a file (filedel.txt) with ...
0
votes
2answers
16 views

Tftp put linux one line

I have been following the answer provided in this link : Put file with tftp client in Linux However, I've tried all of the commands listed and always get this response. usage: tftp host-name [port] ...
0
votes
1answer
42 views

How can I tell bash top stop echoing text whenever I press any key?

I'm writing a custom startup command for gnome-terminal, and my intention is to display a welcome message every time I launch it. The message displays correctly, I coded it in order to make the ...