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
3answers
61 views

How to make last line the first (the top) of the terminal?

I have a mac, and for improved readibility, sometimes I clear the terminal. I'd like to know if there's a shorcut to make the last line become the first of the terminal without clearing anything in ...
10
votes
4answers
12k views

Utility for extracting MIME attachments [closed]

I am looking for a command-line tool for Unix (ideally, available in a Debian / Ubuntu package) for extracting all MIME parts from a multipart email message (or the body from a singlepart with an ...
2
votes
2answers
1k views

Command line multitrack audio looper for Linux?

Given a number of audio files, (say, *.wav), I'd like a command line way to mix these files as tracks with individual volumes, and define global loop points, so the audio mix loops seamlessly. Could ...
3
votes
1answer
698 views

How do i run app in bat nonblocking?

Lets say i want to do gcc a.cpp BUT i dont want to block. I just want to run and continue, like running in the background. How do i do that in a bat file? I'm using windows 7
2
votes
1answer
10k views

Turn off monitor from windows command line [duplicate]

Possible Duplicate: Turn off display in Windows 7 without additional software Windows has a way to turn off the display after a period of time. But I want to run a scheduled task to turn ...
0
votes
2answers
115 views

Opening Python in CMD (Unfixable Error)

I recently tried opening one of my Python projects with CMD to see what would happen. The result did nothing amazing, but Windows 7 thought I wanted to open .py files in CMD all the time. I have ...
8
votes
5answers
11k views

Running multiple concurrent background processes then wait for all of them to terminate, on Windows

Anybody know if there is cmd script that does that and/or a command line tool ready for the job? Thanks!
10
votes
8answers
47k views

How to get my external IP address (over NAT) from the Windows command-line? [duplicate]

The Windows "ipconfig" command can only show me the parameters from the Ethernet interfaces from my machine (even with the ipconfig /all argument). It can show detailed information about the ...
2
votes
0answers
554 views

How to change the profile of current tab in gnome from command line

If I do this gnome-terminal --profile=NEW_PROFILE it indeed changes to the new profile but opens a new window. But I want it to change the profile of the current tab and not pop up a new window. ...
1
vote
0answers
110 views

Setup mutt to read through a threaded message and then return to the email index

I have begun using mutt (terminal email client) recently and I have it setup very nicely and easy to use. My only gripe is that sometimes it is difficult to tell when I transition from one thread to ...
2
votes
2answers
3k views

ffmpeg works on terminal not with PHP exec

If I execute a ffmpeg command from terminal, I get the desired result: ffmpeg -i src.mp4 -ar 22050 -ab 32 -f flv -s 320x240 video.flv Terminal's output ... video:3404kB audio:1038kB global ...
0
votes
1answer
583 views

Configuring Notepad++ to run knitr2pdf

Sorry for such a basic question but since I do not have a degree in programming... I am a user of R, knitr and Notepad++. I was trying to configure Notepad++ to run pdflatex and knitr(knit2pdf). By ...
2
votes
3answers
2k views

Displaying file names with a certain number of characters in command line

I need to list all text files on the C drive whose names are seven characters long. I tried the following command DIR ???????.txt However, this command displayed files with seven characters and ...
2
votes
2answers
440 views

Do not batch move files that are currently written

I need to periodically move some tv records, however it is possible that one of them is still recorded during moving. now i need a batch utility that can detect if a file is already completely written ...
5
votes
2answers
4k views

Get the complete command line of a process [duplicate]

I can run taskmgr, Display, add column, select "command line", and I will see the complete command line of a process. For what I check, this command line is quite long, and I can write it out (CTRL-C ...
2
votes
2answers
2k views

Is it possible run CMD.exe as Admin -AND- Start In a different partition?

There are many questions on running CMD.exe as admin on Windows 7, however none of them appear to include a different "Start In" directory / partition. I can start a command prompt in a different ...
2
votes
1answer
110 views

Finding an unmatched paranthesis in a file

So I have this huge file (a SharePoint rendering templates file, if you're interested). The problem is, it doesn't work, because somewhere inside that file, in a code block, there is an unmatched '('. ...
2
votes
1answer
7k views

What is a stopped process in linux?

So I had some PHP scripts running from the command line, and wanted to stop them running. I ran $ ps aux | grep php $ sudo kill 8754 $ sudo kill 8767 And then ran $ ps aux | grep php again to ...
2
votes
1answer
724 views

Is there a way to copy the file paths of ALL active windows' opened files? (for saving and restoring your Windows session across a restart)

There is a program I know of called Twinsplay - Professional Edition, which among its other functions, can 'session save' your current open files (i.e. user-opened files - whatever is actively ...
1
vote
1answer
668 views

Trying to get to the command prompt through recovery disk

I'm trying to reach the command prompt through a vista recovery disk I have, and it boots from the disk and gets to the point where it asks which installation I want to repair and then says the disk ...
3
votes
1answer
2k views

cat: /tmp/st.socket No such device or address

I am getting this report when i use the cat to view files within the /tmp directory. cat /tmp/st.socket cat: /tmp/st.socket No such device or address Cheers
0
votes
1answer
90 views

Passing in dialog answers for command-line application on launch

I'm using pianobar for listening to Pandora from my terminal. On each launch it asks for an email & password. I'd like to pass this information automatically when I launch pianobar, so I don't ...
2
votes
1answer
779 views

Mac OS X shutdown - is it possible to make it force all programs to quit? [duplicate]

Possible Duplicate: How to easily shutdown OSX Instead of showing the dreaded error message Application <X> cancelled shutdown, can I make it always force open programs to quit?
0
votes
0answers
571 views

Command to close window from Command Prompt

I have some scripts to do some work for me on Windows 7, and one issue I have is that my most used script lives on a flash drive, clears out the Drivers folder, then opens the Drivers folder for me ...
2
votes
1answer
1k views

Windows command line - get pdf page width and height in pixels?

I need a piece of software (a freeware preferably) that will display what is the pixel width / height of a pdf page. If there are many pages with different dimensions, I'd be enough to just get the ...
24
votes
4answers
6k views

How can I widen the Windows 7 Command Prompt window?

How can I widen the Windows 7 command prompt window? It's fixed at 80 columns in width and dragging the window edges won't let me make it any bigger than that.
0
votes
1answer
490 views

SSH to drive letter in Windows 2003

I have a Windows 2003 server running a SSH server (WRQ Reflection), how would I ssh to it and specify a specific drive letter? (like the D: drive) ex: from another workstation: ssh ...
1
vote
1answer
466 views

Two PowerShell commands together?

How can I execute two PowerShell commands such that I only send text to the prompt once and the second command executes only after the first command has executed successfully?
1
vote
2answers
820 views

Execute x86 PDFCreator.exe in the “Program Files (x86)” folder from x64 the command line w arguments?

How can I call an x86 application in the Program Files (x86) folder from the x64 command prompt? The x86 exe functions w/o problems on a x64 Win XP, but how to call it from a command propmt? ...
0
votes
2answers
192 views

CHM e-book cover extraction

I would like to extract a "book cover image" from a series of CHM files, which command line tool can do that, please? I have looked at the source of the QuickLook plug-in "quickchm1.1_source" and at ...
0
votes
0answers
190 views

How does Adobe convert WAV to MP3?

When using Adobe's programs (Flash for example) to convert WAV audio to MP3 there is no silent gap added to the beginning of the MP3 file like it is when I for example use LAME (when using LAME a ...
3
votes
3answers
2k views

How to convert WAV to MP3 without adding silence at the beginning

Here's what I need to do: Convert a 30.0 sec WAV to a 30.0 MP3. I've tried doing this using LAME however no matter what I try LAME always adds a short moment of silence to the output mp3. Using LAME ...
2
votes
1answer
40k views

How do I create a superuser from the command line in Ubuntu? [duplicate]

Possible Duplicate: How to create a admin user on ubuntu How can I create a superuser in Ubuntu 11.10? I need to create it using the command line. Either we could change a normal user to ...
1
vote
0answers
96 views

Command-line client for gpm daemon?

I want to put output of some command in the gpm "clipboard", like: echo "hello" | some-fancy-gpm-client to be able to then "right-click" and paste it to terminal. Is there some program for that? ...
1
vote
3answers
192 views

Piping file to a command that doesn't implement piping

$ cat foo foo bar Now if I do: $ some_program foo It's working. But if I try: $ cat foo | some_program It's not working. I'm looking for a clean way to pipe input to some_program without ...
0
votes
1answer
8k 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
268 views

how to increase 16 character limit to display user name in Terminal / UNIX?

I have several Mac users attached to my NAS whose usernames exceed the 16 char user display (ie SportsFreelancer01), so under the ls -al command, it shows up as user "SportsFreelancer", without #. Is ...
12
votes
4answers
12k views

How can I search a file by its name and partial path?

Often I have a file name and it's partial path, e.g. "content/docs/file.xml". Is there a simple way to search for that file, without manually cutting into parts its name to provide directory name ...
5
votes
2answers
8k views

Start elevated command prompt in %UserProfile% directory by default?

When I start an elevated Command Prompt in Windows 7 or Windows Vista, the initial directory is the %SystemRoot%\system32 directory. This is the default Windows behavior, and is not a problem ...
11
votes
2answers
4k views

Show/hide extension of a file through OS X command line

I'm looking for a way, via terminal, to change whether or not a specific file's extension is shown in the Finder, something along the lines of: $ hideextension ~/music/somesong.mp3 Without having ...
1
vote
0answers
179 views

Special characters in the input of hunspell are treated as space

I am testing hunspell in the command line with a swedish dictionary. The input in the interactive mode replaces all special characters (for example å ä ö) with blanks before spell cheching. Hunspell ...
0
votes
1answer
93 views

gnu `uniq -c`: display counts graphically as bars

With sort $file | uniq -c, it's possible to sum up files/input and show the number occurences like that: 13 foo 1 bar To get a better grasp of this data, I'd like to see them graphically ...
3
votes
2answers
1k views

Unix “time” command with pipeline prints no time-report

Of the two C-shell aliases below, only the first prints the time command's report of elapsed time. How can I get the alias with the pipeline to also print the time report? alias make1 'time make' ...
0
votes
1answer
188 views

How do I see who's logged in?

I'm having a little problem. I need to (from the command line) be able to see what users are logged in. Here's the tricky part: I DO NOT want those users that have locked their screens and left their ...
1
vote
1answer
600 views

Using overwrite in vim but I'd like different behaviour from carriage returns

So I'm putting text in a particular area in vim... I'm using REPLACE mode so that I don't mess up the 'far edge' of the 'rectangle' when I type. It would be great if when I pressed enter in this ...
2
votes
2answers
2k views

Windows command line “at” command to run 10 seconds from now

I want to run some command once, 10 seconds to 1 minute from now. Windows at command only receives absolute times, like 11:50. How can it be done? Can it be done with other command line means?
16
votes
2answers
30k views

How do I find the size of a directory on a Unix-like command-line?

I know this is a very basic question, but I searched the web and did not find a simple answer. I'm sure it's some kind of two or three letter command, right?
0
votes
1answer
107 views

Command history for user never using interactive shell

Can I view the history of a non-interactive user, for example, httpd? Hopefully, the answer is not specific to the shell used. I'm looking for history that could be in either bash or dash.
0
votes
2answers
4k views

Customizing CSH prompt

I'm using the directions here to customize my CSH prompt. Here's what I'm using: set prompt="\n%{\033[1;32m%}%m %{\033[36m%}${cwd}$ %{\033[0m%} " First of all, the ${cwd} part isn't giving the full ...
4
votes
4answers
9k views

How to determine the user and group of a deamon in Ubuntu?

How can I check the user and group for the nginx daemon in Ubuntu? Or what's the syntax to find the user and group for a deamon running in Ubuntu?