To switch to a command- line terminal( tty5), one need to press Ctrl Alt F5 and log in to the outstation via the use of the root username as well as LINUXrocks! word.
What is the command about?One can code by the use a. sh extension for shell scripts due to the fact that it identifies the train as a shell script, making it easier for druggies to identify the purpose of the train.
The shell script in the above code will creates a report of the fragment configuration of the system. It starts by setting the filename to the hostname of the system, adds a heading for the LVM configuration, and also lists the Logical Volume director( LVM) using the lvscan command.
Therefore, After running the chmod command to make thediskconfig.sh script executable, running./diskconfig.sh at the command code generates the fragment configuration report and saves it to a series with the name of the system's hostname, followed by the". report" extension.
Learn more about command from
https://brainly.com/question/25808182
#SPJ1
See text below
1. Switch to a command-line terminal (tty5) by pressing Ctrl+Alt+F5 and log in to the terminal using the user name of root and the password of LINUXrocks!.
2. At the command prompt, type vi diskconfig.sh and press Enter to open a new file for editing called diskconfig.sh in your home directory. Why is it good form to use a .sh extension for shell scripts?
3. Enter the following text into the diskconfig.sh file. As you are typing the contents, ensure that you understand the purpose of each line (reviewing the chapter contents and appropriate man pages as necessary). When finished, save and quit the vi editor.
Copyright 2020 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. WCN 02-200-202
O Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
CHAPTER 7 Working with the BASH Shell
#!/bin/bash
#This script creates a report of our disk configuration
FILENAME= 'hostname'
echo "Disk report saved to $FILENAME.report"
echo -e "\n LVM Configuration: \n\n" >>$FILENAME.report
lvscan >> $FILENAME.report
echo -e "\n\n Partition Configuration: \n\n" >>$FILENAME.report fdisk 1 head -17 >>$FILENAME.report
echo -e "\n\n Mounted Filesystems: \n\n" >>$FILENAME.report
df -hT | grep -v tmp >>$FILENAME.report
At the command prompt, type chmod u+x diskconfig.sh and press Enter. Next, type ./diskconfig.sh at the command prompt and press Enter. Note the filename that your report was saved to.
that your report was saved to.
5. At the command prompt, type less filename where filename is the filename you
noted in the previous step, and press Enter. View the contents. Would this shell script work well to record storage configuration from different systems? Why?
6. At the command prompt, type vi dirbackup.sh and press Enter to open a new file for editing called dirbackup.sh in your home directory.
7. Enter the following text into the dirbackup.sh file. As you are typing the contents, ensure that you understand the purpose of each line (reviewing the chapter contents and appropriate man pages as necessary; the tar backup command will be discussed in Chapter 11 and does not require detailed interpretation here). When finished, save and quit the vi editor.
#!/bin/bash
#This script backs up a directory of your choice
if [ $# -ne 1 ]
then
echo "Usage is $0 <directory to back up>"
exit 255
fi
echo "Performing backup....
echo "Backup completed successfully to ~/backupfile.tar.gz"
Copyright 2020 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. WCN 02-200-202
2020 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
CHAPTER 7
What will be the motion of a follower resting against the cam surface of each of the six types of cam profiles shown in this activity?
Circular
Heart
Snail
Hexagonal
Eccentric
Pear
Note that the motion of a follower resting against the cam surface of each of the six types of cam profiles are given as follows.
The motion of a follower resting against the cam surface of each of the six types of cam profiles would be as follows:
Circular: The follower will have a uniform motion in a circular path as the cam rotates.
Heart The follower will have a slow, linear motion as it follows the concave portion of the heart-shaped cam profile, and a fast, linear motion as it follows the convex portion.
Snail The follower will have a slow, linear motion as it follows the spiral-shaped cam profile.
Hexagonal The follower will have a combination of linear and oscillatory motion as it follows the six-sided cam profile.
Eccentri The follower will have a reciprocating linear motion as the eccentric cam rotates.
Pear The follower will have a combination of linear and oscillatory motion as it follows the pear-shaped cam profile.
Learn more about Cam Profile;
https://brainly.com/question/13884034
#SPJ1
The ___________________ allows the axle to turn the wheels at different speeds.
A) Traction equalizer B) Two-speed axle C) Transmission D) Differential
Answer:
the correct answer is D) Differential.
Explanation:
Answer:
d is the answer
Explanation:
the differential is a system that transmits an engine's torque to the wheels. The differential takes the power from the engine and splits it, allowing the wheels to spin at different speeds.
just think of a gear facing nothing /\ : ( ‘ | ‘ being the gear )
l
Think of a gear on the right like this:
_
If those 2 touch each other they move ( shown in picture )
Which makes d the answer
D being the answer
Argue why the following scenario may NOT represent the best decision in the Solving the Problem phase of design engineering.
Situation: The team discovers that the materials needed to make a tablet durable and light at the same time are prohibitively expensive. Rather than use different materials, the team decides to eliminate the camera feature.
An incandescent lightbulb requires electricity to flow through the thin filament to make the filament glow. If there are 3 bulbs in a series circuit and one bulb goes out or breaks, will the others stay on or turn off?
A) The bulbs stay on B) They all turn off
If there are 3 bulbs in a series circuit and one bulb goes out or breaks, the other bulbs will all go foff (Option B)
How can we explain the above?In a serios circuit, there is only one flow of elecricity. Only one path via which electricityh can flow. Hence, when that path is cut off by the removal of one bulb, all the other bulbs will go off.
A series circuit is made up of two or more components linked in a loop.
A series circuit has the following advantages: A single switch can control all of the components. There are fewer cables necessary.
One of the drawbacks of a series circuit is that the components cannot be regulated independently.
Learn more about Series Circuit:
https://brainly.com/question/11409042
#SPJ1
Analyze the graph and answer the question that follouw Nicha Complete Sentence. 120 100 80 40 40 20 O 1 2 3 4 5 6 7 8 (Sarce, Integrated Science : Science and techology texbook for first year) I what is represented by the horizontal axis? the vertical axis? 9
The steps below must be followed in order to examine a graph:
Read the labels and the title: Determine the data:Observe trendsWhat are the necessary steps to analyze the graphYour interpretation of the data will depend on the kind of graph you are seeing. Line graphs, bar graphs, scatter plots, and pie charts are examples of common graph types.
Analyze the data points on the graph to find out what they stand for. If there are several data sets, identify each one and ascertain their connections.
Look over the data to identify any patterns or trends. Are the data points, for instance, growing or shrinking with time? An overview was given based on the information.
Learn more about graph on
https://brainly.com/question/19040584
#SPJ1
The power generator in a vehicle is the _____________.
A) Axle B) Chassis C) Drivetrain D) Engine
Answer:
It is the engine
Explanation:
Its an alternator which is a type of electric engine used in modern vehicles