-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbasicBash.html
More file actions
41 lines (34 loc) · 1.61 KB
/
Copy pathbasicBash.html
File metadata and controls
41 lines (34 loc) · 1.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>bash Intro</title>
</head>
<body>
<h2>Very Basic <code>bash</code></h2>
<p>If you are logged into a terminal window on a Unix/Linux/OS X machine,
you are interacting with an application called a "shell" (called this
because it serves as the outer shell of the operating system). There
are several shell programs out there, including <code>sh</code>,
<code>csh</code>, <code>tcsh</code>, and <code>bash</code>. You can
find out which one is running by typing <code>echo $0</code> at the
terminal prompt.</p>
<p><code>bash</code> is perhaps the most common shell these days. It has
most of the features of other shells. In particular, you can use
the up arrow to see previous commands and use the left arrow and
back space keys to edit them. Another nice feature is file name
completion; if you type a tab after typing just enough of a file name
to uniquely identify it, the shell will complete the file name for
you. If you have not uniquely identified it, it will complete as much
as it can and then you can hit the tab
key again to see a list of the files that match the substring you have
typed in. You can look at the <code>bash</code> manual page for many
more details about if you are interested.</p>
<p>If you are new to UNIX, you may want to look at the
<a href="basicUNIX.html">basicUNIX</a> document.
One of the most useful commands listed there is the <code>exit</code>
command, which you can use to log out.</p>
<p>If you are interested in learning <code>vi</code>, you may want to look at
the <a href="basicVI.html">basicVI</a> document.</p>
</body>
</html>