-
Notifications
You must be signed in to change notification settings - Fork 0
/
proj2_testcases
65 lines (65 loc) · 1.23 KB
/
proj2_testcases
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
pwd
ls &
ls -l &
cd /
sleep 20 &
ls &
pid
tty
/bin/ps -lfu USERNAME
cd
cd [project test dir of your choosing]
pwd
ls -l
rm -f mail1 mail2
touch mail1
watchmail mail1
echo hi >> mail1
echo HiThere > mail2
watchmail mail2
echo there >> mail1
echo Subject: >> mail2
cat mail1
cat mail2
watchmail mail1 off
echo bye >> mail1
echo bye >> mail2
rm -f test1 test2 test3 test4 test5 test6 test7 test8
test-1+2 > test1
test-1+2 >> test2
test-1+2 >& test3
test-1+2 >>& test4
cat test1 test2 test3 test4
test-1+2 > test1
test-1+2 >> test2
test-1+2 >& test3
test-1+2 >>& test4
cat test1 test2 test3 test4
noclobber
test-1+2 > test5
test-1+2 >> test6
test-1+2 >& test7
test-1+2 >>& test8
cat test5 test6 test7 test8
test-1+2 > test5
test-1+2 >> test6
test-1+2 >& test7
test-1+2 >>& test8
cat test5 test6 test7 test8
grep hello < test7
grep error < test7
rm -f test9 test10 test11 test12
noclobber
test-1+2 > test9
test-1+2 >> test10
test-1+2 >& test11
test-1+2 >>& test12
cat test9 test10 test11 test12
ls | grep test
./test-1+2 | grep hello
./test-1+2 |& grep hello
./test-1+2 | grep output
./test-1+2 |& grep output
./test-1+2 |& grep error
pid
/bin/ps -lfu kgraney | grep defunct