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
votes
0answers
8 views

How do I launch Robocopy with a scheduled batch file and not have the command prompt appear?

I'm using Robocopy to keep two hard drives constantly synced up. I've created a task which runs the following batch file: @echo off robocopy "D:" "L:" /MIR /Z /MOT:1 /MON:1 /XA:H /R:1000000 /W:5 ...
0
votes
0answers
15 views

How to run specified terminal command from context menu on right clicked folder?

I'm quite happy I found out about Finder > right-click > "New Terminal at Folder". To make it perfect, I'm looking for a way to run a specified command right after. Automator doesn't seem to have such ...
66
votes
4answers
19k views

Forward SSH traffic through a middle machine

SSH tunneling is very confusing to me. I am wondering if I can do this in Linux. I have 3 machines.. A. My local machine at home. B. Machine at work that I can SSH into (middle man). C. My desktop ...
-1
votes
1answer
28 views

Should I use Git from Windows's command prompt? [on hold]

I am new to Git and learning it these days. I was installing git and it asked me to choose any of three option that whether I wish to use it through gitbash or through cmd and so on. I was confused ...
0
votes
1answer
34 views

Delete all files in the folder except one extension(say .idf) using batch file

My current code to delete all files in a folder older then 2 days is : forfiles /p "C:\Test" /s /m *.* /c "cmd /c Del /F /Q @path" /d 2 There is one .idf file among all other files. I want to ...
0
votes
1answer
134 views

Despite being able to run “javac” through the command line, “where javac” doesn't match anything. Why?

Here are both input/outputs: Running javac: D:\>javac Usage: javac <options> <source files> Running where on javac: D:\>where javac INFO: Could not find files for the given ...
23
votes
4answers
15k 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 ...
1
vote
3answers
992 views

How do you extract a particular directory from a multi-part RAR using unrar CLI

I can't find any way to do this after searching for hours and trying various things. I'm using rarlab's free unrar CLI on OS X. I want to extract a single folder and its contents, preserving paths, ...
0
votes
1answer
11 views

Run Spyder as a ConEmu tab

Is it possible to run Spyder ([I]Python IDE) inside a ConEmu tab? I use Notepad++ as an external editor in Far Manager & it runs inside one since I've added -new_console to my external editor ...
4
votes
2answers
4k views

How to add commands of windows to local shell of XShell 4

XShell is a very powerful tools to ssh remote computers such as Unix/Linux. And it has built some internal commands for you to run within your Windows. Xshell:\> help Internal Commands: new: ...
21
votes
5answers
9k views

What is the command line way of sending files to the recycle bin?

Is there a command line program that can send files to the recycle bin? This is on XP and Vista.
5
votes
6answers
25k views

How to disable sleep mode via CMD?

With only the command prompt, is it possible to disable sleep mode when closing the lid of a laptop?
4
votes
2answers
2k views

How to create a file and insert a line in it using OS X terminal

How can I do the following using the terminal on OS X? Create a file named .inputrc in a user's home directory and put this line in it: set completion-ignore-case On
0
votes
0answers
15 views

In Windows, how to search in a specific Wi-Fi channel?

In Linux, it is possible to "keep searching" in a specific channel (using airodump-ng): airodump-ng -c 5 mon0 if I keep searching in a channel for more than 10 seconds, I notice that some new APs, ...
20
votes
5answers
80k 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.
0
votes
0answers
11 views

Log Commands Run Over SSH on Client Side

I am looking for a way to run SSH (OpenSSH in particular, but not necessarily) and log all commands that I run against the remote, to a file locally. Running each command as an independent ssh ...
0
votes
2answers
14 views

grep and sed with pipe from tail -f appears to be caching

I am trying to get a working system to monitor special logs. I usually just want a very specific pattern which I extract using grep and a pipe from tail -f. I have noticed that grep does not output ...
1
vote
1answer
29 views

Copy Command with “%” in path name

