How do you learn the command line?

Pages: 12
now as in 1993?

I meant Linux terminal. You can use the subsystem and download the Ubuntu app in the Windows store.
mingw32 ("Minimalist GNU for W32") https://en.wikipedia.org/wiki/MinGW was there already 1998. It included at least rxvt.

If "terminal" means a program that draws a window and within that window is shows stdin&stdout of a shell, then there are many terminals, like xterm, GNOME Terminal, rxvt, etc.
https://en.wikipedia.org/wiki/Terminal
https://en.wikipedia.org/wiki/List_of_terminal_emulators
They are not Linux-specific.

You can run shell in GNU Emacs buffer too.

"Virtual console" is what non-GUI (but you can have mouse there and cat+mouse is already plenty) "terminal" on GNU/Linux is usually called.


GUI telnet and ssh clients offer terminal to a shell that runs in remote machine. Command line ssh client started by local shell (that you access via terminal) connects you to remote shell.


DOS 5.x had/was CLI, albeit bit different from Unix shells.
From the original post, it's not clear if you're asking:
- how to use the shell program, like ksh, bash, or cmd?
- how to use command line utilities, like grep, ls, cat?
- how to write a C++ program that uses command line arguments.

Shells and shell programs are wonderful things. You can create a simple script in no time. Of course, you need some knowledge of the command line utilities too. A key enabler here is pipes. They are truly wonderful things.

As for the command line, learn and use getopt(). It will make your command line programs behave like the OS ones.
Topic archived. No new replies allowed.
Pages: 12