Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PLEASE FOLLOW THE INSTRUCTIONS CAREFULLY. THE TEACHER WANTS THE SOURCE CODE AND SCREENSHOTS OR NO CREDIT : ) ) . THANKS ! ! ! For

PLEASE FOLLOW THE INSTRUCTIONS CAREFULLY. THE TEACHER WANTS THE SOURCE CODE AND SCREENSHOTS OR NO CREDIT :
))
.
THANKS!!!
For this lab
/
tutorial
,
you need to create a script, a file that is used to take a copy of everything that is output to the terminal and place it in a log file. First, you need to open your terminal, which you can do by pressing the Ctrl
,
Alt, and T keys together
(
Ctrl
+
Alt
+
T
)
.
1
.
Use the cd command to move to the home directory.
$ cd
/
home
2
.
Launch the script.
(
The Linux script command creates a typescript file from your terminal session.
)
$ script M
2.3
Lab
(
hit enter
)
3
.
Enter these commands at your Linux prompt, and try to interpret the output:
1
.
Enter these commands at your Linux prompt, and try to interpret the output:
$ echo hello world
$ passwd
(
you need to change your password; Ctrl
-
c takes you back to the prompt
)
$ date
$ hostname
$ arch
$ uname
-
a
$ dmesg
|
more
(
you may need to press q to quit
)
$ uptime
$ whoami
$ who
$ id
$ last
$ finger
$ w
$ echo $SHELL
$ man ls
(
you may need to press q to quit
)
$ man who
(
you may need to press q to quit
)
$ echo
{
con
,
pre
}{
sent
,
fer
}{
s
,
ed
}
$ clear
$ cal
2000
$ cal
91752(
do you notice anything unusual?
)
$ bc
-
l
(
type quit or press Ctrl
-
d to quit
)
$ yes please
(
you may need to press Ctrl
-
c to quit
)
$ time sleep
5
$ history
2
.
Try the following command sequence:
$ cd
$ pwd
$ ls
-
al
$ cd
.
$ pwd
(
where did that get you?
)
$ cd
.
.
$ pwd
$ ls
-
al
$ cd
.
.
$ pwd
(
what happens now?
)
$ cd
/
etc
$ ls
-
al
|
more
$ cat passwd
$ cd
-
$ pwd
Continue to explore the file system tree using cd
,
ls
,
pwd
,
and cat. Look in
/
bin
,
/
usr
/
bin
,
/
sbin
,
/
tmp
,
and
/
boot
.
What do you see?
Make subdirectories called work and play.
Delete the subdirectory called work.
Copy the file
/
etc
/
passwd into your home directory.
Move it into the subdirectory play.
Create a file called hello.txt that contains the words "hello world."
Delete the work directory and its contents with one command.
Experiment with the options on the ls command. What do the d
,
i
,
R
,
and F options do
?
Change the terminal prompt using the command PS
1
=
"First name
(
Timothy
)
,
Last name
(
Rhyne
)
.
"
To stop the script file, simply type exit at the command prompt. Now your script is ready for submission.
Note: To make your script file accessible from your host side, you need to create a shared folder
(
follow the steps below
)
.
The simplest option to transfer files between your host PC and a virtual machine is to set up a shared clipboard and
/
or drag and drop.
Select your virtual machine
(
Ubuntu
)
,
right
-
click and select "Settings."
In the window that pops up
,
click on "General" and then click on the "Advanced" tab.
You should now see the "Shared Clipboard" and "Drag
'
n
'
Drop" dropdown options.
You can choose from "Host to Guest" and "Bidirectional" There's also the default option, "Disables," which prevents your attempts to copy files to VirtualBox.
Select "Bidirectional" in both drop
-
down boxes to enable two
-
way file sharing.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning Databases With PostgreSQL From Novice To Professional

Authors: Richard Stones, Neil Matthew

2nd Edition

1590594789, 978-1590594780

More Books

Students also viewed these Databases questions

Question

Why are retained earnings not considered an asset of the firm?

Answered: 1 week ago

Question

What is job rotation ?

Answered: 1 week ago

Question

explain the need for human resource strategies in organisations

Answered: 1 week ago

Question

describe the stages involved in human resource planning

Answered: 1 week ago