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

How do I mount internal HDDs in Ubuntu via the command line?

I'm new to Linux and have a home server set up running Ubuntu. In the GUI it's very easy to mount my additional internal hard drives. I just double click on them. Since I have made this server ...
4
votes
1answer
6k views

Command Prompt: run scripts in background (equivalent of Linux's &/bg)

In Linux you can do this: $ php blah.php > some.log & to run blah.php in the background. This is the same as Ctrl+z then the bg command. Is there an equivalent of either/both for the ...
0
votes
2answers
316 views

linux locate command sort by date

The linux locate command is great at finding files quicky. My question: how can we use the locate command so that the results are returned in date/time order?
2
votes
3answers
33k views

What is the exact command to restart a Redhat linux system?

I am new in linux. I want to know the exact command to restart a red hat linux server 6.3. and it has to start network drivers etc. I am using VPN to connect to remote machine using VNC. Can anyone ...
1
vote
0answers
212 views

groups permissions not working

I'm confused why is this not working? Admin group is having access on the /opt directory and I'm the member of that group and still I can not make a new directory there. vita@eldamar:/opt$ ll / total ...
5
votes
1answer
1k views

zsh alias with default argument, but also overridable

I currently have a zsh alias setup like so. alias e="subl" This lets me e somedir to open up a directory in SublimeText. or e . to open up the current directory. However, I would like to be able ...
2
votes
2answers
111 views

How do I change a command line command?

I have python 2.7.2 installed, and I have to install python 2.6 for a specific task. And when I run now python from the command line, it runs the only version. How can I change the current ...
3
votes
1answer
3k views

Is there a command line way to disable suspend in ubuntu 12.04

Is there a command line way to disable suspend in ubuntu 12.04? I can only ssh to my 12.04, is there a way to disable suspend mode via command line? Thank you.
1
vote
2answers
84 views

Random tab, auto complete in case of identical file name beginning?

Lets say I have multiple files in a directory which all start with the same string $ ls fileAA234 fileAA247 fileAA255 fileAA264 fileAA269 fileAA277 fileAA285 fileAA294 Often, when browsing such ...
1
vote
0answers
174 views

Commandline parameters to send to user via Trillian

How do you make a shortcut to send to a user via Trillian? Something like trillian.exe /sendto:username
2
votes
1answer
465 views

How to fix diacritic issue on command prompt?

Simplified issue: I have a file called Bíblia sagrada.exe (note the í) on C:\ of my computer. When I open a command prompt on C:\ and execute dir /b /on B*.*, it will return: Bíblia sagrada.exe ...
2
votes
3answers
4k views

How to start executables through command prompt with space named files and without command prompt waiting program to close?

I would like to create shortcuts to some executable files (exe, bat, com...) on Windows 7 using bat files, but I had some troubles with that: start notepad.exeworks perfectly, but start Foxit ...
5
votes
1answer
784 views

How can I launch batch files from another batch file while piping their output and retaining the current working directory?

I have a batch file which runs as a scheduled task. For the sake of example lets call it alltasks.bat. It looks like the following: @ECHO OFF clearwebtemp.bat > clearwebtemp_out.txt ...
1
vote
1answer
6k views

How to set permissions on directory?

I am searching for a way to set permissions on folder and the contents. The rule is as such that the only the superuser can delete contents of the folder. Users can add, view, modify, but not delete ...
1
vote
1answer
583 views

Windows command line escape characters

Long story short: We receive a command from a script and want to execute it using windows shell. Currently we use a method similar to: echo start & command & echo finish That works fine ...
0
votes
1answer
192 views

Error code 2 when compiling a cpp file in notepad++

I'm using this code cd "$(CURRENT_DIRECTORY)" g++ $(FILE_NAME) -o $(FILE_NAME).exe to run a cpp from notepad. What I had expected to run was g++ FILE_NAME.cpp -o FILE_NAME.exe But g++ ...
2
votes
1answer
545 views

Sending email (through GMail) through windows command line

So, platform is Windows XP, cmd is the preferred command line and GMail is where I have my email. I'm interested in the possibility of sending mail through the command line, as lately I've been ...
8
votes
3answers
8k views

mkdir that overwrites any existing directory

If I try to run mkdir build to create a build directory, if the directory already exists, this error is thrown: A subdirectory or file build already exists.. I need to delete and overwrite this ...
11
votes
5answers
36k views

Is there a command line tool to put windows 8 to sleep? [duplicate]

Possible Duplicate: How can I put the computer to sleep from Command Prompt/Run menu in Windows Vista? A few days ago I installed Windows 8. I first found the lack of the "shutdown" menu ...
1
vote
2answers
895 views

Find Linux Total Bandwidth in One Line

Is there a command to find the total bandwidth used by a Linux box since startup, that returns one line? The reason I'm asking is I'd like to call this shell not using a terminal and output the ...
3
votes
1answer
681 views

Can I manpulate Little Snitch access control lists via CLI on Mac OS X?

I am running Little Snitch on Mac OS X, which lets me control how individual processes access the network. Currently, every time a new application tries to go online, I have to confirm or deny its ...
6
votes
2answers
6k views

How to run two commands simultaneously?

I have two videos and need to play them (by mplayer) exactly at the same time. How to do that ?
0
votes
3answers
16k views

sending mail from linux commad line

Is it possible to send mail from linux terminal to any gmail account. If possible then what are the configuration are needed. I tried with mailx and sendmail but its not working. I also tried with ...
0
votes
1answer
568 views

Run command for Adobe Flash settings

Is there a run command that brings up the Adobe Flash settings in the Control Panel? Run commands such as WinKey+R and typing cmd, msconfig, control, etc. but to bring up the flash player settings.
1
vote
1answer
3k views

Batch file that will create directory and place a txt file inside with specific name

This is what I have, but I want the text file to go in to the Log file directory with out giving full paths. @echo off set dirname= :input set /P dirname=Type directory name: %=% if "%dirname%"=="" ...
3
votes
2answers
401 views

How to open a file from bash command line in the already open Emacs instead of a new instance?

How to open a file from bash command line in the already open Emacs instead of a new instance? When I type $ emacs file.txt it opens a new Emacs instance, instead of opening the file in the ...
9
votes
3answers
24k views

Can I invoke Windows Update from the command line?

It often happens that I have to watch this screen for minutes: I have no clue what's happening in the back. And I'm also not interested in watching the WindowsUpdate.log for changes. I would love ...
3
votes
2answers
253 views

Non-rectangle select in Windows command line

Is there any way I can disable the stupid rectangle selection mode thing in the Windows command line? I want to select line by line like normal. Currently it's a giant pain when I need to copy things ...
2
votes
0answers
24 views

Renaming a part of the title for multiple folders [duplicate]

Possible Duplicate: Renaming in command prompt I was wondering if there is a command in Command prompt or Power-shell that can delete the same part of the folders name for all the folders ...
1
vote
1answer
228 views

How to add URL as parameter in msiexec?

I'm trying to install a program using msiexec from 'CMD' and I'm trying to add a URL parameter. So it looks like this: Msiexec /i \\spfil001\MSI\esdh\offext.msi URL=http://stesdh01 But I must be ...
1
vote
1answer
675 views

Get a colon in a Windows filename [duplicate]

Possible Duplicate: How would I go about creating a filename with invalid characters such as :?>? Yes I know it is not allowed, but I want to do it anyways. Any workarounds?
4
votes
5answers
7k views

How can I add an extension to multiple file names?

I have a folder containing multiple files with names like: pnahc.d_m05d17h09m30 I want to place an extension at the end of the filename so that the new filename looks like: ...
2
votes
1answer
238 views

How to Open CMD in a folder from CMD

I need to run a command from CMD, to open CMD in 'C:\Users' or some arbitrary directory. In linux I just use the parameter '--working-directory=' but in windows I can't fid a way to do it. Also I ...
4
votes
2answers
206 views

Change the order of Windows shell command history retrieval

One of the things that drive me crazy in command line under MS-Windows is the order in which the Windows shell (both the standard one and PowerShell) retrieve commands from history when you use the up ...
1
vote
1answer
312 views

Subtract one day on all time stamps touched today in whole system- windows 7

In my windows-7 PC due to cmos battery failure I have to set date time.But i did wrongly i.e set 14th August instead of 13th August. And I found very late after a lot of work done. Now I want to ...
1
vote
0answers
58 views

Unable to apply quota to a group with ACL persmissiions on MAC OS X SL Server

I am trying to apply quota to a group using edquota to a group I created through workgroup manager, but the group does not appear in repquota -a -g command. It appears that quota apply to only groups ...
9
votes
4answers
6k views

Is there any way to get the windows cmd shell to expand wildcard paths?

Occasionally, the cmd shell's inability to expand wildcard paths can really be an inconvenience. I had to pass 100 files in a directory to a program, and couldn't type *.ext. Instead, I used mingw's ...
2
votes
1answer
1k views

Run cmd.exe always as administrator

I have configured ansicon to display ANSI colors in cmd.exe, but it only works when cmd is run in administrator privileges. I'm also using Launchy to start cmd.exe (not only cmd). Problem is that if I ...
0
votes
1answer
317 views

Setting mouse accel to specific value when pointer id changes each startup

I have a set of commands that I manually enter each time I start up my Ubuntu installation (12.04). They help even out my mouse pointer acceleration as setting them in the mouse settings tab does not ...
3
votes
2answers
2k views

powershell cmd script of out-zip.ps1

i have found this powershell script online and i would like to run this from a batchfile. Can anyone give me the correct syntax for this script. And if possible make it possible to input multiple ...
1
vote
1answer
42 views

OSX Discover which ports an app is using?

I have an app running (let's call it MySpecialWebServer.app). While I have a GUI way to find out what port it's listening for requests on, I'd like to find out using the command line. I really have ...
1
vote
3answers
758 views

fit multiple pdf pages to one

Is it somehow possible to "zoom out" a multi-page PDF to fit all pages to one via command line (must work under Linux) e.g. I have a PDF generated with XSL:FO/FOP with a table (the red one in the ...
1
vote
1answer
122 views

how to speed up my .bash_history commands

I use my .bash_history all the time using ctrl-R to find complex commands I figured out in the past and since forgot how to run. I have a large history (50,000) lines, managed by these commands in my ...
17
votes
5answers
1k views

What does it do exactly if I click in the window of cmd?

Suppose I run cmd.exe and ping localhost. After that I ping localhost again but I click into the window and the ping stops until I press enter. What happens exactly when I click into the window? Does ...
5
votes
1answer
10k views

How to cut at exact frames using ffmpeg?

I'm trying to use ffmpeg to cut video files at precise times. The ffmpeg help shows an option -timecode_frame_start to specify the starting frame but I am unable to get this command to work. The ...
0
votes
0answers
1k views

DNS Suffix Search List in wrong order

I'm having a bit of trouble with the DNS Suffix Search List. I have changed the order (Network Settings > Right Clicked on Relevant Connection > Properties > Internet Protocol (TCP/IP) > Properties > ...
2
votes
1answer
147 views

Why isn't the Ubuntu terminal interactive?

I'm very new to Ubuntu. If I do: rm removeText The terminal is doing it silently. Why can't it say: removeText removed or something similar? I'd like this so that every time I remove a file, ...
7
votes
1answer
4k views

Accurately cut video files from command line

I'm having trouble finding a cli application that can take a video file (avi, mkv, and mp4 preferably) and cut out very short clips (2-6 seconds) with precision time accuracy. I've tried ffmpeg, ...
3
votes
1answer
6k views

Unzip .rar from command-line with 7-zip

On windows command-line I can extract archives like this: 7za e somefile.zip I know 7zip supports .rar in the gui but can it be done in commandline mode? Thanks
1
vote
1answer
1k views

How can I run DavMail from the command-line (or are there any alternatives?)

Microsoft Outlook, the mistress of many a company - requiring constant attention, and preventing you from using an email client that you actually like (like Alpine). I'm one of those weird people who ...