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)

23
votes
9answers
6k views

Windows “cmd” Replacements [closed]

Resizing is one of the biggest problems I face with the default Windows command prompt. Are there are any free/open source alternatives available?
21
votes
9answers
28k views

Navigate to previous directory in windows command prompt

Is there any command / tool to navigate previous directory in windows command prompt? In linux usually use cd - for previous directory navigation.
13
votes
5answers
58k 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 ...
8
votes
2answers
3k views

Make OS X Terminal commands I type BOLD

I'd like to make commands I've typed (input) into terminal stand out from all the output. For example: imac:~ buster$ chmod -R g-w myfolder imac:~ buster$ cd myfolder imac:myfolder buster$ ls -l ...
7
votes
2answers
22k views

What are the methods available to get the CPU usage in Linux Command line? [closed]

We know that top is a command to get the CPU usage in Linux and other ways include cat /proc/stat which is used by top. What are other methods to get the CPU usage in the Linux command line? Use ...
6
votes
7answers
23k views

Regex Replace from Command line

Is it possible to regex replace from command line? Right now I'm using notepad++ to do this. In command line I can only use FINDSTR wich can only locate the mached files/lines EDIT : Maybe it will be ...
31
votes
4answers
17k views

Setting environment variable for just one command in Windows cmd.exe

In Bash, I can do EDITOR=vim command and command will be run with EDITOR set to vim, but this won't affect the value of EDITOR in the shell itself. Is it possible to do this in cmd.exe?
17
votes
1answer
124k views

Batch file that runs cmd.exe, a command, and then stays open at prompt

I would like to make a batch file that: Opens cmd.exe Within that Command Prompt runs net use to display mapped share paths Leaves the window open so that I can run additional commands if I wish to ...
15
votes
4answers
14k views

Using wildcards with the rmdir or rd command

Let's say there are some folder in the D: drive: D:\Air D:\Abonden D:\All D:\Whatever I want to delete all folders starting with "A" (including all subfolders and files). I tried this command: ...
10
votes
6answers
88k views

Change Windows 7 file permissions from command prompt

How can I change Windows 7 file permissions using the command prompt? I want to change permissions in program files, but cacls is not working for me.
6
votes
2answers
18k views

Can I force a greater screen brightness from Windows Command Prompt

I have a Sony Vaio laptop, and it runs windows 7. I know I can adjust screen brightness from the control panel, but I want to force it to be even brighter. Is there a hack, or a way to do this from ...
6
votes
2answers
16k views

Converting images to video using FFMPEG on Windows

I'm trying to convert a series of JPEG images into a time lapse video. They're in the format IMGP0001.JPG, IMGP0002.JPG, etc. From the looks of things, this should match the pattern IMGP%04.JPG. I've ...
25
votes
6answers
13k views

How to pipe text from command line to the clipboard

I'd like to do something like dir *.* > clipboard ie. get to get the standard output of a command line program copied to the clipboard. Can this be done on a standard XP machine without ...
15
votes
7answers
20k views

7zip doesn't ask me for password for a zip I encrypted while double-clicking it

I just tried to encrypt a folder with 7zip by command line choosing a password but when double-clicking on the zip file, it shows me the files list without asking any password. Is there any way to ...
15
votes
4answers
183k views

How do I get the “net send” messenger service working on Windows 7?

When trying to use the method below to send message in Windows 7 nothing happens. net send It seems the Messenger Service is not working. Any suggestions as to why?
11
votes
3answers
12k views

Filtering top command output

I'm running a Mac and want to filter the output of the top command for a particular process such that only the PID, COMMAND and %CPU columns are displayed. After getting the PID of the process, I ...
8
votes
8answers
11k views

Unix-type “locate” on Windows?

Using the Windows CLI (cmd), how does one locate a file that he knows part of the name of? For instance, every single Windows workstation installs javac in a different location, how would one find it ...
8
votes
3answers
29k views

command line text editor like “edit” for windows x64 [duplicate]

is there any command line editor like the old edit for windows x64?. I exclude VIM because i don't like the mode behavior. I would like a editor were i could write just as i write in any application. ...
8
votes
2answers
12k views

Is there a ln symlink command in Windows 7 [duplicate]

Possible Duplicate: Does window have the ln -s or equivalent? Is there an equivalent ln command to create symlinks in Windows?
6
votes
3answers
9k views

How to update the PATH user environment variable from command-line

I have a system PATH variable with the system level config. I use the user PATH variable to complement the PATH with user-specific config. I would like to update the user PATH variable from ...
6
votes
1answer
14k views

Set Permanent Environmental Variable in Windows XP

I want to set environmental variables permanently through a batch file. Is there a command to set Permanent Environmental Variable (other than SETX) for Windows XP service pack 3? command SETX ...
4
votes
4answers
49k views

How do I recover from “repair pending” error in SFC?

I am trying to fix an issue with Windows registry and services. I tried running sfc command but this is the error message I get? C:\Windows>sfc /scannow Beginning system scan. This process will ...
3
votes
8answers
18k views

How do I rename a bunch of files in the Command Prompt?

I have a problem with filenames. The stupid camera I am using resets the autonumber sequence every so often, and therefore I am getting tons of conflicts if I try and put lots of photos in a single ...
3
votes
2answers
13k views

Is there any way to change the password of the current user account using the command line?

