Source

shlomi-fish-homepage / t2 / lecture.html

<html>
<head>
<title>Command Line Lecture for Newbies</title>
</head>
<body bgcoolor="#FFFFFF">

<h1>Topics for the Command Line Lecture for Newbies</h1>

<h2>Part 1: Command Line</h2>

<ol>
<li> Opening a terminal. (The Terminal Icon on KDE)

<li> Exiting from a terminal. (exit or the X button)

<li> The Command Loop

<li> cd

<li> pwd

<li> ls<br>
<ul>
Flags: -l -a -R
</ul>

<li> mkdir<br>

<li> cp<br>
<ul>
	Flags: -r -i -f
</ul>

<li> mv<br>
<ul>
	Flags: -i -f
</ul>

<li> rm<br>
<ul>
	Flags: -r -i -f
</ul>

<li> wildcards and their use (*, ?, [ ])

<li>less/more<br>
<ol>
<li>Quitting with q
<li>Next Page with space/Page-Down
<li>Previous Page with b/Page-Up
<li>To the end with &gt;
<li>To the beginning with &lt;
<li>One line down with Down-Arrow/j
<li>One line up with Up-Arrow/k
<li>Moving Sideways: Right-Arrow/Left-Arrow
<li>Searching with / (forward) and ? (backward)
</ol>

<li>kdehelp

<li>man

<li>makewhatis + apropos

<li>The "--help" and "-h" switches.

<li>find
<ul>
	Flags: -name
</ul>

<li>Piping: 
<ul>
<li>&gt;
<li> |, 
<li>2&gt
<li>&amp;1
</ul>

<li> Shell Goodies:
<ul>
	- The command history (up and down arrows)<br>
	- TAB filename completion<br>
        - Ctrl+A, Ctrl+E, ALT-F, ALT-B<br>
</ul>
</ol>

<h2>Part 2: Job Control / Interaction With X</h2>

<ol>
<li>Ctrl+Z
<li>Ctrl+C
<li>&amp; 
<li>bg
</ol>
<br>



<h2>Part 3: vi</h2>

<ol>
<li>Invoking vi (vi/vim/gvim)

<li>Exiting (:q and :q!)

<li>Saving the file (:w)

<li>Moving around:
<ul>
	- The Arrow Keys + h-j-k-l
</ul>

<li>Adding text (i/a) and getting back to command mode (ESC)

<li>Deleting text:
<ul>
	- x/DEL<br>
	- dd
</ul>

<li> Advanced movement commands:
<ul>
	- 0 and $<br>
	- gg and G<br>
	- digits + movement
</ul>

<li> Getting help: (:help)

</ol>

<h2>References and Links</h2>

<a href="http://www.linux.org.il/LDP/LDP/gs/gs.html">
http://www.linux.org.il/LDP/LDP/gs/gs.html</a> - <br>
<ul>
<b>The Linux Installation and Getting Started Guide</b>
</ul>
<br><br>

<a href="http://www.linux.org.il/LDP/docs.html#guide">
http://www.linux.org.il/LDP/docs.html#guide</a> - <br>
<ul>
<b>The Linux User's Guide</b>
</ul>
<br><br>

<a href="http://www.geek-girl.com/Unixhelp/">
http://www.geek-girl.com/Unixhelp/</a> - <br>
<ul>
<b>UNIX Help For Users</b>
</ul>
<br><br>



</body>
</html>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.