I am trying to write a bat file to copy some files into a new directory (which exists). Here is my command: copy ".\050-9800-JJJ-DSC-BAW-MEE-00019-01*.pdf" "T:\201201.00 TCO - Tengiz, ...
2
votes
0answers
30 views

What are the underlying Windows7 mechanics that are responsible for opening selected files via key 'Enter'?

I need to create a batch script that opens n files, of same type and same suffix, with program p, without creating n instances of p (i. e. use multiple tabs instead of multiple instances). For some ...
1
vote
2answers
29 views

Given key-value content, how do I group values by key and sort by value?

I've the following sample input format (file or stdin): key1: 1 key2: 2 key3: 3 key1: 4 key2: 5 key3: 6 Is there any few-liner which can group values based on the key and then sort? Expected ...
2
votes
5answers
9k views

How to play a folders worth of music/video in VLC media player

In VLC media player, I can use vlc -LZ <file 1> <file 2> <file 3> for example to play various files on repeat and shuffled. Is it possible to specify a whole directory and play all ...
0
votes
3answers
41 views

How do you write to a file within the command line?

Specifically mac, but for future reference for those that come across this post, this could be on any OS. So am learning the command line, and one utility (perhaps the only one) which seems to be ...
1
vote
2answers
39 views

Why does the set command display more environment variables than the environment variables gui?

When I run the set command in command prompt the first variable I see is But when I open my Environment Variables GUI I don't see ALLUSERSPROFILE Why is that? There are numerous other ...
36
votes
3answers
39k views

How does the Windows RENAME command interpret wildcards?

How does the Windows RENAME (REN) command interpret wildcards? The built in HELP facility is of no help - it doesn't address wildcards at all. The Microsoft technet XP online help isn't much better. ...
0
votes
2answers
8k views

Setting environment variables and appending to system-wide %PATH% with a Windows batch file

I'm trying to set three environment variables and append them to the machine path. Right now my code is like this: setx CATALINA_HOME "C:\Program Files (x86)\Apache Software Foundation\Tomcat 7" /m ...
0
votes
0answers
22 views

'.' is not recognized as an internal or external command

def evaluate(str, par): return (os.system("./LKH %s" %par) - swap_2opt_solve_str(str)[1])**2 I have an executable lkh file in the directory. However when my program runs this function, it gives the ...
0
votes
0answers
8 views

How to make Chrome when launched by other programs use my command lines i defined?

For security concerns, i've set chrome to launch with this: --cipher-suite-blacklist=0x0005,0x0004,0xc011,0xc007 --ssl-version-min=tls1.2 I use Windows 7, and when i click it from my TaskBar it ...
16
votes
6answers
49k views

How to access the Administrator Command Prompt in Windows 8?

When I access the Run dialog in Windows 8 and type cmd, it opens a command prompt but it doesn't have administrative privileges. Looking for cmd at the default start screen does show a command prompt ...
1
vote
2answers
148 views

Terminfo or termcap in command-line

Is it possible to see a all the capabilities (terminfo or termcap) of the current terminal on command line?
0
votes
1answer
12 views

How to access Kitematic host computer's command line

I installed Kitematic to my Mac. Kitematic installs a Linux server to VirtualBox to work as a Docker host and has a simple GUI for the basic Docker tasks etc. Now I'm wondering, how to have command ...
5
votes
5answers
81k views

How to run a command file in PuTTY using automatic login in a command prompt?

I am using the following to login automatically to a remote server and then run commands listed in a commands.txt, like this: C:\path\to\putty.exe -load "[Sessionname]" -l [user] -pw [password] -m ...
2
votes
2answers
22 views

Using notepad++ command line commands

I am trying to use the -l parameter in a notepad++ command line to open a file and have the highlighting be set to highlight for C++. I typed in the command: notepad++ -lC++ file.cpp For some ...
1
vote
1answer
3k views

How to filter running in VLC video stream on commandline?

I easily can broadcast my webcam with VLC using command lines like this (I use Windows): "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" -vvv -I --dshow-vdev="Logitech QuickCam Express / Go" dshow:// ...
1
vote
1answer
27 views

