-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathQuickShellGuide.html
75 lines (61 loc) · 2.04 KB
/
QuickShellGuide.html
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<html>
<head>
<link href="style.css" rel="stylesheet" type="text/css"/>
<title>
A Quick Intro to the Most Important UNIX Shell Commands
</title>
</head>
<body>
<h1>
A Quick Intro to the Most Important UNIX Shell Commands
</h1>
<ul>
<li><b>pwd</b>:
<br>
Print Working Directory
<br>
Shows where you are in the file system.
<li><b>ls</b>:
<br>
List
<br>
Lists files in the current directory.
<br>
Variant: ls -las
<br>
Gives a more detailed listing.
<li><b>cd</b> <i>dir</i>:
<br>
Change Directory
<br>
Changes the current directory to <i>dir</i>.
<li><b>cat</b> <i>file</i>:
<br>
Sends the contents of <i>file</i> to standard output.
<li><b>touch</b> <i>file</i>:
<br>
Update the timestamp of <i>file</i>, or create it if it is not
there.
<li><b>cp</b> <i>file1</i> <i>file2</i>:
<br>
Copies <i>file1</i> to <i>file2</i>.
<li><b>mv</b> <i>file1</i> <i>file2</i>:
<br>
Moves <i>file1</i> to <i>file2</i>. (<i>file1</i> will no
longer exist.)
<li><b>rm</b> <i>file</i>:
<br>
Removes <i>file</i>.
<li><b>mkdir</b> <i>dir</i>:
<br>
Creates a new directory named <i>dir</i>.
<li><b>chmod</b> <i>permissions</i> <i>file</i>:
<br>
Changes the permissions on <i>file</i>. To see how it works,
type "man chmod".
<li><b>man</b> <i>prog</i>:
<br>
Displays help for <i>prog</i>.
</ul>
</body>
</html>