Lab05.docx
pdf
keyboard_arrow_up
School
Langara College *
*We aren’t endorsed by this school
Course
1280
Subject
Statistics
Date
Apr 3, 2024
Type
Pages
3
Uploaded by raman16894
–Lab 05 – The UNIX File System (cont)
Objective
●
To figure out the commands on the UNIX terminal to complete the steps listed under
The Task
.
Resources Needed
●
PC with Ubuntu 20.04 LTS or higher installed, OR
●
Ubuntu 20.04 LTS or higher installed in a VirtualBox or VMware virtual machine, OR
●
A running instance of Ubuntu 20.04 LTS or higher on AWS
About the Lab
The purpose of this lab is for you to try some commands and observe their output and the command
feedback (warning/error messages and so on) on the screen.
The Task
In this terminal session, you will practice the commands discussed in the lecture by creating directories
and then manipulating files in the directories.
1.
Open a new terminal and clear your command history using the command
history -c
.
2.
Create a directory called
memos
in your HOME directory.
●
mkdir memos
3.
Create four directories named
dir1
,
dir2
,
dir3
, and
dir4
in your HOME directory using a
single command.
●
mkdir dir1 dir2 dir3 dir4
4.
Download the files
file-content.txt
and
file-content-add.txt
from under
Lab 5
in Brightspace to your HOME directory.
5.
Use
touch
to create the empty files
1memo
,
2memo
,
stat
,
stat1
,
stat12
, and
stat593
in a single command line in your HOME directory.
●
touch 1memo 2memo stat stat12 stat593
6.
Using the
cat
command, create a file called
myfile
in your HOME directory and add the text
in
file-content.txt
to this file.
●
cat file-content.txt > myfile
7.
Display the contents of
myfile
on the terminal screen. Which CHAPTER(S) do you see in
myfile
?
●
vi myfile
●
CHAPTER I
8.
Using the
cat
command, append the text in
file-content-add.txt
to
myfile
.
●
cat file-content-add.txt >> myfile
9.
Display the contents of
myfile
on the terminal screen. Which CHAPTER(S) do you see in
myfile
now?
●
vi myfile
●
CHAPTER I and CHAPTER II
10. Using the
cat
command, append the following line to
myfile
. Which key did you use to signal
the end of the input to
cat
?
THIS IS THE END OF MY TEXT.
●
cat >> myfile
Page 1 of 3
●
^ + D (ctrl + D in windows)
11. Copy
myfile
in your HOME directory to another file named
large
.
●
cp myfile large
12. Create another name for the file
large
.
●
ln large LRG
13. Using the name
LRG
, list two ways to open the file
large
in read-only mode using the
vi
editor.
●
view LRG
●
vi -R LRG
14. List two ways of displaying the number of lines in the
large
file on the terminal.
●
cat -n large
●
wc large
What is the total number of lines?
●
467
15. Copy all files in your HOME directory to the
memos
directory.
●
cp * memos
(had to make a dir lab_home to avoid copying large
amounts of data in HOME to memos)
16. List the contents of the
memos
directory.
●
ls memos
You would see that only the files from your HOME directory were copied to memos and not the
directories. You would also have received a warning regarding this in step 15 when you tried to
copy all files.
17. Now, while staying in your HOME directory, delete all files you just copied into
memos
.
●
rm memos/*
18. Copy all files and directories in your HOME directory to the
memos
directory.
●
cp -r * memos
19. Change to the memos directory.
●
cd memos
20. Now go ahead and delete only the directories from the
memos
directory. (This step may require
some creativity).
●
rm -r */
21. List the contents of the
memos
directory. You should see only the files you copied here.
●
ls
22. Change the name of
large
to
large.old
.
●
mv large large.old
23. While staying in the
memos
directory, use relative path to move
large.old
to your HOME
directory.
●
mv large.old ../../
24. Change to your HOME directory.
●
cd
25. List all files whose filenames start with the letter
l
.
●
ls l*
Which files do you see?
●
large large.old
●
since I named the proxy folder lab_home, its contents also
show up:
Page 2 of 3
PASTE HERE A SCREENSHOT SIMILAR TO THE ONE BELOW. THE SCREENSHOT MUST
SHOW YOUR LOGIN NAME AT THE TOP WITH THE COMMAND HISTORY BELOW IT.
Submission: What to hand in
Upload the edited document
Lab05.docx
(which includes all your answers and the final
screenshot) to Brightspace.
Submission: When to hand in
Before midnight (11:59 PM) today.
Page 3 of 3
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help
Related Documents
Related Questions
A 3.3 Practice
= Copy of New 3.3 Practi x
E KRISTIN THOMPSON
KRISTIN THOMPSON - X
Word Search Maker
.| bartleby
+
A docs.google.com/document/d/1fXyKjoSnSTpyJmSI9D9Jn65z5y4DOsfJlopkF97Vqm4/edit
ВЕТА
Copy of New 3.3 Practice
* Share
TURN IN
File Edit View Insert Format Tools Add-ons Help
Last edit was 4 hours ago
A, P
BIU A
100%
Normal text
Arial
11
+
...
1
1
2 3
6
7
Use the following information to answer the next 10 exercises. Forty-eight percent of all voters of a certain state prefer life in
prison without parole over the death penalty for a person convicted of first-degree murder. Among Latino registered voters
in this state, 55 percent prefer life in prison without parole over the death penalty for a person convicted of first-degree
murder. Of all citizens in this state, 37.6 percent are Latino.
In this problem, let
• C = citizens of a certain state (registered voters) preferring life in prison without parole over the death penalty for a
person convicted of first-degree murder.
•…
arrow_forward
Compute/x²dx
2.
using trog
arrow_forward
The data file includes the text of three books of the Bible (Joshua, Jonah and Philippians) using the ESV translation. While these are all great books, our only interest for this project is how often each letter is used.
Identify those letters whose Cls do not overlap with any the CIs of any of the other letters. (For example the CI [0.042, 0.052] overlaps with [0.050, 0.060] because the upper bound of the first CI is greater than the lower bound of the second CI.) List the letters with the non-overlapping Cis and specify how many such letters there are.
arrow_forward
I need help with 1 and 2.
arrow_forward
Assume that cells A1, A2, A3, and A4 of an Excel spreadsheet contain valid numbers. If you type “=SUM(A1:A4)” into a cell B1 of the Excel spreadsheet, what happens?
which below s correct?
Excel performs the following calculation: A1 + A2 + A3 + A4
Excel performs the following calculation: A1 + A4
Nothing – this is not a valid Excel function
Excel returns an error message
arrow_forward
Find the symmetric difference of the set of computer science majors at a school and the set of mathematics majors at this school.
arrow_forward
>
D2L Grades - N ✓
zy Section 6.2 ×
Google Le
Answered: ✓
Answered: ✓
Answered
✓
C chegg.com x
Homewor ✓
+
|
↓
C
learn.zybooks.com/zybook/MAT-240-Q4983-OL-TRAD-UG.24EW4/chapter/6/section/2
Relaunch to update :
G. Dashboard | ISN Horizon
ADP ADP
Home
Central Florida Per...
Math Review: Multi-...
K5 Grade 5 Reading Co...
◆ Orange County Pub...
OCPS Dashboard
Login
New Tab
All Bookmarks
= zyBooks My library > MAT 240: Applied Statistics home > 6.2: Confidence intervals for population means
| zyBooks catalog
? Help/FAQ Alnisha Liranzo
B
62°F
Clear
Challenge activities
CHALLENGE
ACTIVITY
6.2.1: Confidence intervals for population means.
554752.4160034.qx3zqy7
Jump to level 1
Suppose the mean height in inches of all 9th grade students at one high school is
estimated. The population standard deviation is 6 inches. The heights of 10
randomly selected students are 65, 67, 72, 75, 75, 62, 74, 67, 70 and 75.
x = Ex: 12.34
Margin of error at 99% confidence level =
=
Ex: 1.23
99% confidence…
arrow_forward
Let A = {small, medium, large}, B = {blue, green}, and C = {triangle, square}. H
Represent A x C as cells in a spreadsheet.
triangle
---Select---
---Select--- V
small
medium
large
---Select--- V
---Select--- V
---Select--- V
---Select--- ✓
square
medium
---Select--- V
---Select--- V
---Select--- V
---Select--- V
---Select--- ✓
arrow_forward
Apply STATA commands & submit the output for each question
only when indicated below
i. Apply the command egen to create a variable called "wyd"
which is the rowtotal function on variables bwght & faminc.
ii. Apply the list command for the first 10 observations to
show that the code in part i worked. Include the outcome of
this code
iii. Apply the egen command to create a new variable called
"bwghtsum" using the sum function on variable bwght by
the variable high_faminc (Note: need to apply the bysort'
statement)
iv. Apply the "by high_faminc" statement to find the
V.
descriptive statistics of bwght and bwghtsum Include the
output of this code.
Why is there a difference between the standard deviations
of bwght and bwghtsum from part iv of this question?
arrow_forward
still having a hard time figuring out how to insert it into the calculator
arrow_forward
A Calendar
6 Introduction to Soc
b Answered: Assume x
WAMAP - Posts
A WAMAP Assessme X
min and max - Goo X
E Untitled document x
+
A docs.google.com/document/d/1qYChxA37cmlGEWMpTrbRg31QUw9YBAOS06_8JGralKY/edit
Untitled document
* D O Saved to Drive
A Share
File Edit View Insert Format Tools Add-ons Help Last edit was seconds ago
100%
Normal text
B I U A
E = = E
E - E - E E X
Times New.
14
+
1 | 1 | 2 | 3 4 5 | 6 + 7 I
Q5
About what % of the area under the curve of the standard normal distribution is
outside the interval z=[-0.41,0.41] (or beyond 0.41 standard deviations of the
+
mean).
M
9:14
!!
arrow_forward
f Flippity net: Scavenger
O Launch Meeting - Zoom x
TUESDAY (2.9): Quiz on x
ever Portal
6th/7th Pd Algebra ISx
Launch Meeting - Zoom x
* fippity.net/sh php?k-1piWoQLfmrMOY7d1Vynr8htT7uLE81UJZqBVrBmY9mBw
PS Websites
d DreamBox Learning
Sedgefield Element.
2 Course Request e StudentVUE
The sum of two numbers is 87. Their difference
is 13. What value is the second number?
DELL
arrow_forward
Suppose the Texas Department of Motor Vehicles is tracking the number of car, truck and motorcycle
(respectively) crashes in Texas over the years 2000 to 2019 in an array TXCrash (3 x 20).
Which of the following defines a MATLAB variable that contains the total number of crashes for the years
2000 to 2009 (all vehicles)?
O TotalCrashForFirstDecade = sum(TXCrash([1:10], all))
O TotalCrashFor FirstDecade = sum(TXCrash(:, [1:10]))
O TotalCrashForFirstDecade = sum(TXCrash (2000-2009, :))
TotalCrashForFirstDecade = sum(TXCrash([1:10], :))
arrow_forward
A Moving to another question will save this
response.
Question 3
Write GCD of 5555 and 99999 as a linear combination of 5555 and 99999
9 = 1x 99999+18x5555
44446 x 5555-2469x 99999
2469x 99999-44446x5555
99999 18x 5555+9
A Moving to another question will save this response.
arrow_forward
Need help with this.
arrow_forward
The data file includes the text of three books of the Bible (Joshua, Jonah and Philippians) using the ESV translation. While these are all great books, our only interest for this project is how often each letter is used.
3) Identify those letters whose Cls do not overlap with any the CIs of any of the other letters. (For example the CI [0.042, 0.052] overlaps with [0.050, 0.060] because the upper bound of the first CI is greater than the lower bound of the second CI.) List the letters with the non-overlapping Cis and specify how many such letters there are
Question 3 answers:
Letters
Lower bound
Upper bound
L
0.037072109
0.042042
D
0.043728076
0.049092
E
0.11621383
0.12451
4) The previous analysis could be useful if our goal was to decipher an encrypted message, where each letter is scrambled (for example, each “a” might become a “g”, while each “b” might become an “o” and so forth).
a) Assume that the letter “z” in encrypted message has a relative frequency of 0.06…
arrow_forward
is there a place to put this in the calculator
arrow_forward
In a well crafted spreadsheet, the formulae will never need to be altered, regardless of the changes that are made to the data or the parameters. This is because the formulae were not designed carelessly. True False
arrow_forward
alculate d for each patient by subtracting the number of hours of sleep with the drug from the number without the drug.
arrow_forward
please answer the questions below ands provide the required codes in PYTHON. alsp provide explanation of how the codes were executed. Also make sure you provide codes that will be able to run even with different parameters as long as the output will be the same with any parameters given. these questions are not graded. provide accurate codes please
arrow_forward
show work
arrow_forward
Please write out the different types of models for the base ten system
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you
Algebra & Trigonometry with Analytic Geometry
Algebra
ISBN:9781133382119
Author:Swokowski
Publisher:Cengage