What is the best policy for running GUI programs from CLI to silence non-error messages?

When, on Linux, running graphical programs (such as Sublime Text for example) from the Terminal, the program runs fine but logs on the console messages that are not exactly failures, nor useful log ...
12
votes
6answers
9k views

Why won't my Windows 8 Command line update its path

I needed to add a new entry to my PATH variable. This is a common activity for me in my job, but I've recently started using Windows 8. I assumed the process would be similar to Windows 7, Vista, ...
0
votes
1answer
27 views

Registry or command line - Set fixed position of pinned task bar item

I am installing Google Chrome in addition to Internet Explorer 11 on several Windows-7 machines. After the installation, I would like to have Google Chrome set to the same position (#2) in the task ...
1
vote
1answer
27 views

How can I edit local Group Policy settings using command line?

I'm attempting to throw together a script for work that allows BitLocker without a compatible TPM. The setting is "Configuration \ Administrative Templates \ Windows Components \ Bit Locker Drive ...
2
votes
3answers
31 views

Parse string using batch script

How can I parse string using batch script? Goal is to save in a array everything under Import: and strip out #head for example --> //MPackages/Project/config/abc.txt and ...
0
votes
1answer
3k views

cmd > attrib - Unable to change attribute

I'm following this tutorial because I'm having problems with the Task Scheduler service: http://technicallyeasy.net/2010/10/how-to-fix-keyset-does-not-exist-for-scheduled-tasks-in-windows/ Basically ...
0
votes
4answers
2k views

Moving files unattended with cmd prompt

I'm trying to move over 500GB+ and it will take about a day. Is there a way under Windows 7 to move all these files using a command line that will answer yes to any pop-up dialogs? For example, ...
3
votes
2answers
1k views

How to get network ip address via windows command prompt?

How to get network ip address via windows command prompt? I know tat ipconfig /all shows ip configuration, but what about having just ipv4 adress?
1
vote
2answers
622 views

split command on Ubuntu command-line

I want to split a file into multiple files with at most 25 lines each. I'm using this: split -l 25 /etc/adduser.conf > /home/ubuntu/PL/trab3/rc_ But I do not get the files I expect. How can I ...
2
votes
2answers
1k views

How to split a file on a floppy disk without installing any software in DOS?

I want to split a 2.6 MB file on a floppy disk. Is there a way that I can use a DOS command to help me in a pure dos environment. (no applications are allowed to install)
90
votes
5answers
162k views
0
votes
1answer
25 views

How to disable (and re-enable) notifications on GNOME Shell version 3.8.4 from the command line?

I am running Centos 7 with GNOME-Shell 3.8.4. I can happily disable all notifications from the top-right menu, as pictured: I need to do that from the command line, though, because I need to ...
0
votes
2answers
3k views

What command lists the files created in a specific month and is readable for the owner?

I am supposed to find the command that lists all the files created in September and are readable for the owner. Also explain how the command works. I know I'm supposed to use ls -l and I will ...
0
votes
2answers
2k views

How do I make netdiag work?

I'm trying to run the netdiag command to troubleshoot the internet connection but when I run it in cmd I get the following message: 'netdiag' is not recognized as an internal or external command, ...
0
votes
1answer
30 views

How to run Windows SDK Command Prompt from command line?

I have instruction to run Select Start --> All Programs --> Microsoft Windows SDK v7.1 and open Windows SDK 7.1 Command Prompt. which is obsolete for Windows 8.1 I have installed something ...
1
vote
3answers
2k views

Add folder name to beginning of filename

I have a directory structure as below: Folder > SubFolder1 > FileName1.abc > Filename2.abc > ............. > SubFolder2 > FileName11.abc > Filename12.abc ...
0
votes
1answer
23 views

Python logging class not working when sending stdout to /dev/null

I have a Python 3 script that has logging enabled (for debugging purposes). Whenever I run/execute this script it is working fine and the logfiles are created. I've also created a setup.sh-bash ...