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
22 views

“Filename or extension too long” for move, but it isn't

I'd appreciate some insight as this is driving me nuts. I have a folder on a network share: \\host.example.com\Share\Path\Container1\Folder I am trying to move that folder to a new location on the ...
0
votes
0answers
5 views

PHP command line warnings under Windows

Running PHP 5.6.7 under Windows Vista. If I drop to the command line and run php somescript.php I get warnings, like this: c:\Users\admin\Apache\htdocs>php -a PHP Warning: PHP Startup: Unable to ...
11
votes
3answers
26k views

Get bare file names recursively in command prompt

I ran into a little snag trying to get only the filenames (no extensions or file paths) recursively.This worked for me in the root folder: dir /b But when i added /s to scan recursively i also got ...
1
vote
1answer
15 views

curl shows a greater-than sign instead of uploading a given file to a given server

I want to upload a file to a WebDAV server within Linux command line. The standard recommendation for this is to use curl in the following way: curl -u mail_address:password -T filename.ext https://...
15
votes
4answers
13k views

Windows CMD Batch, START and output redirection

I would like to run two programs simultaneously from a batch file, and redirect the first program's output into a text file like: start python 1st.py arg1 arg2 > out.txt start 2nd.exe %1 arg2 arg3 ...
0
votes
0answers
7 views

Send email using mail hangs - Ubuntu 14.04

I have try to send email using ubuntu shell and when I execute the below, session is getting hanged. Kindly help me on this. echo "hello world" | mail -s "a subject" abc@gmail.com After some ...
0
votes
0answers
14 views

Interrupted loop

How would I create a batch file with an interrupted loop? At the momen I have a file with sort of a matrix-y feeling that does this... :start echo %random%%random%%random%%random% goto start but ...
0
votes
2answers
944 views

How to switch between command-line and GUI in VM on a Mac?

I have installed CentOS 7.1 in VMware Fusion of my Mac. I logged into the terminal (default runlevel 3) and started the GUI using the command "startx". I want to switch back to the terminal. Ctrl+Alt+...
0
votes
1answer
17 views

How to browse bash history between certain line numbers

Everytime I need this I google it like 10 minutes. I don't know how to express this better so that Google finds it right away but I need to retrieve bash history between certain lines like: $ history ...
48
votes
7answers
218k views

How can I find out when Windows was last restarted?

How can I know when my computer running Windows 7 was last restarted? I prefer a solution that doesn't involve searching the event log, but something like wmic or maybe cmd commands.
2
votes
2answers
49 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
21 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
10 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'...
5
votes
1answer
36 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
27 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
132 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
9 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
154 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
243 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
18 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
30 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
39 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
100 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
26 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
53 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 ...