-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathsample_challenge.ta
More file actions
68 lines (46 loc) · 1.88 KB
/
sample_challenge.ta
File metadata and controls
68 lines (46 loc) · 1.88 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
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
name: l00
test: test $(pwd) = "/tmp"
next: [l01-1, l01-2]
# First alternative bash excercise
Hi there.
I understand that a command line talking to you might not make sense right now
but bear with me, things *will* get more interesting.
First of all, you need to learn how to move from one directory to another. This
can be done using the "cd" command which is a very short abbreviation for
**'change directory'**. For instance if I wanted to go to the /usr directory
I would type
$ cd /usr
Got it?
I am pretty sure you do. Now use this cd command and go to the /tmp directory
--------------------
name: l01-1
precmd: echo "Hi there!" > /tmp/ta_test
postcmd: rm /tmp/ta_test
test: test $(pwd) = "$HOME"
next: [l02]
I see you made it to level01, awesome !
Now try to get back to your home directory. This is the directory you are in
when you log into your account or open a new shell. It is pretty tough to
remember its particular name so the old UNIX hackers have simplified it for
you: if you execute the "cd" command without any additional parameters, you
will end up in your home directory, wherever that might be.
(Note: you might want to check /tmp/ta_test)
--------------------
name: l01-2
precmd: echo "Hi there!" > /tmp/ta_test
postcmd: rm /tmp/ta_test
test: test $(pwd) = "$HOME"
next: [l02]
I see you made it to level02, awesome !
Now try to get back to your home directory. This is the directory you are in
when you log into your account or open a new shell. It is pretty tough to
remember its particular name so the old UNIX hackers have simplified it for
you: if you execute the "cd" command without any additional parameters, you
will end up in your home directory, wherever that might be.
(Note: you might want to check /tmp/ta_test)
--------------------
name: l02
test: false
I see you made it again, awesome! That's all for now, so lay back and enjoy your
shell!
--------------------