Topics for the Command Line Presentation for Newbies
Part 1: Command Line
Opening a terminal. (The Terminal Icon on KDE)
Exiting from a terminal. (exit or the X button)
The Command Loop
cd
pwd
ls
Flags: -l -a -R
mkdir
cp
Flags: -r -i -f
mv
Flags: -i -f
rm
Flags: -r -i -f
wildcards and their use (*, ?, [ ])
less/more
Quitting with q
Next Page with space/Page-Down
Previous Page with b/Page-Up
To the end with >
To the beginning with <
One line down with Down-Arrow/j
One line up with Up-Arrow/k
Moving Sideways: Right-Arrow/Left-Arrow
Searching with / (forward) and ? (backward)
kdehelp
man
makewhatis + apropos
The “--help” and “-h” switches.
find
Flags: -name
Piping:
>
|,
2>&1
Shell Goodies:
The command history (up and down arrows)
TAB filename completion
Ctrl+A, Ctrl+E, ALT-F, ALT-B
Part 2: Job Control / Interaction With X
- Ctrl+Z
- Ctrl+C
- &
- bg
Part 3: vi
- Invoking vi (vi/vim/gvim)
- Exiting (:q and :q!)
- Saving the file (:w)
- Moving around:
- The Arrow Keys + h-j-k-l
- Adding text (i/a) and getting back to command mode (ESC)
- Deleting text:
- x/DEL
- dd
- Advanced movement commands:
- 0 and $
- gg and G
- digits + movement
- Getting help: (:help)