Skip to content

Commit 6a51b85

Browse files
committed
Added syntax
1 parent a78a88b commit 6a51b85

File tree

1 file changed

+69
-65
lines changed

1 file changed

+69
-65
lines changed

Slide/basiclinuxcommands.html

Lines changed: 69 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
<link rel="stylesheet" href="css/reveal.css">
1717
<link rel="stylesheet" href="css/theme/black.css" id="theme">
18+
<link rel="stylesheet" href="css/basiclinux.css">
1819

1920
<!-- Code syntax highlighting -->
2021
<link rel="stylesheet" href="lib/css/zenburn.css">
@@ -43,32 +44,21 @@
4344
<h2>
4445
Basic Linux Commands
4546
</h2>
46-
<p><small>Created by: Aashish Satyajith</small></p>
4747
</section>
4848
<section>
4949
<h2>
50-
Introduction: What is Unix?
50+
Introduction: What is Linux?
5151
</h2>
5252
<ul>
5353
<li>An operating system</li>
54-
<li>Developed at AT&T Bell Labs in the 1960’s</li>
54+
<li>Developed at AT&amp;T Bell Labs in the 1960’s</li>
5555
<li>Command Line Interpreter</li>
5656
<li>GUIs (Window systems) are now available</li>
5757
</ul>
5858
</section>
59-
<section>
59+
<section id="aash_code">
6060
<h2>
61-
Introduction: Unix vs. Linux
62-
</h2>
63-
<ul>
64-
<li>Unix was the predecessor of Linux</li>
65-
<li>Linux is a variant of Unix</li>
66-
<li>So is Mac OS X, so much of this tutorial applies to Macs as well</li>
67-
<li>Linux is open source</li> </ul>
68-
</section>
69-
<section>
70-
<h2>
71-
Introduction: Why Unix/Linux?
61+
Introduction: Why Unix/Linux?
7262
</h2>
7363
<ul>
7464
<li>Linux is free</li>
@@ -83,7 +73,6 @@ <h2>
8373
</h2>
8474
<ul>
8575
<li>The shell interprets commands the user types and manages their execution</li>
86-
<li>The shell communicates with the internal part of the operating system called the kernel</li>
8776
<li>The most popular shells are: tcsh, csh, korn, and bash</li>
8877
<li>For this tutorial, we are using bash</li>
8978
</ul>
@@ -97,31 +86,43 @@ <h5>
9786
<h2>
9887
Help!
9988
</h2>
100-
Whenever you need help with a command type “man” and the command name </section>
89+
Whenever you need help with a command type <code><font color="green">man</font></code> followed by the command name
90+
</section>
10191
<section>
10292
<h1>FILE SYSTEM COMMANDS</h1>
10393
</section>
10494
<section>
10595
<h2>
106-
Command: pwd
96+
pwd
10797
</h2>
108-
To find your current path use “pwd”
98+
<p>
99+
To find your current path use “pwd”
100+
</p>
101+
<p>
102+
Syntax: <code><font color="green">pwd</font></code>
103+
</p>
109104
</section>
110105
<section>
111106
<h2>
112-
Command: cd filename
107+
cd
113108
</h2>
114-
<p>To change to a specific directory use “cd”</p>
109+
<p>To change to a specific directory use cd command</p>
110+
<p>
111+
Syntax: <code><font color="green">cd</font><font color="yellow"> &lt;filename&gt;</font></code>
112+
</p>
115113
<ul>
116114
<li> “~” is the location of your home directory</li>
117115
<li>“..” is the location of the directory below current one</li>
118116
</ul>
119117
</section>
120118
<section>
121119
<h2>
122-
Command: ls
120+
ls
123121
</h2>
124122
To list the files in the current directory use “ls”
123+
<p>
124+
Syntax: <code><font color="green">ls</font></code>
125+
</p>
125126
</section>
126127
<section>
127128
<h3>
@@ -139,7 +140,7 @@ <h3>
139140
<section>
140141
<h3>Options can be combined:</h3>
141142
<ul>
142-
<li>Command: ls -ltr</li>
143+
<li>Command: <code><font color="green">ls</font><font color="yellow"> -ltr</font></code></li>
143144
</ul>
144145
<p>List files by time in reverse order with long listing</p>
145146
</section>
@@ -149,19 +150,25 @@ <h2>General Syntax: *</h2>
149150
</section>
150151
<section>
151152
<h2>
152-
Command: mkdir
153+
mkdir
153154
</h2>
154155
<p>
155-
To create a new directory use mkdir
156+
To create a new directory use mkdir
156157
</p>
158+
<p>
159+
Syntax: <code><font color="green">mkdir</font><font color="yellow"> &lt;dirname&gt;</font></code>
160+
</p>
157161
</section>
158162
<section>
159163
<h2>
160-
Command: rmdir
164+
rmdir
161165
</h2>
162166
<p>
163167
To remove and empty directory use “rmdir”
164168
</p>
169+
<p>
170+
Syntax: <code><font color="green">rmdir</font><font color="yellow"> &lt;dirname&gt;</font></code>
171+
</p>
165172
</section>
166173
<section>
167174
<h1>
@@ -181,19 +188,25 @@ <h2>
181188
</section>
182189
<section>
183190
<h2>
184-
Command: cat
191+
cat
185192
</h2>
186193
<p>
187194
Dumps an entire file to standard output
188195
</p>
196+
<p>
197+
Syntax: <code><font color="green">cat</font><font color="yellow"> &lt;filename&gt;</font></code>
198+
</p>
189199
</section>
190200
<section>
191201
<h2>
192-
Command: less
202+
less
193203
</h2>
194204
<p>
195205
“less” displays a file, allowing forward/backward movement within it
196206
</p>
207+
<p>
208+
Syntax: <code><font color="green">less</font><font color="yellow"> &lt;filename&gt;</font></code>
209+
</p>
197210
<p>
198211
<ul>
199212
<li>return scrolls forward one line, space one page</li>
@@ -205,11 +218,14 @@ <h2>
205218
</section>
206219
<section>
207220
<h2>
208-
Command: head
221+
head
209222
</h2>
210223
<p>
211224
“head” displays the top part of a file
212225
</p>
226+
<p>
227+
Syntax: <code><font color="green">head</font><font color="yellow"> &lt;filename&gt;</font></code>
228+
</p>
213229
<ul>
214230
<li>return scrolls forward one line, space one page</li>
215231
<li>y scrolls back one line, b one page</li>
@@ -219,11 +235,14 @@ <h2>
219235
</section>
220236
<section>
221237
<h2>
222-
Command: tail
238+
tail
223239
</h2>
224240
<p>
225241
Same as head, but shows the last lines
226242
</p>
243+
<p>
244+
Syntax: <code><font color="green">tail</font><font color="yellow"> &lt;filename&gt;</font></code>
245+
</p>
227246
</section>
228247
<section>
229248
<h2>
@@ -239,19 +258,25 @@ <h2>
239258
</section>
240259
<section>
241260
<h2>
242-
Command: cp source destination
261+
cp
243262
</h2>
244263
<p>
245264
Copies a file from source to destination
246265
</p>
266+
<p>
267+
Syntax: <code><font color="green">cp</font><font color="yellow"> &lt;source&gt; &lt;destination&gt;</font></code>
268+
</p>
247269
</section>
248270
<section>
249271
<h2>
250-
Command: mv source destination
272+
mv
251273
</h2>
252274
<p>
253275
To move a file to a different location use “mv”
254276
</p>
277+
<p>
278+
Syntax: <code><font color="green">command</font><font color="yellow"> &lt;source&gt; &lt;destination&gt;</font></code>
279+
</p>
255280
<p>
256281
<ul>
257282
<li>mv can also be used to rename a file</li>
@@ -260,11 +285,14 @@ <h2>
260285
</section>
261286
<section>
262287
<h2>
263-
Command: rm filename
288+
rm
264289
</h2>
265290
<p>
266291
To remove a file use “rm”
267292
</p>
293+
<p>
294+
Syntax: <code><font color="green">command</font><font color="yellow"> &lt;filename&gt;</font></code>
295+
</p>
268296
<ul>
269297
<li>To remove a file “recursively”: rm –r</li>
270298
<li>Used to remove all files and directories </li>
@@ -305,49 +333,25 @@ <h2>
305333
</section>
306334
<section>
307335
<h2>
308-
Command: chmod
336+
chmod
309337
</h2>
310338
<p>
311339
If you own the file, you can change its permissions with “chmod”
312340
</p>
313-
<p>
314-
Syntax: chmod [user/group/others/all]+[permission] [file(s)]
315-
</p>
316-
</section>
317-
<section>
318-
<h1>PROCESS COMMANDS</h1>
319-
</section>
320-
<section>
321-
<h2>
322-
Command: ps
323-
</h2>
324-
<p>
325-
To view the processes that you’re running
326-
</p>
327-
</section>
328-
<section>
329-
<h2>
330-
Command: top
331-
</h2>
332-
<p>
333-
To view the CPU usage of all processes
334-
</p>
335-
</section>
336-
<section>
337-
<h2>
338-
Command: kill
339-
</h2>
340-
<p>
341-
To terminate a process use “kill”
342-
</p>
341+
<p>
342+
Syntax: <code><font color="green">chmod</font><font color="yellow"> &lt;[user/group/others/all]+[permission] [file(s)]&gt;</font></code>
343+
</p>
343344
</section>
344345
<section>
345346
<h2>
346-
Command: wc
347+
wc
347348
</h2>
348349
<p>
349350
To count the characters, words, and lines in a file use “wc”
350351
</p>
352+
<p>
353+
Syntax: <code><font color="green">command</font><font color="yellow"> &lt;filename&gt;</font></code>
354+
</p>
351355
<p>
352356
The first column in the output is lines, the second is words, and the last is characters
353357
</p>

0 commit comments

Comments
 (0)