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
2answers
46 views

7zip - Use Windows Task Scheduler to zip a file that has timestamp of previous day

I have a web server that generates log files everyday, the log of the day will be automatically saved as Log.YYYY-MM-DD.txt (i.e. Log.2016-07-20.txt). Now I need to use Windows Task Scheduler to zip ...
3
votes
4answers
17k views

How can I copy a print file to a networked printer?

I have an Epson TM-T88V network printer. I can print to it using the printer driver. But I need to copy a "print file" to the printer using the command line, and this causes problems. I cannot use ...
0
votes
0answers
12 views

CoreOS HP410 RAID1 device not added (-19)

i face problem 'addition failed -19, device not added' > hpsa 0000:07:00.0: addition failed -19, device not added. > HP P410 controller SSDSmartPathCap- En- Exp=1 This hpssacli sees no ...
3
votes
1answer
4k views

How to add files to specified folder in archive with 7zip command line

I have folders and files on my disk C:\builds\main.exe D:\components\a\testa.exe D:\components\b\testb.exe D:\components\c\testc.exe D:\dependencies\abc.dll Can I create an archive with 7z command ...
0
votes
0answers
12 views

How can I find out the command line options for git-bash.exe?

Apparently my google-fu sucks... I know these from other StackExchange posts: --cd-to-home # Change directory to home --cd=<path> # Change directory to <path> -i # ? -...
0
votes
1answer
9 views

Windows batch extract zip files, into folders based on zip name and combining similar zips

I have been searching for a way to bulk extract zip files in a directory and extract them into individual folders based on their zip file name. I found: Extract all Zip's in a directory (incl. ...
1
vote
1answer
17 views

Program or script to walk directory structure, based on my loop

I've the following loop and would like some help expanding it's functionality. for /D %d in (*.*) do "c:\Program Files (x86)\7-Zip\7z.exe" a -tzip "%d.zip" ".\%d\*" Currently, in a directory ...
0
votes
2answers
4k views

FTP Not Connected - Can't input user credentials

I'm trying to download a file from a Linux server via FTP from Windows command line. I've successfully downloaded the file with FileZilla (same server, same file), but I want to do it in cmd.exe. I'...
4
votes
1answer
29 views

Is it safe to edit the global PATH environment variable?

I just recently found out that I couldn't run mysql without typing out the whole path or being in the correct directory--unless I added the path to the PATH environment variable. I managed to do so ...
2
votes
1answer
25 views

Windows Command Prompt: dir + what option shows only Directories and not files?

All / (switches) in Windows don't have any filter purposes. I know in Linux it is - (options). At a Windows command prompt, how can I show only Directories and not Files?
5
votes
3answers
3k views

Dump audio metadata (album title, track number, etc.) to command line

If I open an audio file with Audacity or Rhythmbox, for example, I can look at the metadata tags such as Artist Name, Track Title, Year, etc. . Is there a convenient way to do this on the command ...
56
votes
12answers
31k views

How can I trigger a notification when a job/process ends?

The place I work at has commands that take a long time to execute. Is there a command/utility that I can use to notify me when the command execution is over? It could be a popup window or maybe a ...
0
votes
1answer
128 views

How to run regex find and replace using windows command line

I want to perform complex find and replace that I do with notepad++ using command line. I found many solutions from web but none of them matches my requirements. I have one file in which I want to ...
0
votes
0answers
8 views

How can i make SFX from WinRAR and make WinRAR can't read it?

I want to pack all my setup files to WinRAR SFX. But i want it get passworded, both the files and the header so the other user of WinRAR can't extract it directly from WinRAR without a password. So i ...
0
votes
1answer
153 views

Turn off an iMac's screen in single user mode

I have an old (yet fairly powerful) iMac that I would like to be able to use for servers. Obviously, the best way to run a server would be to boot it up into single user mode/verbose mode for maximum ...
0
votes
0answers
23 views

Upload songs to IPOD Shuffle using CLI [on hold]

I'm wondering if there is a way to upload songs to iPod Shuffle (v1.0.3) using just command line. I tried copying files into /Volumes/IPOD/iPod_Control/Music and /Volumes/IPOD/iPod_Control/Music/F0*, ...
1
vote
2answers
4k views