Elementary Geometry for College Students
Geometry
ISBN:9781285195698
Author:Daniel C. Alexander, Geralyn M. Koeberlein
Publisher:Cengage Learning

Mathematics For Machine Technology
Advanced Math
ISBN:9781337798310
Author:Peterson, John.
Publisher:Cengage Learning,

Linear Algebra: A Modern Introduction
Algebra
ISBN:9781285463247
Author:David Poole
Publisher:Cengage Learning
Related Questions
- A 3.3 Practice = Copy of New 3.3 Practi x E KRISTIN THOMPSON KRISTIN THOMPSON - X Word Search Maker .| bartleby + A docs.google.com/document/d/1fXyKjoSnSTpyJmSI9D9Jn65z5y4DOsfJlopkF97Vqm4/edit ВЕТА Copy of New 3.3 Practice * Share TURN IN File Edit View Insert Format Tools Add-ons Help Last edit was 4 hours ago A, P BIU A 100% Normal text Arial 11 + ... 1 1 2 3 6 7 Use the following information to answer the next 10 exercises. Forty-eight percent of all voters of a certain state prefer life in prison without parole over the death penalty for a person convicted of first-degree murder. Among Latino registered voters in this state, 55 percent prefer life in prison without parole over the death penalty for a person convicted of first-degree murder. Of all citizens in this state, 37.6 percent are Latino. In this problem, let • C = citizens of a certain state (registered voters) preferring life in prison without parole over the death penalty for a person convicted of first-degree murder. •…arrow_forwardCompute/x²dx 2. using trogarrow_forwardThe data file includes the text of three books of the Bible (Joshua, Jonah and Philippians) using the ESV translation. While these are all great books, our only interest for this project is how often each letter is used. Identify those letters whose Cls do not overlap with any the CIs of any of the other letters. (For example the CI [0.042, 0.052] overlaps with [0.050, 0.060] because the upper bound of the first CI is greater than the lower bound of the second CI.) List the letters with the non-overlapping Cis and specify how many such letters there are.arrow_forward
- I need help with 1 and 2.arrow_forwardAssume that cells A1, A2, A3, and A4 of an Excel spreadsheet contain valid numbers. If you type “=SUM(A1:A4)” into a cell B1 of the Excel spreadsheet, what happens? which below s correct? Excel performs the following calculation: A1 + A2 + A3 + A4 Excel performs the following calculation: A1 + A4 Nothing – this is not a valid Excel function Excel returns an error messagearrow_forwardFind the symmetric difference of the set of computer science majors at a school and the set of mathematics majors at this school.arrow_forward
- > D2L Grades - N ✓ zy Section 6.2 × Google Le Answered: ✓ Answered: ✓ Answered ✓ C chegg.com x Homewor ✓ + | ↓ C learn.zybooks.com/zybook/MAT-240-Q4983-OL-TRAD-UG.24EW4/chapter/6/section/2 Relaunch to update : G. Dashboard | ISN Horizon ADP ADP Home Central Florida Per... Math Review: Multi-... K5 Grade 5 Reading Co... ◆ Orange County Pub... OCPS Dashboard Login New Tab All Bookmarks = zyBooks My library > MAT 240: Applied Statistics home > 6.2: Confidence intervals for population means | zyBooks catalog ? Help/FAQ Alnisha Liranzo B 62°F Clear Challenge activities CHALLENGE ACTIVITY 6.2.1: Confidence intervals for population means. 554752.4160034.qx3zqy7 Jump to level 1 Suppose the mean height in inches of all 9th grade students at one high school is estimated. The population standard deviation is 6 inches. The heights of 10 randomly selected students are 65, 67, 72, 75, 75, 62, 74, 67, 70 and 75. x = Ex: 12.34 Margin of error at 99% confidence level = = Ex: 1.23 99% confidence…arrow_forwardLet A = {small, medium, large}, B = {blue, green}, and C = {triangle, square}. H Represent A x C as cells in a spreadsheet. triangle ---Select--- ---Select--- V small medium large ---Select--- V ---Select--- V ---Select--- V ---Select--- ✓ square medium ---Select--- V ---Select--- V ---Select--- V ---Select--- V ---Select--- ✓arrow_forwardApply STATA commands & submit the output for each question only when indicated below i. Apply the command egen to create a variable called "wyd" which is the rowtotal function on variables bwght & faminc. ii. Apply the list command for the first 10 observations to show that the code in part i worked. Include the outcome of this code iii. Apply the egen command to create a new variable called "bwghtsum" using the sum function on variable bwght by the variable high_faminc (Note: need to apply the bysort' statement) iv. Apply the "by high_faminc" statement to find the V. descriptive statistics of bwght and bwghtsum Include the output of this code. Why is there a difference between the standard deviations of bwght and bwghtsum from part iv of this question?arrow_forward
- still having a hard time figuring out how to insert it into the calculatorarrow_forwardA Calendar 6 Introduction to Soc b Answered: Assume x WAMAP - Posts A WAMAP Assessme X min and max - Goo X E Untitled document x + A docs.google.com/document/d/1qYChxA37cmlGEWMpTrbRg31QUw9YBAOS06_8JGralKY/edit Untitled document * D O Saved to Drive A Share File Edit View Insert Format Tools Add-ons Help Last edit was seconds ago 100% Normal text B I U A E = = E E - E - E E X Times New. 14 + 1 | 1 | 2 | 3 4 5 | 6 + 7 I Q5 About what % of the area under the curve of the standard normal distribution is outside the interval z=[-0.41,0.41] (or beyond 0.41 standard deviations of the + mean). M 9:14 !!arrow_forwardf Flippity net: Scavenger O Launch Meeting - Zoom x TUESDAY (2.9): Quiz on x ever Portal 6th/7th Pd Algebra ISx Launch Meeting - Zoom x * fippity.net/sh php?k-1piWoQLfmrMOY7d1Vynr8htT7uLE81UJZqBVrBmY9mBw PS Websites d DreamBox Learning Sedgefield Element. 2 Course Request e StudentVUE The sum of two numbers is 87. Their difference is 13. What value is the second number? DELLarrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Algebra & Trigonometry with Analytic GeometryAlgebraISBN:9781133382119Author:SwokowskiPublisher:CengageElementary Geometry for College StudentsGeometryISBN:9781285195698Author:Daniel C. Alexander, Geralyn M. KoeberleinPublisher:Cengage LearningMathematics For Machine TechnologyAdvanced MathISBN:9781337798310Author:Peterson, John.Publisher:Cengage Learning,
- Linear Algebra: A Modern IntroductionAlgebraISBN:9781285463247Author:David PoolePublisher:Cengage Learning
Algebra & Trigonometry with Analytic Geometry
Algebra
ISBN:9781133382119
Author:Swokowski
Publisher:Cengage

Elementary Geometry for College Students
Geometry
ISBN:9781285195698
Author:Daniel C. Alexander, Geralyn M. Koeberlein
Publisher:Cengage Learning

Mathematics For Machine Technology
Advanced Math
ISBN:9781337798310
Author:Peterson, John.
Publisher:Cengage Learning,

Linear Algebra: A Modern Introduction
Algebra
ISBN:9781285463247
Author:David Poole
Publisher:Cengage Learning