Questions tagged [command-line]

An interface for interacting with a computer using typed commands in a text-oriented environment, as opposed to a graphical user interface (GUI).

Questions that should have this tag

  • Scripting questions
  • BASH or Windows command line commands
  • PowerShell items

Basic Syntax

  • { option1 | option2 } - Choose one or the other
  • [ option ] - Optional
  • COMMAND -The command itself
  • parameter - Parameters that are required to complete the command

Extra Information

  • Commands for questions should have a backtick (`, to the left of the 1 on most keyboards) before and after any commands to help with realizing where the commands are
    • Example: How do I use the DIR command?
  • Whenever possible, because of how extensive and powerful the CLI can be, if there are long commands or scripts, either use the <pre></pre> tag before and after the script, or indent each line with 4 spaces. Example below:
@echo off
echo Hello World!
  • When answering questions, if at all possible, show where other users can replace different variables for their own use
    • Example: Replace the name with the username you are trying to use:
      NET USER JohnSmith
13311 questions
9
votes
3 answers

Windows 7 and cd to symbolic links

So I have created a bunch of symbolic links to top of source code tree, data directories, etc How do I, from command line, cd to these links?
reza
  • 395
9
votes
1 answer

Set environment variables from command line - and make them stick globally

Possible Duplicate: What are PATH and other environment variables, and how can I set or use them? In Windows 2008 Server R2, once I set an environment variable in the command line, how can I make it stick? For example, it's easy to write: set…
9
votes
1 answer

Windows command line: How to append a variable in a loop?

I'm trying to fill a variable with a space-separated list of files, but I can't quite seem to get my head around it. Here's what I have so far: set js_files= for %%f in (js/*.js) do set js_files=%js_files% js/%%f echo %js_files%…
Alan
  • 193
  • 1
  • 1
  • 5
9
votes
3 answers

How to open a PowerShell in the current folder?

This keyboard shortcut Shift + Menu , W , Enter opens the command prompt. Scott Hanselman points to an app that does the same for PowerShell and says it's builtin in Windows 7. The tool doesn't seem to work on Windows 7 and can't find the builtin…
Jader Dias
  • 16,316
9
votes
1 answer

I cannot complete command or file name in my cmd using TAB key. What have I modified from default settings?

I cannot complete command or file name in my cmd using the TAB key. When I press TAB it actually inserts a TAB space. What have I modified from default settings? I am using Windows 7.
Benny
  • 222
9
votes
6 answers

What command line tool can generate passwords on Windows?

I am looking for something that has an usage like passgen <length> <charset>
John
  • 1,225
9
votes
4 answers

How to pass vim buffer contents through shell command and capture the output to a split window

I've read lots of threads about running shell commands from vim, lots of documentation on vim commands, .vimrc and all that, but I just can't seem to understand the "ex" language or vim mappings well enough to do what I want, so here I am asking…
malvim
  • 195
9
votes
2 answers

Terminal FTP client with progress bar

I'm SSHing to a headless Ubuntu box and sometimes need to upload files from that box via FTP. The built-in FTP client does not show the progress of my upload (or at least I don't know how to view it). I just see this during the operation (which…
Siim K
  • 8,180
9
votes
4 answers

Efficiently change a single file extension in Windows

What is the simplest way of changing a file extension (without messing around with folder view options)? Oftentimes I have to quickly change the extension of a single file on a Windows PC. I don't like to turn on the option to show file extensions,…
HCL
  • 649
9
votes
2 answers

What is the best way to change drives through command line on a mac?

What is the best way to change drives through command line on a mac?
Daniel
  • 1,455
9
votes
3 answers

Command line argument for running as another user on Windows?

Under windows .msi installer, if you specify a custom action to be run at an application's installation time, it will get run under the "SYSTEM" user. Can I trick it by passing a command line parameter to the custom action (.exe file) and make it…
kellogs
  • 385
9
votes
3 answers

Linux audio tools: Is there a way to normalize the volume of .ogg files?

I want to normalize the volume of my whole music collection (.ogg files only). Of course I can't (don't want to) do this in a GUI tool (too much clicking effort). Is there a command line tool for Ubuntu Linux to do this?
9
votes
2 answers

How do I hide file extensions in a command prompt /dir output?

What I want to do seems very simple: I have a folder in Windows containing items of various types including PDF files, TXT files, and subdirectories. I am writing a one line .bat file to pull ONLY the PDF file names into a new text file. So far this…
NoCatharsis
  • 3,275
9
votes
4 answers

How can I make the `cmd.exe` window full-screen in Windows 7?

How can I make the cmd.exe window full-screen in Windows 7?
user31418
9
votes
6 answers

Text terminal hardware (for Linux)

Is there any way to obtain a hardware text terminal (preferably small in size) with a screen and a keypad to connect to a Linux machine (preferably via USB)? I'd like to be able to log into a command-line and do some work there while simultaneously…
DLH
  • 597
1 2 3
…
99
100