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
1answer
28 views

How to clear highlights in lnav

After highlight <regex>. I have no idea how to clear that highlight. With filter we could do a simple disable-filter <regex>
0
votes
0answers
46 views

General-purpose For-Loop Windows batch command with User Input

How can I use as "input" over each file in a directory using a for-loop as "output" in its subfolder? I think the answer of this question will be very helpful, so I will give general-purpose example: ...
0
votes
1answer
30 views

Append Text to all blank files in a folder

I have a folder containing blank files, all the files have a .BAK extension Now I have a batch script that needs to write arbitrary text top each of the blank files, and I am using the following: ...
0
votes
0answers
35 views

Is there an YAML equivalent for xmlstarlet on Linux?

Is there a CLI that runs on Linux for editing YAML? I'm looking for something like xmlstarlet, but for YAML instead of XML.
0
votes
0answers
25 views

Command-line-tool to edit pdf page-numbering

I work with pdf-books and would like edit them so that the pdf pages and the book pages match. I know adobe acrobat does it, but is there enything else preferably a command line tool?
1
vote
2answers
27 views

How can I get “find” output so that I can copy and paste it to other commands?

Is it possible to print find output paths in such a way that you can copy and paste them, they will already be properly escaped so that you can execute commands on that path? Usually I have to put ...
0
votes
0answers
20 views

Launch IE in Touch Mode from Command Line

I'm on Windows 8. How do I launch Internet Explorer in touch mode from the command line? I'm hoping for something like this: iexplore /TouchMode Please note, I want this to be a switch or something ...
0
votes
2answers
146 views

Bash script: Use variable in sed to delete all but the last “x” lines of a file

i'm using the following bash script to delete all but the last 'x' lines in a log file: #!/bin/bash # Script to write to the log file every minute and delete all but the last # set time in hours ...
0
votes
0answers
48 views

Invoking a local command on every successful connect when using ssh multiplexing?

I'd like to automatically run a command every time I successfully connect to a remote host via ssh. I can do this for the first connection to each host using the PermitLocalCommand yes and ...
0
votes
2answers
55 views

What Linux distribution to a server on an old PC

I have an old PC with 2G RAM, 30G SATA HDD with a pentium II processor. I wonder what Linux distro to make my own server ? This server will be used for: gcc/g++ with vim/emacs I don't want any GUI ...
0
votes
0answers
21 views

Windows 7 command promt number of buffers and buffer size

In Windows 7, the Command Prompt has two configuration options called Buffer Size and Number of Buffers found in the Options tab. Following these instructions, I've tweaked these two values to ...
0
votes
1answer
65 views

Redirect output to file, then write sentence with exit code to end of same file

I am looking to redirect all the output from a python script to output.out, then upon completion of the python script, write Exited with code: <EXIT CODE HERE> to the same file where <EXIT ...
0
votes
0answers
63 views

Installing Drivers from CMD in windows repair boot

I have just replaced my motherboard and windows is encountering a problem when booting. My PC will shut down and instantly restart when I hit the "Starting Windows" screen. I have done some ...
-2
votes
2answers
39 views

how do i create a user account in unix using CLI?

I am using Redhat and I want to make a user account using CLI. I am using this commands but I guess it's not working. # useradd smithj -c 'John Smith' -m # passwd smithj and the result should be ...
0
votes
2answers
115 views

How to enter safe-mode from command-line in Windows 8.1

I would like to enter safe-mode in the next booting but only using command-line. By using GUI, what I typically do is to run msconfig and choose safe-boot option in the menu. Without this GUI ...
1
vote
1answer
86 views

Internet Explorer: Set homepage for all users without GPO

I'm looking for a way to set the homepage of Internet Explorer (and possibly other browsers) for all Users through command line/Powershell, or any other method that doesn't use the domain policies ...
0
votes
0answers
21 views

Can I adding files and import comment to archive by a command line

I use below commend to add the file to the archiver and add data recovery recorder on linux os rar a -m0 -hp"$password" -v1073741824b -rr3 -ep1 test1.rar test If I want to add the comment from the ...
0
votes
2answers
67 views