Are there any commands for the Windows command line which allows you to change the password of the account? What about without using the current password? (I saw a video about it once and it worked ...
27
votes
6answers
4k views

What is the general consensus on “Useless use of cat”?

When I pipe multiple unix commands such as grep, sed, tr etc. I tend to specify the input file that is being processed using cat. So something like cat file | grep ... | awk ... | sed ... . But ...
20
votes
5answers
16k 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 ...
16
votes
7answers
9k views

Why doesn't the Windows command prompt window maximize to the full screen size?

Anyone know why doesn't the Windows command prompt window maximize to the full screen size? To the best of my knowledge, even in the new Windows 7 the command prompt window(cmd.exe) doesn't maximize ...
11
votes
8answers
59k 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 ...
9
votes
2answers
6k views

Where are the default settings saved for the Command prompt defaults?

Where are the default settings saved for the Command Prompt defaults? Are they stored in the registry somewhere, or in a file? I would love to make a .reg file to set my default preferences when ...
9
votes
5answers
68k views

Command-line FTP function does not work

I am using Windows 7 and have multiple FTP client applications working without any problem. However, when I use command-line FTP, I can get connected, log in (after entering user name and password), ...
8
votes
4answers
25k 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 ...
6
votes
5answers
1k views

Windows command line emailer [closed]

I have a Win2k3 box that I need a command line mailer to automate the sending of a log file. While I did some searching and came across a variety of tools that might work, I was just hoping for ...
5
votes
2answers
1k views

Windows 7 CMD.exe jumplist possible?

It seems CMD does not have it's own jumplist.Has someone created one already? I would like to be able to pin script and command files to cmd.exe only.I can pin them separately with the /explorer as ...
5
votes
2answers
5k views

Using command line to connect to a wireless network with an http login

I'm trying to connect to a wifi network where it hijacks all requests and redirects you to a page where you have to agree to a terms of use before it lets you connect to the actual outside world. This ...
3
votes
1answer
654 views

Specify display style to use with the growlnotify command-line utility

Is there any way to change what display style is used with the growlnotify command line utility? I don't want to change the default one, just the one that is used for that instance of the command.
3
votes
2answers
13k views

Command line wizardry: spaces in file names with find | grep | xargs

I need a way to run grep on a list of files which may contain spaces in the file name. On a list of files with no spaces, it's pretty straight forward and easy. Also, I know how to deal with spaces in ...
2
votes
2answers
19k views

How to find my VPN client IP in windows

When I run ipconfig and I get the following: C:\Documents and Settings\grmsrh14>ipconfig Windows IP Configuration Ethernet adapter Wireless Network Connection: Media State . . . . . . . ...
2
votes
3answers
19k views

Windows 7: Transparent command window? [duplicate]

Possible Duplicate: Transparent Command Prompt in Vista? Linux and other *nix based operating systems usually have an option for transparent command window displays. Is there a way to get ...
17
votes
3answers
49k views

Chkdsk Questions

Recently in running chkdsk /r on my system drive (platter drive, Windows 7 Ultimate 64bit) I've gotten back "4 EA records processed" and "76 reparse records processed". Am I right in assuming these ...
13
votes
6answers
122k views

How do I FTP multiple files from the command line?

I would like to FTP the contents of a directory, but I can't seem to find the right way to use a wildcard. It seems like this would be a common thing to do; is my whole approach wrong? The command is ...
9
votes
6answers
3k views

Stopping command prompt from showing current directory in windows XP?

How do I stop the command prompt from showing c:\dir1\dir2\dir3\dir4 It gets really annoying when I'm 5 or 6 directories deep.
8
votes
3answers
24k views

Telnet won't run from cmd prompt in windows 7

Edit:I am running windows 7, 64 bits. I have Telnet Client installed, and if I go to c:\windows\system32 i do find the file "telnet.exe"; if I click it, telnet runs perfectly. However, if I type ...
8
votes
1answer
13k views

What command-line options are available in Adobe Acrobat (not Reader) for modifying documents (Convert, Merge, etc.)?

See title. I'd like to convert a bunch of XML files to PDF using Adobe Acrobat (9.0). Currently, I'm opening each of these files with IE and then convert them manually using the Acrobat Plugin. I'm ...
6
votes
1answer
12k views

How to mount an NTFS filesystem, allowing all users full access?

How could I mount an NTFS filesystem in a way that would allow all users full access to it? If I use sudo mount -t ntfs /dev/sda1 /media/drive, then only the root user can use it. It won't let me ...
3
votes
1answer
4k views

Linux command-line: Quick way to disable internet (keeping LAN)?

Split question: this other one here is for Windows. Linux: Fastest way to disable internet (keeping LAN) from command line? I think the easiest way to deactivate internet (not LAN) in Linux is ...
1
vote
1answer
3k views

Change what closing the lid does, from the commandline?

I wonder if anybody knows a utility, or command, which can change this setting in windows in one click. I often need to change it on my laptop whether I want it to do nothing when the lid is closed or ...
1
vote
1answer
5k views

Launching Firefox into “chromeless” mode from command prompt

Does anyone know if there is a way to launch Firefox (3.*) into "chromeless" mode from command prompt? The end result I am striving for should look like one of those "chromeless" windows that can be ...
1
vote
3answers
3k views

Modification of files with 777 permissions but not with 755 permissions?

I can modify the files with 777 permissions, but not with 755. I do it by sourcing some sed commands. I find it odd because I can modify the files with even 700 permissions in Vim. Why is it not ...
16
votes
5answers
58k views

How to disable the command prompt's auto-close upon completion?

I know there were some tricks with older versions of windows to accomplish this, but not sure on windows 7. If I had a piece of software that executes a command with switches resulting in a cmd.exe ...
12
votes
3answers
3k 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 ...