Advanced

The Linux Command Shell For Beginners: Fear Not The Command Line!

Posted by Scott_Ruecker on · 8 comments
LinuxPlanet; By Akkana Peck
Mail this story
Print this story

In her last installment, Akkana Peck gave us a friendly introduction to the Linux command line. Today we learn the difference between the console, terminal, and shell, and some slick shortcuts that are faster than a GUI.

Full Story

  Nav
» Read more about: Story Type: News Story; Groups: Linux

» Get new stories by e-mail: nightly or as they are published

« Return to the newswire homepage

  Related stories
» More like this

Comments (8)

From the article:

Quoting:If you're used to using Ctrl-C and Ctrl-V to copy and paste, you may find yourself frustrated in a terminal program... So don't forget that you can use the other Linux Copy-and-Paste method: just highlight what you want with the mouse, then middle-click in your terminal window.


But that involves the mouse. Eeeuuw. Luckily most (all? probably not) terminals know Ctrl+Shift+C and Ctrl+Shift+V for copy/pasting.
> But that involves the mouse. Eeeuuw.

I'm been a happy unix/X windows user since the early 90s. I love the unix copy/paste mechanism. left button to copy, middle button to paste. So much nicer than the arcane key stroke sequence or menu navigation required to do it peecee style.

How could you not prefer the unix way?
Because you can't replace a selection that way.

Select text. Ctrl+C to copy. Select different text. Ctrl+V to replace the selection with the text you copied earlier. You can't do that with middle-click. Also, sometimes I accidentally drag my mouse a bit when clicking. That makes a new selection and destroys the old one. Now middle-click won't work.

Actually I like vim's controls even better. Copy (yank) with y and paste with p. It's too bad that I can't use it everywhere. I'd love to have the power of vim available in firefox (textareas), OpenOffice.org or even just the bash terminal. I often find myself pressing Shift+V to select an entire line of text, only to see a capital V appearing.
How do you select text without using the mouse?
Shift+arrows/Home/End/PgUp/PgDown.
Sander, if you can remember > Shift+arrows/Home/End/PgUp/PgDown < You may be a Geek.

And this just consigned the Colonel to lowly user status for evar.

@Colonel: It's not all strung together. Just hold shift and move the cursor (arrows, home, end, pgup and pgdown all move the cursor).
> How do you select text without using the mouse?

Actually I'd spend the $9 and get a mouse.

Seriously, if I'm accessing a headless server via an ssh session in a konsole, xterm or gnome terminal session, then I use the logitech gaming mouse I already have on my workstation.

If I'm working on location on a mouseless server somewhere, I'm probably not going to be doing a lot of copy/paste anyway. If anything, I'll make use of awk, sed, grep, emacs command line editing and file redirection, and clean it all up with vi.

Post a comment

A free account is needed to post. Write your comment here first: your text is kept in this browser while you sign up or log in, and is waiting for you when you come back.

Your message:
|||||
10
Markdown: **bold**, *italic*, [text](https://link), - lists, > quotes, $x^2$ for math. Formatting help

Sign up and post (it is free)  or  Log in and post