What does mkdir -p create as the parent directory or way to see its effect?

I read from http://www.techonthenet.com/unix/basic/mkdir.php that the mkdir command "creates a single directories or multiple directories." and with option -p "If the parent directories don't exist, ...
1
vote
1answer
46 views

Unable to find source of environment variable

So I did the mistake of removing an earlier version of Vim manually on Windows without going through the "Uninstall Program" dialog. The result left me with the enviroment variables of "vim" and ...
1
vote
2answers
104 views

How do I “grep” output in Windows [duplicate]

Every answer I've found to get a video's duration with ffmpeg contains grep, which cmd doesn't natively have. I know there's a "Grep for windows" thing, but I'd rather use a function that comes with ...
0
votes
2answers
13 views

How To Search & Replace From a Word to another in The Same Line?

Like I said,, I want to search each line, from a word at the beginning of the line, To another word at the end ! For Example, let's say that I've a text file, that contains these lines :- 1.RA.xm: ...
0
votes
0answers
35 views

Windows open command window here doesn't load env. variables

In windows if I right click and select "Open command window here" in a particular folder it works exactly the same way as "Open terminal here" works in Linux. It was working find until I installed a ...
2
votes
1answer
46 views

ConEmu new tab instead of split

Is there a way to disable console splitting in ConEmu? Let's say I'm in ConEmu window. I do some stuff and decide to open another cmd tab. I input cmd inside current ConEmu window, click enter and ...
1
vote
2answers
168 views

HW/SW audit Anyone know how to get Belarc Advisor to run remotely via psexec?

Trying to do a quick hardware and software audit on my network. I have a remote system that I copied belarc advisor over to. I have pstools on my local system. I am using the command line: psexec ...
0
votes
0answers
42 views

How can I use the windows GUI to do the equivalent of linux touch on multiple files?

This is very similar to this question: Windows equivalent of the Linux command 'touch'? The difference is, I'd like to set the date modified to "now" from the GUI. The above question may ...
1
vote
1answer
42 views

Powershell script to open a number of files located inside subdirectories

How does one open (say, using notepad.exe) multiple files ending in _dc.txt, each one of which is located in a number of subdirectories of C:\Data\Test? My script below gets stuck on -Recurse, with ...
0
votes
0answers
22 views

List of subdirectories that contains a particular file name

I am wondering if i can do this in a single shell command. I am in home directory and want to find a list of subdirectories that contains a particular file. The file name and the depth is always ...
0
votes
1answer
47 views

Extract first variable from another variable

I have a .bat script that does some ping, nslookup and other commands on a list of hostnames. Somewhere down the line, I get a variable %FQDN%, which echoes out the fqdn of the remote machine, however ...
1
vote
0answers
22 views

Is there a command line tool to run carbonite's “back this up”?

Is there some way to say "Back this up" to Carbonite on the command line on Windows? I know I can do it through explorer and the right click window, but I'm bit of a scripting fiend. I'm only trying ...
0
votes
2answers
85 views

DOS Batch - Get current directory whilst in a for loop

