-
Notifications
You must be signed in to change notification settings - Fork 0
/
p1_work_terminal.txt
160 lines (153 loc) · 8.5 KB
/
p1_work_terminal.txt
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
lnxsrv06 now running RHEL 7 as of 20160428
RedHat 7 -- may not behave the same as other lnxsrv
Will be used by CS 35L, CS 33, CS 111, and CS 131
* User processes older than 36 hours will be cleaned up
*****************************************************************************
*****************************************************************************
* ========================================================================= *
* SEASnet Computing Access *
* *
* Priority is given both on the servers and in the student labs to those *
* students doing coursework. Computing support for research is provided by *
* each department. *
*****************************************************************************
* For assistance please contact help@seas.ucla.edu or call 206-6864. *
*****************************************************************************
Attempting to create directory /u/eng/class/classmpa/perl5
[classmpa@lnxsrv06 ~]$
[classmpa@lnxsrv06 ~]$
[classmpa@lnxsrv06 ~]$ ls Desktop
helloworld.cpp
[classmpa@lnxsrv06 ~]$ curl -s -L http://cs.ucla.edu/classes/spring18/cs31/Utilities/setupg31 | bash
Log out and log back in again to complete the setup.
[classmpa@lnxsrv06 ~]$ exit
logout
Goodbye.
Connection to cs31.seas.ucla.edu closed.
vpn-128-97-245-196:~ mariapalafox$ ssh classmpa@cs31.seas.ucla.edu
classmpa@cs31.seas.ucla.edu's password:
Last login: Sun Apr 8 22:41:43 2018 from vpn-128-97-245-196.host.ucla.edu
*****************************************************************************
lnxsrv06.seas.ucla.edu RHEL 7
*****************************************************************************
lnxsrv06 now running RHEL 7 as of 20160428
RedHat 7 -- may not behave the same as other lnxsrv
Will be used by CS 35L, CS 33, CS 111, and CS 131
* User processes older than 36 hours will be cleaned up
*****************************************************************************
*****************************************************************************
* ========================================================================= *
* SEASnet Computing Access *
* *
* Priority is given both on the servers and in the student labs to those *
* students doing coursework. Computing support for research is provided by *
* each department. *
*****************************************************************************
* For assistance please contact help@seas.ucla.edu or call 206-6864. *
*****************************************************************************
[classmpa@lnxsrv06 ~]$ ls
Desktop Documents Downloads nsdefault perl5
[classmpa@lnxsrv06 ~]$ ls Desktop
helloworld.cpp
[classmpa@lnxsrv06 ~]$ cp Desktop/hello.cpp .
cp: cannot stat ‘Desktop/hello.cpp’: No such file or directory
[classmpa@lnxsrv06 ~]$ cp Desktop/helloworldo.cpp .
cp: cannot stat ‘Desktop/helloworldo.cpp’: No such file or directory
[classmpa@lnxsrv06 ~]$ cp Desktop/helloworld.cpp .
[classmpa@lnxsrv06 ~]$
[classmpa@lnxsrv06 ~]$
[classmpa@lnxsrv06 ~]$ // copied helloworld into the current directory which is the shell of the linux server
-bash: //: Is a directory
[classmpa@lnxsrv06 ~]$
[classmpa@lnxsrv06 ~]$
[classmpa@lnxsrv06 ~]$ ls
Desktop Documents Downloads helloworld.cpp nsdefault perl5
[classmpa@lnxsrv06 ~]$
[classmpa@lnxsrv06 ~]$
[classmpa@lnxsrv06 ~]$ g31 -o hello helloworld.cpp
helloworld.cpp: In function 'int main(int, const char**)':
helloworld.cpp:11:14: warning: unused parameter 'argc' [-Wunused-parameter]
int main(int argc, const char * argv[]) {
^~~~
helloworld.cpp:11:38: warning: unused parameter 'argv' [-Wunused-parameter]
int main(int argc, const char * argv[]) {
^
[classmpa@lnxsrv06 ~]$ ///edit the file in X code and save it as helloworld1, then copy updated version again to shell to create an executable file
-bash: ///edit: No such file or directory
[classmpa@lnxsrv06 ~]$
[classmpa@lnxsrv06 ~]$
[classmpa@lnxsrv06 ~]$ packet_write_wait: Connection to 164.67.100.236 port 22: Broken pipe
vpn-128-97-245-196:~ mariapalafox$ ls
5ifm.cif Desktop Movies book chapter library .Data
Applications Documents Music
Backus Downloads Pictures
Creative Cloud Files Library Public
vpn-128-97-245-196:~ mariapalafox$ cd Desktop/
vpn-128-97-245-196:Desktop mariapalafox$ ls
MS txt files Project 1 book chaper library.xml helloworld.cpp
NONO.pse Training Grant helloworld linalg_notes (1).pdf
vpn-128-97-245-196:Desktop mariapalafox$ vim helloworld.cpp
vpn-128-97-245-196:Desktop mariapalafox$ vim helloworld.cpp
vpn-128-97-245-196:Desktop mariapalafox$ g31 -o hello helloworld.cpp
-bash: g31: command not found
vpn-128-97-245-196:Desktop mariapalafox$ ssh classmpa@cs31.seas.ucla.edu
classmpa@cs31.seas.ucla.edu's password:
Last login: Sun Apr 8 22:45:23 2018 from vpn-128-97-245-196.host.ucla.edu
*****************************************************************************
lnxsrv06.seas.ucla.edu RHEL 7
*****************************************************************************
lnxsrv06 now running RHEL 7 as of 20160428
RedHat 7 -- may not behave the same as other lnxsrv
Will be used by CS 35L, CS 33, CS 111, and CS 131
* User processes older than 36 hours will be cleaned up
*****************************************************************************
*****************************************************************************
* ========================================================================= *
* SEASnet Computing Access *
* *
* Priority is given both on the servers and in the student labs to those *
* students doing coursework. Computing support for research is provided by *
* each department. *
*****************************************************************************
* For assistance please contact help@seas.ucla.edu or call 206-6864. *
*****************************************************************************
[classmpa@lnxsrv06 ~]$ ls
Desktop Documents Downloads hello helloworld.cpp nsdefault perl5
[classmpa@lnxsrv06 ~]$ cd Desktop/
[classmpa@lnxsrv06 ~/Desktop]$ ls
helloworld.cpp
[classmpa@lnxsrv06 ~/Desktop]$ g31 -o hello helloworld.cpp
helloworld.cpp: In function 'int main(int, const char**)':
helloworld.cpp:11:14: warning: unused parameter 'argc' [-Wunused-parameter]
int main(int argc, const char * argv[]) {
^~~~
helloworld.cpp:11:38: warning: unused parameter 'argv' [-Wunused-parameter]
int main(int argc, const char * argv[]) {
^
[classmpa@lnxsrv06 ~/Desktop]$ ls
hello helloworld.cpp
[classmpa@lnxsrv06 ~/Desktop]$ ./hello
Hello, World!
[classmpa@lnxsrv06 ~/Desktop]$ scp Desktop/main.cpp classmpa@cs31.seas.ucla.edu date
date: No such file or directory
[classmpa@lnxsrv06 ~/Desktop]$ scp Desktop/main.cpp classmpa@cs31.seas.ucla.edu
cp: cannot stat ‘Desktop/main.cpp’: No such file or directory
[classmpa@lnxsrv06 ~/Desktop]$ scp Desktop/main.cpp classmpa@cs31.seas.ucla.edu
cp: cannot stat ‘Desktop/main.cpp’: No such file or directory
[classmpa@lnxsrv06 ~/Desktop]$ scp Desktop/main.cpp classmpa@cs31.seas.ucla.edu data
data: No such file or directory
[classmpa@lnxsrv06 ~/Desktop]$ scp Desktop/main.cpp classmpa@cs31.seas.ucla.edu date
date: No such file or directory
[classmpa@lnxsrv06 ~/Desktop]$ scp Desktop/main.cpp classmpa@cs31.seas.ucla.edu date
date: No such file or directory
[classmpa@lnxsrv06 ~/Desktop]$ scp Desktop/main.cpp classmpa@cs31.seas.ucla.edu:Desktop
The authenticity of host 'cs31.seas.ucla.edu (164.67.100.236)' can't be established.
ECDSA key fingerprint is SHA256:vJtol+LWVSJuAARF7OZ47jWHXx/OLFLHT5lkENeStr8.
ECDSA key fingerprint is MD5:50:f0:ea:37:56:14:ba:6a:3d:a6:f6:b6:69:e6:6a:cc.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'cs31.seas.ucla.edu,164.67.100.236' (ECDSA) to the list of known hosts.
classmpa@cs31.seas.ucla.edu's password:
Desktop/main.cpp: No such file or directory
[classmpa@lnxsrv06 ~/Desktop]$ ls
hello helloworld.cpp
[classmpa@lnxsrv06 ~/Desktop]$