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)

1
vote
2answers
37 views

CMD record of no reply from ping command

Im writing a script to ping WAPs and Switches within a school and everything on it is running great aside from it will not pipe no responses into a .txt because I have added | FIND "TTL=" This is ...
1
vote
0answers
43 views

allow sudo user to execute multiple commands for only ONE file

I'm trying to allow only one user to be able to use only 'cat,head,tail' on some of the log files. What is the exact syntax to use here. I tried user ALL /bin/cat /var/log/maillog Which works ...
1
vote
0answers
24 views

How to set up a multi-user text mode in Debian wheezy 7.6?

I'd like to set up one of the available runlevels to work as a 'multi-user text mode' runlevel. Such mode available e.g. on CentOS. Another example of what I need would be what you get when you add ...
0
votes
0answers
24 views

Change graphic driver from command line

I'm having trouble with my Ubuntu 14.04 install. I'm on Apple Macbook Pro (Retina) and I had a problem where the computer was unrresponsive after resuming from suspend. I went to this page (scroll ...
0
votes
1answer
43 views

Administrator user receive Access Denied and Need Permission

I want to move a file that is named resmon.exe from C:\Windows\System32 to D:\. While I logged with an Administrator user, but I can't move it and I receive something like Access-Denied! As you see ...
0
votes
2answers
88 views

Make “System” process not modifiable from Task Manager like it is the case in Windows 8

FYI : I have Windows-7 Ultimate Ver 6.1 Service-Pack 1. There is a tools in the Windows-7 that called Resource Monitor . You can find it in C:\Windows\System32 directory or you also can simply run it ...
3
votes
1answer
88 views

Does Windows 8.1 prevent defragmentation from a SSD even in the event of running by mistake defrag on command prompt?

Hope you can me with this. I am concerned about a possible defragmentation on my SSD. I have a laptop running Windows 8.1 preinstalled and further equipped with a SSD. Windows 8.1 has detected the ...
-1
votes
0answers
20 views

Looking for a Command-line Portable ssh server (reverse connect) [on hold]

I have been searching recently for a command-line server for remote administration on Windows. I have also used ncat, which got the job done but unfortunately it is flagged by antiviruses. I needed a ...
0
votes
2answers
50 views

generate a list of devices installed in a PC through command line

I want to generate a complete list of devices and drivers installed in a PC which includes the serial number or id of the device through the command line driverquery /v /fo csv > drvlist.csv i ...
1
vote
1answer
21 views

Alternative to “fc -s” in zsh?

In bash, I had a handy alias: alias r="fc -s" Which just repeated last command. Same as !!. I am now used to it (muscle memory), but I can't seem to figure out how to recreate the alias. fc doesn't ...
0
votes
0answers
22 views

How can I start a batch script before open some type of file?

I'm writing some custom lock file system for my company. I want to start my lock_engine.bat before open some type of file. for example here my bat: @ECHO OFF set FILENAME=%~nx1 echo. is locking ...
-1
votes
0answers
35 views

Windows 8.1: The User Profile Service service failed to sign-in

I was using my computer this morning and everything was working normally, then I shut it down and I then after a while, I came back and booted up the computer and after typing in my password, the ...
0
votes
1answer
47 views

What is the difference between copy and paste a file using command line terminal and GUI copy paste?

What is the difference between copy and paste a file using command line terminal and GUI copy paste ? Which one is fast ? I think both are same because of same program will execute in background . ...
0
votes
1answer
33 views

Bash script via ssh does not have $PATH

I'm trying to run bash script via ssh. To do this I run command: ssh me@server 'bash -s ' < script.sh The problem is that when I run script like this I don't have my $PATH variable (i.e. if I ...
0
votes
0answers
17 views

Zpaq does not accept option “method”

I am trying to run the command: box:~/experiment# zpaq a out out.m4v -method 5 This should compress out.m4v to the file out using the method 5 but instead I get the error. -method: No such file ...
0
votes
1answer
31 views

sed: What does exit code 2 mean?

Case I am trying to replace all occurrences of <value>*</value> into <value>file:\\</value> in a designated file test.txt. I work on Windows and use sed I have installed with ...
1
vote
2answers
44 views

CMD delete specific files and log all output

Hi guys ive written a script for a school im working at to automatically mount a folder as drive X: and then to go into drive X and recursively scan all folders and sub folders for .bat .cmd .exe and ...
1
vote
1answer
24 views

Use 7z to backup each sub-directory to a separate file

My file structure is: c:\csdata\folder1 c:\csdata\folder2 c:\csdata\folder3 etc I'm trying to use 7z to backup all folders in csdata to their own archive to a temp folder (C:\butemp). Here' what I ...
1
vote
1answer
10 views

Add text via command line inkscape

I'm attempting to write a script that adds text to an svg image at a certain location. I'm aware that Inkscape has a very robust command interface but there doesn't seem to be much in the way of ...
0
votes
0answers
24 views

Replace “open command window here” to open git sh.exe bash

Is there a way to replace the default option in windows context menu to open command window in the current directory to open git's sh.exe bash in the current directory?
0
votes
1answer
20 views

How to access Java JARs through CLASSPATH environment variable on Windows 7

I know there is this article on JAR files on Linux but the solution involves some Linux specific commands I don't know, and ultimately I'd like to understand if I can access my JAR (and JARs it ...
0
votes
1answer
27 views

How do I get Google search request completion suggestions from console?

When one starts typing a search request on Google search page, Google shows a dropdown with some popular completion suggestions. There are often useful or funny things there. How do I get that list ...
0
votes
2answers
17 views

Is it possible to launch Firefox with a set of add-ons using command line?

I'm looking for a way to launch Firefox with a set of specified add-ons using command line. E.g. $ firefox --plugin-list=/home/user/addons/quickjava-2.0.4-fx.xpi,\ ...
-2
votes
0answers
7 views

Command Line Interface in Data Studio warehouse [duplicate]

@call wh executeProcessInstance is not working inside a batch file? How to make it use the set of wh commands as batch script ,in which path of SQW the batch file has to set. I am using windows in ...
0
votes
0answers
13 views

System & Security Messages

I'm currently setting up computers and have been requested to disable the System & Security messages (the little white flag next to the time (bottom right)). Doing this manually for every computer ...
0
votes
1answer
32 views

how to find all files under directory different directories

How can you find files name 'xyz' under directories name 'abc'? something like this....but its not working. find . -type d -name 'abc' -exec find {} -type f -name 'xyz' \; find . -not -path 'abc' ...
0
votes
0answers
10 views

Search in multiple text files for lines that start With a string and show next a date (non determined) in ubuntu terminal

I'm looking for a date (not specified) with the format "DD-MM-YYYY" or "DD/MM/YYYY" that starts with at the beginning of the line with another string. inside some txt files, and assign it to a to ...
6
votes
2answers
129 views

What does combining compression methods in 7z actually do?

The 7z command-line tool lets you specify multiple compression methods, e.g.: # 7-zip archive type, strongest (9) compression, methods PPMd, BCJ2, LZMA2 $ 7z a -t7z -mx=9 -m0=PPMd -m1=BCJ2 -m2=LZMA2 ...
0
votes
1answer
63 views

Windows Batch File (WMI) - taskkill process based on memory usage

Is there a way using WMIC, bat files, or powershell, to kill a task with a particular task name if the amount of virtual memory the process is using is above a certain limit? Specifically I want to ...
0
votes
1answer
49 views

defrag command line in Windows 7

I'm trying to consolidate my system partition volume by running defrag in a command prompt in command line recovery mode. This is the command I'm trying to have executed: defrag C: /X /H /U After I ...
0
votes
0answers
27 views

Navigating explorer.exe through command line

I am trying to write a program which can make navigation to a particular file easier. I am using windows 7, if I write the command explorer.exe c: in the command prompt it opens c drive, but ...
0
votes
1answer
49 views

How do I capture what I see in tail?

Tail seems to parse TTY commands. When commands use ^M to erase the line & redraw the line in stdout, for example an animated ASCII progress bar. When I tail a file where this is happening, I see ...
1
vote
2answers
121 views

bat file behaves differently when run from windows scheduler

I have a .bat file S:\BACKUP_db\copytofileserver.bat, which takes some files and zip them to the network drive. Its first command is to delete the old backup at specific network path, then pack the ...
-1
votes
0answers
21 views

How to find what a CMD written in my registry/PC?

I am using Windows 8 and recently I installed a little trial program to help me out in a game. The thing is that at start up, the program uses a CMD box to write some stuff in my registry (I suppose) ...
0
votes
1answer
47 views

DOS command to remove file_001.* copies, but only if file.* exists

Didn't find the answer, hope it has not already been answered here. I have a tree of directories containing files and sometime a copy at the same location. This copy is identified by some string, ...
0
votes
0answers
44 views

How to bypass problems when trying to spoof a webcam in Linux

I am wanting to spoof my webcam, so I can eventually insert the method in to a pen-testing book that I am writing. This could possibly lead me into to building a program that is better than ...
1
vote
0answers
45 views

What does “<>” exactly mean in “echo <> temp.txt”? [duplicate]

Non existing file $ ls file_not_exists.txt ls: cannot access file_not_exists.txt: No such file or directory $ echo <> file_not_exists.txt $ ls file_not_exists.txt file_not_exists.txt $ cat ...
0
votes
4answers
37 views

How to batch compress images with Imagemagick or similar command or program in Linux

I recently learned about the convert command from imagemagick which I have used to compress many pictures that I have for personal use, and for a blog that I have. In my experience, Imagemagick is the ...
0
votes
0answers
19 views

why do I need “-t” option with Tectia sshg3 client and pbrun command

I'm using tectia ssh client for windows (from the command line) sshg3.exe to log in and run a command to get power broker user/account: sshg3 [options...] profile | [user@] host [#port] [command] ...
3
votes
1answer
51 views

Using grep on URLs not working

I've got a couple of text files (a.txt and b.txt) containing a bunch of URLs, each on a separate line. Think of these files as blacklists. I want to sanitize my c.txt file, scrubbing it of any of the ...
0
votes
1answer
23 views

Is it possible to disable chmod/chown from sudoers for these specific directories /usr and /etc?

There has been two occasions where I have accidentally chmod-ized 777 the whole direcotry of /etc and it has forced me to come to the decision that I'd be better off to do fresh installation of OS ...
0
votes
1answer
29 views

Run a block conditionally on grep output

I've found a number of solutions to this problem, but unfortunately none of them seem to work on my windows box. I'm running a FOR loop in a batch file to loop through a number of text files. For ...
0
votes
0answers
12 views

Does robocopy /Z not reliably work when aborting the process?

I am copying some large files from a slow NAS to a local machine. The command line is quite simple robocopy /Z P:/Data D:/Data There are some very large files and I would like to power off the ...
0
votes
1answer
60 views

Windows batch file - How to pipe output to text file and then open the text file?

I have a weird problem where I have a simple batch file that runs another batch file, outputs what is on the screen to a log file, and then attempts to open the log file. The problem is, the log file ...
0
votes
2answers
38 views

How to redirect the output of a FTP recursive listing to a local file with Windows 7 FTP client?

When using the DOS command FTP in Windows 7, I can use this FTP command to list recursively all files of the remote directory: ftp> ls -R I cannot get the output of ls -R to a local file, FTP ...
1
vote
1answer
41 views

Convert code to Linux kernel style

I used to know a command to convert code to Linux kernel style with proper brackets and spacing and whatnot. It used indent, but I don't remember the rest. Can someone help?
0
votes
0answers
20 views

Windows 7 batch command-line to save as .pdf file for word 2013 .docx file

I need a fastest way to save my report .docx file to .pdf when never I have a new updated versin to send to others. I'm tired of using the mouse clicking File - Save as - Browse for location Is ...
0
votes
1answer
29 views

Repeat on user press, open up terminal, close terminal?

I am making a program and would like it to loop if an user presses a key. I also want to know if the bash file can automatically open a command terminal if it is not running from one to achieve the ...
0
votes
2answers
28 views

Allow permission to custom bash command without allowing permission to underlying command

We have an automatic script on one of our servers, run by observing-user. It needs to tell another script, run by primary-user, to update a log file. The code for this is sudo kill -UPDATE_LOG pid ...
1
vote
2answers
41 views

OS X Terminal wildcard doesn't work for some paths

Okay, this is weird, hopefully someone here can explain what is happening. I am using OS X 10.9.4 and I want to list files in a directory (and filter them using *) I want to look for zip files in ...