I intend to write a little DOS batch that creates m3u files for a given subdirectory structure containing sound files. The m3u file shall have the name '[Parent Directory].m3u' (where [Parent ...
2
votes
1answer
67 views

How to diff the redirection of two commands in a shell script

in the command line I can diff the output of two commands with $ diff <(cmd1) <(cmd2) but if I put this in a shell script $ sh do_two_comands_diff.sh It does not work $ diff <(ls) ...
0
votes
0answers
25 views

Programs launched via CMD script freezes

I've been trying to start applications up with a CMD script on Windows 8.1. eg. Start "Outlook" "Outlook" Outlook 2013 launches fine however its slow and lagging. And freezes often. The applications ...
0
votes
3answers
154 views

Time Zone is getting different over ssh command & normal ssh

Whenever I run a date command over SSH the timezone shows different and if I login to server with SSH and if I run the same command it is completely different. Running command with SSH >ssh ...
0
votes
1answer
64 views

Run a command in a batch file on the system clock

I have two different connection for my internet connection. The first uses from 7am to 10pm. The second uses from 10 pm to 7 am the next day. And for each of the connections I've made a batch file ...
0
votes
1answer
67 views

Can't use the * with ImageMagick : I get “Invalid argument”

Using the example provided there : Combine multiple images using ImageMagick I type this in command line in windows 7 : convert -append a_*.jpg out.jpg This is the error message I get : ...
0
votes
0answers
19 views

Why am I getting conflicting results when checking Maven version in Windows PowerShell and cmd64 (Environment variables issue)

I'm looking at Maven for the first time, trying to get everything up and running. I've been going through the tutorials here and up until now everything has been going smoothly. I've added all the ...
0
votes
0answers
22 views

Location of windows command script in the pinned directory

I have a shortcut of type windows command script and a shortcut of type application. When I pin the shortcut of type application in the startmenu, a Icon is created for the same in the folder: ...
1
vote
1answer
49 views

How to make windows 8.1 command line save commands history?

Exist a way to automatically save command history on windows 8.1 command line and have it available after close and open the command line program?
0
votes
0answers
21 views

Command prompt freezes when I open mysql

I have searched the net and this site, but I haven't found a solution yet. I installed XAMPP, but this wasn't visible through the command prompt. I then installed 32-bit MySQL on my 64-bit machine ...
3
votes
1answer
500 views

How to write into a Log file from the batch file?

I have a batch file that triggers process in Access database. I'd like to write into a log file (just some *.txt file saved in the same folder) time when before the process started and after it was ...
0
votes
1answer
54 views

Does dd care when cloning from smaller hdd to bigger hdd?

Does DD care about hard drive size? I currently have a smaller 500GB HDD that i want cloned to a 1TB SSD. Will it clone without a problem relating to size? will there be non partitioned space? was ...
0
votes
0answers
151 views

Xcopy or Robocopy from Network folder to SharePoint(2013)

I am trying to copy files from a network folder to a SharePoint folder. I have read/write permissions to the SP folder and can manually upload documents to it. I was able to get the .bat to work 1 ...
-2
votes
2answers
44 views

What was the reasoning behind the lack of a right click in the Windows command prompt? [closed]

On *nix and OS X, windowed terminals support ctrl+v/ctrl+shift+v/cmd+v for paste, and right click past/copy. On windows however you need to right click the title bar and go into an edit sub menu. ...
2
votes
2answers
33 views

One-line code in bashrc to edit pdf

I would like to have a one-line code in bashrc, for removing the first page of a pdf. The command to be typed in the bash prompt could of the form: cut name.pdf This command should remove the ...
0
votes
1answer
50 views

How to disable User Management for Administrator in Window 7?

I have two admins accounts A and B in Window 7. I want to disable User Management for B admin account. My approach that I took was I hide the User Management options from control Panel for B from ...
0
votes
1answer
46 views

Bash scripts are not working but on mac terminal those commands in scripts works

I'm stuck with a wired problem.My bash scripts are not working now.It worked previously.I don't know why.Interestingly the commands on the script work when I enter it directly on the terminal. This a ...
1
vote
1answer
69 views

Exporting AWS instance

I am trying to export my Amazon EC2 instance to a my S3 bucket as a VMware image. I have successfully set up Amazon CLI tools, added my credentials and can run commands. I am using ...
0
votes
0answers
17 views

Associate files with batch script [duplicate]

I've got a .bat-file which expects an input file as a command line argument, i.e. script.bat input.key I associated .key-files with script.bat in Windows and I excepted the same behavior like I ...
0
votes
1answer
29 views

Command Line Tool for Adding To Your Windows PATH, Permanently? [duplicate]

Is there a way to permanently modify your PATH from the command line? I find myself often trying to run a command or two on the DOS prompt, and find out it's not on my path. I manually find the ...
0
votes
3answers
39 views

Moving folders in Linux inconsistency

I have a shell script that deploy an application to a staging server. However, one of the application's directory needs to be backed up and restored after the deployment (so it is not overwritten). I ...