How to execute remote command using PuTTY over Telnet

I was created a .bat file to run PuTTY and it successfully runs. The problem now is, the command line I was key in were not executed, any solution for this? My .bat command is: putty -telnet -P ...
2
votes
4answers
242 views

Rename to Start Case or Initial Caps in Bash

I need a oneliner to rename all files in a directory from SomeThing.TXT NOT A FILE.ogg sensitive lalala.doc to Something.txt Not A File.ogg Sensitive Lalala.doc In other words: first letters of ...
0
votes
0answers
20 views

How to create a video file from images on hard disk using ffmpeg command line?

In command prompt window i typed in the directory of the images: D:\SavedScreenshots>ffmpeg.exe -r 3 -i Imgp%04d.bmp -s 720x480 test.avi The images file are Bmp type. The first image file name is: ...
0
votes
1answer
309 views

Remapping all OSX shortcuts from cmd to ctrl

I am new to OSX, and since I have mapped CTRL to CapsLock, and use alt a lot, I dont need CMD, how to remap all shortcuts globally not to use CMD?
0
votes
1answer
73 views

Call a command line program in Terminal.app without leashing to the terminal? [duplicate]

Running a program with & appended is a handy way to run it as a background process, but the program is still leashed to the terminal; if you quit Terminal.app, the program ends. How can you start ...
0
votes
1answer
26 views

keyboard shortcut to preserve un-entered cmd line typing

You've got most of a command typed out then realize you forgot a step, need to run a different command first. Without touching mouse, in quick edit mode, how not to lose the typing of a command not ...
0
votes
1answer
17 views

Syncing time on two networked machines

I'm trying to sync the clocks on a Windows 7 (A) and a Windows 8.1 (B) computer on their own, private network by using the command (cmd on computerA): net time \\computerB /set /y As I expect, this ...
2
votes
1answer
17 views

Make ghostscript run from Windows command line natively

