It is bit pain to work with Windows command prompt. I've been working with Linux and Windows. Linux terminal has more advantages than the XP command prompt, so I would like to use a Linux terminal on Windows. Does anyone know how can we do that ? I don't want to run Linux commands on Windows. But I like the features on Linux terminal so I want to use same features for the Windows command prompt or use Linux terminal on Windows.
Linux – Run Linux terminal on Windows
command linelinuxterminalwindows
Related Solutions
If you're using PuTTY, I'd just duplicate the session.
Remember that PuTTY is a Windows application, and your Linux machine can't make a new Windows application instance.
If you have an X Window server (and you can download XMing XServer for free), you can run a few different terminals, including xterm
, gnome-terminal
or konsole
, etc.
You can also use the same PuTTY window with multiple sessions with screen or tmux.
the old thing is called 'doskey'. it is in fact quite a familiar sight for us old buddies...
check out its help page:
C:\Users\bubu>doskey /? Edits command lines, recalls Windows commands, and creates macros. DOSKEY [/REINSTALL] [/LISTSIZE=size] [/MACROS[:ALL | :exename]] [/HISTORY] [/INSERT | /OVERSTRIKE] [/EXENAME=exename] [/MACROFILE=filename] [macroname=[text]] /REINSTALL Installs a new copy of Doskey. /LISTSIZE=size Sets size of command history buffer. /MACROS Displays all Doskey macros. /MACROS:ALL Displays all Doskey macros for all executables which have Doskey macros. /MACROS:exename Displays all Doskey macros for the given executable. /HISTORY Displays all commands stored in memory. /INSERT Specifies that new text you type is inserted in old text. /OVERSTRIKE Specifies that new text overwrites old text. /EXENAME=exename Specifies the executable. /MACROFILE=filename Specifies a file of macros to install. macroname Specifies a name for a macro you create. text Specifies commands you want to record. UP and DOWN ARROWS recall commands; ESC clears command line; F7 displays command history; ALT+F7 clears command history; F8 searches command history; F9 selects a command by number; ALT+F10 clears macro definitions. The following are some special codes in Doskey macro definitions: $T Command separator. Allows multiple commands in a macro. $1-$9 Batch parameters. Equivalent to %1-%9 in batch programs. $* Symbol replaced by everything following macro name on command line. C:\Users\bubu>
it doesn't keep the history in a file though, you can of course use doskey /history >file and stuff to do that, but it is not as automated as bash. ctrl-c generates interrupt and thus is not used in consoles. even xterm wouldn't allow that. (xterm uses mouse select as copy and right click as paste, for the matter)
alternatively, you can use cygwin and use bash instead... it also runs on windows.
Best Answer
Try cygwin and bash.
Most Linux users use bash so I'm guessing that's the console you are referring to.