A command-line interface (or CLI) is a method of interacting with your OS or software by typing commands on your keyboard.
0
votes
2answers
38 views
Is it possible to turn on/off numberlock with command prompt?
With command prompt, can I turn my number lock on or off? I'm hoping to do it with just one line, but I'm assuming I can't as that would have shown up in google.
0
votes
2answers
48 views
How do I reconnect an already mapped network drive from command prompt [duplicate]
I have a network drive already mapped.
But I want to create a batch file that starts after the startup is complete and reconnect to the mapped network drives.
So far I have seen commands
net use Z: ...
1
vote
1answer
58 views
OSX Server 10.8.2 - Change domain password (command line)
How do i go about changing the domain password for a user?
Assuming i'm running a admin account, is there a command or method to change a users password without a GUI?
Also, previous password is ...
0
votes
1answer
16 views
Writing a tcsh script to copy files specified in first argument to a specific directory
I'm trying to write a script in tcsh that will copy select files that I specify at the command line from one directory to another without having to write out the entire path of each file.
Also, to ...
10
votes
3answers
3k views
How can I trigger a notification when a job/process ends?
The place I work 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 ...
2
votes
2answers
84 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, ...
4
votes
6answers
3k views
Automatically executing commands when a command-prompt is opened
I am looking for a way to execute some console commands automatically when a command-prompt is opened in Windows, specifically to set some command aliases.
For example, when a command-prompt is ...
3
votes
2answers
38 views
Append line break to command output
I have a single-line command that does a curl request to check server status and then output the result to a log file. But the problem is the returned result has no line break and so the log file ...
10
votes
3answers
30k views
Chrome command line arguments w/ url?
when launching chrome from the windows command line I can pass arguments like so:
...>chrome.exe -incognito
I can also pass a URL to open
...>chrome.exe google.com
Each work fine on their ...
2
votes
2answers
27 views
Place contents of last command line output into clipboard
I want to be able to run a command in my Terminal, and then quickly be able to copy the contents of the output into my clipboard without leaving my keyboard. Is there any way to do this?
0
votes
2answers
44 views
Creating folder alias like %SystemRoot% in windows 7
I'm trying to create a shortened path to a directory that is nested in a lot of directories (ie C:\Users.......................................\TestApp\Data\32\TutorialData which is 80+ characters to ...
2
votes
1answer
942 views
how to remove the text “Administrator:” from the cmd window?
Although a near identical question was asked, the answer won't work (for me at least) with my Vista system.
I am using an elevated prompt to run a batch file. Since the batch file takes awhile to run ...
1
vote
3answers
84 views
Rename recursively files, while keeping the extension
I have a bunch of directories that each hold one *.txt file in it (and other non *.txt files).
I'd like to rename those files recursively from the command line, basically *.txt to info.txt.
So all ...
0
votes
1answer
1k views
How to install Broadcom Wi-Fi on Arch Linux in command line mode?
How do I install Broadcom Wi-Fi on Arch Linux in command line mode on an Acer eMachines EM350?
I assume that Broadcom STA should be the driver used and my USB key the way to install it with the help ...
0
votes
1answer
605 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,
...
2
votes
3answers
1k views
Windows command line ZIP extraction with checksum or similar?
What I need to do, at the command line, is:
Extract the contents of a a ZIP archive.
Change an arbitrary number of the extracted files.
Repeat step 1, but because it is a huge archive, only extract ...
1
vote
1answer
1k views
Force firefox to open pages in a specific tab using command line
Here's the challenge: I developed Softphone Screenpop PHP App that takes caller id info and searches for a match in our db, also allows us to collect call statistics. Great for our management but it's ...
15
votes
6answers
12k views
Multi-tab command prompt in Windows?
What are the best (i.e. bug free) Multi-tab command prompts in Windows?
They have them for Linux but Windows never seems to come out with one.
22
votes
12answers
60k views
Run a completly hidden batch file
I'm looking for some way to run a batch file (.bat) without anything visible to the user (no window, no taskbar name, .etc..).
I don't want to use some program to do that, I'm looking for something ...
0
votes
5answers
71 views
Automatically extracting text files via commandline and combining them into a single text file
In-Depth Explanation of Problem:
I'm trying to automate a process on my computer and having some difficulty. Each day, I'm emailed a zip file that contains a txt file. I have a script in place that ...
11
votes
6answers
6k views
How does Mac's command line compare to Linux?
I love Ubuntu Linux - especially the commmand line. But I have to admit that, at least for now, Windows is more user-friendly - there's more software for it, more drivers, and more stuff just works.
...
1
vote
1answer
1k 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 ...
1
vote
0answers
129 views
Chrome: How to refresh tab if open, otherwise open new tab?
I'm opening a .pdf file from the command line in Chrome (Windows 7 64 bit). Every time the pdf file changes open the pdf to view it, but I don't want Chrome to open it in a new tab every time.
Is ...
0
votes
4answers
48 views
Extracting specific line of text with grep for use in conky
I'm trying to extract the directory of the current playing song in Quodlibet for use in attempting to display album artwork in conky.
In QL's current file ~/.quodlibet/current there is a line that ...
4
votes
1answer
52 views
Bad sectors in external HDD
I've had this external HDD for around 3 years give or take 6 months. For the last month or so, it was pretty slow but it worked. A few files couldn't be copied onto my system but files could be ...
0
votes
1answer
24 views
Clean up my gnupg keyring?
My gnupg keyring contains hundreds of unnecessary entries. How would I remove the expired, revoked and unsigned keys from it?
I would like to keep the keys that have signed my key, and import new ...
0
votes
1answer
38 views
How to execute a cleanup command on tmux server/session exit?
To improve my workflow a little I have written a few wrapper scripts to automatically start some commands when I want to work on a project. When I'm done however, and clean all the tmux tabs for this ...
2
votes
1answer
591 views
How do I process RAW images with the command line in Linux?
I want to be able to manipulate RAW images from the Linux command line, like so:
cat raw1.img | raw2jpg -w 640 -h 480 -pitch 1024 -pixelformat R8G8B8
tr='transpose -pitch 1024 -depth 24'
cat ...
3
votes
1answer
49 views
Using grep to remove lines from a file which contain a string from another file
I have a file containing words (one per line) such as
Dog Fish Cat Shoes
I have a secondary file in CSV format such as
1,shoes,red 2,apple,black 3,fog,blue
I would like to use grep with ...
2
votes
1answer
469 views
how do I make a batch file that executes this command
I am trying to make a batch file that executes the following DOS command:
exiftool "-FileName<CreateDate" -d "%Y%m%d_%H%M%S.%%e" "C:\Users\Tom\Desktop\belvedere"
(FYI, exiftool.exe is a script ...
2
votes
1answer
7k views
Video Thumbnails using ffmpeg
I'm looking for a nice short easy way to create a series of thumbnails for any given video file. I'm almost there using ffmpeg, here's what I have:
ffmpeg -i /tmp/video.avi -r 1 -ss 60 -r 1 ...
2
votes
1answer
474 views
exiftool: delete exif data but preserve some specific tags
Currently I use exiftool with the -all= option and it deletes all the EXIF data from my photos:
exiftool -overwrite_original -all= /Users/andyl/photos/*.jpg
Now I want exiftool to delete all the ...
0
votes
2answers
93 views
concatenating string in FOR loop in batch file
I have a file sfsview_monitor1.txt with the following content:
Total pages: 16320
Pages used: 142
Pages free: 16178
I want the output like this:
16320 142 16178
with the following code I am not ...
0
votes
3answers
888 views
Is there a way to start or stop a service from powershell and block until the service starts?
I have to reset a sequence of services on a group of servers in a certain order. sc.exe is asynchronous, it will return when the service is in the START_PENDING or STOP_PENDING state. ...
3
votes
2answers
73 views
How can I navigate in command prompt to a remote folder which has been shared among users? [duplicate]
So basically I want to go to 192.xxx.xxx.xxx\myFolder to see the files in it.
I go with Explorer and it works fine, I can even delete and/or modify and add files to it.
The problem is that I'm ...
0
votes
2answers
64 views
Run series of commands in different tabs in conemu
I have a .bat file which used to open 3 cmd windows each a different colour. I am now using conemu and would like to now do the same but in different tabs. How do I do that?
My .bat file:
cd /D ...
2
votes
3answers
6k views
How to convert Word (doc) to PDF from Windows command line?
Anyone know how to convert word files (.doc) to PDF using the command line in Windows?
We were using the service of OpenOffice, but in documents that have many tables and images, it ends up ruining ...
1
vote
3answers
68 views
How can I reset an edited history line in Bash?
In Bash, you can press the up (and down) arrow to traverse through history. You can then modify the command before executing it. Sometimes I've incorrectly modified the command, and wish to reset it ...
0
votes
0answers
16 views
Obtaining previous day's User Log details from the command line
Generally we can find the User Log details for a particular day by using Quser at the command prompt. Is there any way or particular command to find the User Log details for the previous day also?
21
votes
7answers
8k views
How can I delete Time Machine files using the commandline
I want to delete some files/directories from my Time Machine Partition using rm, but am unable to do so. I'm pretty sure the problem is related to some sort of access control extended attributes on ...
0
votes
0answers
31 views
is there a way to run exe file automatically in the tray [duplicate]
I do not like that some of my apps which are running in background constantly are wasting space in my taskbar. I would like to move them to a tray.
Is there a way to run the exe file in the tray?
I ...
2
votes
1answer
32 views
emacs: “click” on “links” in command line emacs
In some emacs documentation there are underlined texts that resemble links. For instance, by M-x list-packages we get the following:
In some GUI version of Emacs like Emacs For Mac OS X (but not ...
2
votes
4answers
422 views
How can I start a batch script before logging in?
I have set up my computer to boot at the same time everyday when I am not home. I need it to run a batch file without anyone touching it right when it boots.
I have added a shortcut to the file in ...
1
vote
3answers
1k views
Command line history & tab-completion for sftp in OS X Terminal.app
I use Terminal.app constantly. When connecting via ssh to remote *nix systems, I can continue to use tab to complete command names and arrow-up/down to navigate the command history. However, with sftp ...
19
votes
4answers
18k views
How to list folders using bash commands?
Is there any way to list just the folders in a directory using bash commands? ( as the ls command lists all the files and folders )
7
votes
3answers
1k views
md5: Why is my command-line hash different from online md5 hash results?
On Mac OSX Leopard PowerPC, if I do: echo "hello" | md5 on the command line, the result is: b1946ac92492d2347c6235b4d2611184But if I enter hello into one of the online md5 hash sites like ...
1
vote
2answers
839 views
OSX: using CLI version of VLC
How can I use the CLI version of the VLC on OSX?
After installing VLC on OSX, it works fine through the normal GUI process, spotlight, etc. Also, I know it's possible to do
open bla.avi -a vlc
...
-1
votes
0answers
35 views
Please recommend a way to tidy the text of a windows .cmd file [closed]
Please recommend a way to tidy the text of a windows .cmd file
Windows .cmd files have no intrinsic formatting. Some good suggestions for "manually tidying"
are ...
2
votes
2answers
56 views
How to use UNC path correctly to share a folder on remote computer?
I would like to know if somebody knows the correct syntax for giving a folder a share on remote network machine's folder.
Please write a syntax you know for sure that it's working.
This operation ...
0
votes
0answers
17 views
Terminal not listing Applications folder
The problem that I am running into is that when I cd into my Applications folder and try to ls to see all my folders it doesn't show anything. This is the only directory that does this as I am able to ...