My problem: I am using Python to print plots which I usually output as .pdf file. Now I want to use .eps files, but Ghostscript is required (which I noticed because my Python console gave the error "...
2
votes
4answers
23k views

How to display/change the owner of a file on Windows 7

Is there a way to display the owner of folders and files from the command line in Windoews 7 command prompt? Can you change the owner of a folder or file to some "arbitrary" user which is not your ...
0
votes
1answer
29 views

How to stop .bat files from running in background?

I'm facing a strange problem after change the Screen configuration on my PC, the story is that before I identify my graphics card I used to use the CMD in full screen (windows 7), and whenever I run a ...
1
vote
0answers
38 views

Bash - log every input and output and write to file

I am often on assignment and sometimes I forget to document my work. E.g. write down output from different one off tools. Is there a way to automate that via .bashrc? So I open up a new shell, it ...
2
votes
1answer
26 views

How to create a batch file for this issue?

I need help making a batch file that will create a folder and then extract a cabinet file from a Windows installer file and then run a DISM command to install said extracted update. Below is a list of ...
1
vote
1answer
99 views

Difference in cd.. and cd .. (Change Directory) [duplicate]

cd.. and cd ... Basically, they are doing the same. But, who and why thought of changing it with space or without space? Why is there space and why there isn't space between cd and two dots? C:\...
4
votes
3answers
2k views

Is there an RSM replacement in Windows 7? (to eject USB and Firewire devices from command line)

I know Windows XP and previous had an rsm.exe file in the <root>\windows\system32 folder that could be used to manage media. I used this command in batch files and from the command line to eject ...
1
vote
2answers
25 views

In Firefox, is there a counterpart to Google Chromes -app option?

Google Chrome has ability to launch in an "app" mode by using -app command line switch, for example: "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" -app=http://some-url Using this I ...
3
votes
0answers
155 views

How to change the sink priority in PulseAudio?

I have multiple output sound devices at home and at work. Especially, I want to automatically play sound via external soundcard when it is connected. So, I need some kind of the sink priorities. ...
0
votes
2answers
3k views

Copying a set of local files to FTP server

I want to copy a set of local files to ftp://124.30.124.230 (it will ask username and password). I want to do this work on 400 systems. I have planned to do this work by creating a batch file and ...
0
votes
2answers
10k views

How to change from bash-3.2$ to [user@localhost ~]$ in UNIX

I am newbie to UNIX. When I was practicing some commands in UNIX. Earlier the Prompt was shown like this "[user@localhost ~]$". After some time it shows "bash-3.2$", but still some commands worked. I ...
0
votes
1answer
15 views

Running Windows 7 Virtualbox on Ubuntu command Line

Is it possible to run a windows virtualbox and possibly control it using nothing but a command line from ubuntu? I will also need to access regedit.
6
votes
1answer
5k views

How to copy command line text to host clipboard while using Ubuntu on VmWare?

I have host machine running Windows 7 and VmWare running Ubuntu in command line mode. When I am trying to copy content of command line of client machine to host machine - it is not working. There is ...
0
votes
1answer
48 views

How to create a Windows Batch Script to do this?

I am running Windows-7. I want to create a Windows Batch file which works like this: Run an exe with specified arguments. Wait for the complete execution of this exe. (This EXE is essentially ...
2
votes
1answer
226 views

Create softlinks to a file in every subfolder

I have some webspace on which I can't edit the main php.ini file, and I can't use an .htaccess command to make it recursively applied. If we call my web directory D, I'd like to recursively create a ...
2
votes
1answer
3k views

Ctrl-C not killing process in CMD.EXE

I've had this issue for a while even after reinstalling. Issue happens after I reinstall all my programs and not in a fresh Windows install (obviously). Might have to spin up a VM and install each ...
36
votes
5answers
29k views

Elevated command line prompt can't access shared drives in Windows 7

I map a share from another machine using my user account. I launch an elevated command prompt (cmd.exe, right click, Run as administrator). Navigating to shared drive (Z:) results in: The system ...
0
votes
0answers
10 views

In fish shell, which command is equivalent to bash's compgen?

compgen is a useful command, and fish is an excellent command shell. But I cannot find an equivalent in fish. I write one by myself: function compgen --description 'Print a list of documented fish ...
0
votes
0answers
26 views

Delete column from csv file with only cmd [duplicate]

Looking for some way to delete specified columns from csv file using only batch command file
3
votes
1answer
112 views

Replace Builtin commands with Custom Commands for CMD.exe

If I do a command like (on windows cmd.exe): where dir or where cd I get the following message: INFO: Could not find files for the given pattern(s). This tends to mean to me that cd and dir ...
0
votes
1answer
26 views

windows - Why does my executable shortcut (*.lnk) not behave like the program it points to?

I have a shortcut that points to ant.bat (apache ant). Executing that shortcut always returns the fail error ("build.xml does not exists"), while executing the ant.bat directly with full path does not....
0
votes
2answers
35 views

Obtaining all command line parameters in CMD prompt

What command would I use in CMD to get all of a program's available switches/arguments? For example, program abc.exe might have a switch of /o that starts the program in offline mode. Assuming I did ...
0
votes
0answers
21 views

Why can't I get (most) Chrome command line flags working?

I am running Chrome 51 on Windows 8.1. According to both this documentation and this source file I should be able to launch Chrome with command line parameters. Yet when I try to - with the exception ...
0
votes
0answers
20 views

How do I (admin) add an existing user to a Mac OS X with missing user ID?

I restored a Mac and now only have admin and guest as a user. I know group name, user name, apple id and account name. I do not know user ID, aliases, login shell, UUID or directory. 2 Question: ...
0
votes
1answer
20 views

E: Package 'libtool-bin' has no installation candidate

due installing the prerequisites for a software, which is explained step by step here , when I enter this command: sudo apt-get install libtool-bin I get this error: Reading package lists... Done ...
0
votes
1answer
16 views

KeePass kdbx not respecting -pw parameter

If I use the command line KeePass.exe {kdbx location} -pw:{password}, all that happens is KeepPass opens minimized and still asks for the password when I click on it. Even putting this in a ...
30
votes
9answers
11k views

How to whois new TLDs?

How can I look up new TLDs, such as .email, .guru, etc., using the whois command in linux? Running whois on a new TLD only gives the response: No whois server is known for this kind of object.