Course Project Module 3 PowerPoint Template - Kailyn Shirrell
.pptx
keyboard_arrow_up
School
DeVry University, Chicago *
*We aren’t endorsed by this school
Course
106
Subject
Computer Science
Date
Apr 3, 2024
Type
pptx
Pages
6
Uploaded by JudgeIbexMaster902 on coursehero.com
Course Project
Operating Systems
Module 3 Linux Shell Scripts
Rubric
Activity
Requirement(s)
Points
Create a shell script
Answer three questions
15
Change script file permissions
Take a screenshot
15
Set the PATH variable
Take a screenshot
15
Make the PATH variable permanent
Take a screenshot
15
Create a shell script
1. What are the file permissions of the script?
Answer here:
-rw-rw-r-- ! Student student 193 Nov 11 15:49 todolist
2. What’s the name of the user-defined variable in the script?
Answer here:
student
3. Which redirection meta-character is used in the script? What does it do?
Answer here:
>> Appends the command output to file data
References:
1. Module 3 – Lesson 1
2.Module 3 – Lesson 2
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 Questions
Write a bash script for a menu driven file management utility that can do following
Create file
Delete file
Copy file
Move file
Change file user and group owner
Change file permissions
arrow_forward
5. Fill in the permissions in Table 4-7 with checkmarks, assuming that all four files are in the
directory /public, which has a mode of rwxr-xr-x.
Table 4-7
Permissions table for Discovery Exercise 5
Filename
Mode
Read
Edit
Execute
List
Delete
sample1
User
rw-rw-rw-
Group
Other
sample2
r-
User
Group
Other
sample3
User
rwxr-x---
Group
Other
sample4
User
r-:
Group
Other
arrow_forward
Assignment 2 Directions
Please choose Option 1 or Option 2. You do not need to do both.
Option 1:
Please write a short paper based on Module 2 Hardware Components. Anything in the module can be a topic.
Write a summary paper as follows:
• Prepare a Word document with a minimum of 3 pages (not including title and references pages) and a minimum of 3
solid references.
Be sure to use APA Guidelines for references.
• Make sure to save the file in the following format: FirstName_LastName_Paper.doc(x)
• Upload the completed file as an attachment to this assignment.
.
Option 2:
1. Create an algorithm to add two integer numbers.
2. Implement the program in a high level language like C or Java. It does not need to run for me, but the code should
be included in a text document called FirstnameLastnameHLA2.txt in your assignment submission.
3. Implement the program in MIPSzy Assembly language. Use the high level code as comments to the right of the
Assembly code as the textbook does.
4. If you…
arrow_forward
How can developers prevent and handle common file-related exceptions such as file not found, permission denied, and file I/O errors? Provide code examples if possible.
arrow_forward
CHAPTER 2 EXPLORING THE UNIX/LINUX FILE SYSTEMS AND FILE SECURITY
Create a file called samp1e1.View the files present in the current directory in the long listing format.By default the permissions for a file will be rw-rw-r--, change the permissions of the sample1 file to rwxr--r-x, using the rwx notation.View the files present in the current directory in the long listing format.Create a second file called sample2.By default the permissions for a file will be rw-rw-r--, change the permissions of the sample2 file to rwxr-x--x, using 421 method.View the files present in the current directory in the long listing format.STEP BY STEP PLEASE!! ALSO SHOW SCREENSHOTS PLEASE!
arrow_forward
Instructions
Which attribute is displayed by the attrib
command for a file that is backed up and
unchanged?
• V
• S
• R
• None of these are correct
< Prev
arrow_forward
Lab8-4.cpp [Read Only] - Microsoft Visual Studio
File
Edit
View
Project
Build
Debug
Team
Tools
Test
Analyze
Window
Help
> Attach... -
Lab8-4.cpp i
+ X Lab8-1.cpp* ô
Lab8-6.cpp 6
Lab8-6.cpp @
A Miscellaneous Files
(Global Sc
B//Lab8-4.cpp - displays a pattern of numbers
[//Created/revised by on
1
4
#include
//end for
6.
7
| } //end of main function
} //end for
cin >> maxRows;
8
10
cout << "How many rows? ";
cout << col;
cout << endl;
int main()
int maxRows = 0;
11
12
13
14
15
16
return 0;
17
using namespace std;
18
arrow_forward
1- Which of the following is wrong?
a)
for an ASP.NET Core MVC project, the right place to write Javascript code is in Controller file.
b)
Models in MVC are typically c# classes that generally hold data from a database
c)
View files contain HTML and razor markup code
d)
Controller files are c# classs files that contain action methods.
Leave blank
arrow_forward
Select all true statements
Hard links are a type of file that names another file/directory path
Multiple hard links can point to the same l-Node
Soft links are a type of file that names another file/directory path
O Hard links point to l-Nodes
Soft links can be used to subvert user permissions
Multiple soft links can point to the same l-Node
O Soft links point to l-Nodes
arrow_forward
Why do you feel file extensions are important? Please provide a
comprehensive justification for your position. You have the
option of naming three different file extensions in a folder that
is chosen at random on your computer. You are welcome to
additionally mention the names of any software programmes
that were used to build them, if you so choose. It should be
possible to open the majority of file extensions by right-clicking
on a file and selecting properties from the resulting pop-up
menu (Microsoft Windows environment).
arrow_forward
20. Create a linux bash script to get a filename as input and then it should check and display if file exist and size
is greater than zero, then should get input of any file comparison operator and then display if the file is true
or false for that given file comparison operator.
21. Create a linux bash script to get three numbers as positional parameters then display the greatest and least
of the given numbers. If positional parameters are not given then message "This script requires 3 numbers
as positional parameters, Try again.." should be displayed.
arrow_forward
Exercise 1.3 : Approximation of functions
The function
(1) =
can be approximated by the series
()~1+x+パ++
as long as x] < 1. We would like to explore how many terms are needed to make the difference between f(x) and this series
approximation smaller than a given tolerance.
For example, for an error of 1x 10- and x=0 only one term from the series is needed, while for x=1/2
= 2
1-(1/2)
and
1.
1.
1+ラt *
- 1.9375
22
so n=5 terms is enough for an error of 1 x 10" and x1/2
(a) Write a function
void numberofTerms (double x, double error, int n)
that will for any value of x less then 1 in magnitude compare the series to the exact function and determine the minimum
number of terms needed to make their difference less than a specified error. Make sure you protect your function
against bad inputs using control structures.
(b) Write a driver program that tests the function numberofTerms written in 1.3(a).
arrow_forward
Code A (below) first checks the status of a file and then opens it and uses it. It contains a vulnerability.Explain what the vulnerability is and why Code B (below) resolves the vulnerability.
arrow_forward
INTRODUCTION
You are a network administrator who is responsible for 100 users and 20 servers for a
medium size business. As an administrator who has multiple tasks to get done throughout
the day, you need to develop a Power Shell script to help you manage routine tasks that
you have to take care of everyday. To simplify your administration create a script with
the following objectives
OBJECTIVES
Script that will create multiple folders using a do loop and variable
CREATE MULTIPLE FOLDER SCRIPT GUIDELINES
SETTING UP THE VARIABLES:
Open PowerShell ISE
• Create a variable Sintfolders that has a value of 10
• Create a variable SintPad that has a value of0
• Create a variable $i that has a value of 1
• Create a variable for the new folder
• New-Variable -Name strPrefix -Value "testfokder" –Option
constant
CREATING THE LOOP STATEMENT
• Do {
• Set If condition
o if (Si -k 10)
• Set Command when Condition is True
O {New-Item -path C: -name SstrprefixSintpad$i –type directory}
Set Command when…
arrow_forward
44.
In SCAN – EDF, requests with the same deadlines are ordered according to :
a.
SCAN policy
b.
EDF policy
c.
FCFS policy
d.
FIFO policy
arrow_forward
UNIX ASSIGNMENT - IXQuestion 2: Write a command to list all the files inside a folder i.e. if there is a folder inside a folder then it should list all files inside the sub-folder which is inside the folder to be listed.
arrow_forward
Differentiate write – invalidate policy from write – update policy
arrow_forward
You should make a list of the most common file attributes and
actions, as well as a short description for each one.
arrow_forward
Create a script that will allow a script user to add or remove permissions (read, write, execute)
from a file of their choosing.
The script must have the following components:
•
The script must utilize 3 or more functions.
The script must utilize a menu that the script user can use to perform an action.
The script must use conditional statements, where applicable, to handle the following
situations:
o The filename provided by the script user does not exist.
o An incorrect option was chosen by the script user at the menu.
The script's menu must also provide a way for the script user to have the following
choices:
o Select another file (i.e. once a file's permissions has been changed).
o Exit the script
arrow_forward
User Log-in
Objective:
At the end of the activity, the students should be able to:
• Create a program that handles exception and allows writing to and reading from a text file.
Software Requirements:
Latest version of NetBeans IDE
• Java Development Kit (JDK) 8
Procedure:
1. Create a folder named LastName_FirstName (ex. Reyes_Mark) in your local drive.
2. Create a new project named TaskPerf6. Set the project location to your own folder.
3. Write a program that will:
a. Ask the user to select between two (2) options:
• Register: User shall input his desired username and password. These shall be saved
in a text file named records.txt. Only alphanumeric characters are allowed.
Login: User is asked to input a username and password. Validate using the text file
created from the Register option. If both the username and password are correct,
display the message "Successfully logged in", else, display “Incorrect username or
password".
arrow_forward
Explain in detail what you consider a file extension to be and what function you think it fulfills. Go to a random folder on your computer and name three file extensions you see there, as well as any software programs that may have produced them. Most file extensions should be shown by simply right-clicking on a chosen file and choosing properties from the pop-up menu (Microsoft Windows environment).
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you
LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.
Computer Science
ISBN:9781337569798
Author:ECKERT
Publisher:CENGAGE L
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning
Systems Architecture
Computer Science
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Cengage Learning
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
Related Questions
- Write a bash script for a menu driven file management utility that can do following Create file Delete file Copy file Move file Change file user and group owner Change file permissionsarrow_forward5. Fill in the permissions in Table 4-7 with checkmarks, assuming that all four files are in the directory /public, which has a mode of rwxr-xr-x. Table 4-7 Permissions table for Discovery Exercise 5 Filename Mode Read Edit Execute List Delete sample1 User rw-rw-rw- Group Other sample2 r- User Group Other sample3 User rwxr-x--- Group Other sample4 User r-: Group Otherarrow_forwardAssignment 2 Directions Please choose Option 1 or Option 2. You do not need to do both. Option 1: Please write a short paper based on Module 2 Hardware Components. Anything in the module can be a topic. Write a summary paper as follows: • Prepare a Word document with a minimum of 3 pages (not including title and references pages) and a minimum of 3 solid references. Be sure to use APA Guidelines for references. • Make sure to save the file in the following format: FirstName_LastName_Paper.doc(x) • Upload the completed file as an attachment to this assignment. . Option 2: 1. Create an algorithm to add two integer numbers. 2. Implement the program in a high level language like C or Java. It does not need to run for me, but the code should be included in a text document called FirstnameLastnameHLA2.txt in your assignment submission. 3. Implement the program in MIPSzy Assembly language. Use the high level code as comments to the right of the Assembly code as the textbook does. 4. If you…arrow_forward
- How can developers prevent and handle common file-related exceptions such as file not found, permission denied, and file I/O errors? Provide code examples if possible.arrow_forwardCHAPTER 2 EXPLORING THE UNIX/LINUX FILE SYSTEMS AND FILE SECURITY Create a file called samp1e1.View the files present in the current directory in the long listing format.By default the permissions for a file will be rw-rw-r--, change the permissions of the sample1 file to rwxr--r-x, using the rwx notation.View the files present in the current directory in the long listing format.Create a second file called sample2.By default the permissions for a file will be rw-rw-r--, change the permissions of the sample2 file to rwxr-x--x, using 421 method.View the files present in the current directory in the long listing format.STEP BY STEP PLEASE!! ALSO SHOW SCREENSHOTS PLEASE!arrow_forwardInstructions Which attribute is displayed by the attrib command for a file that is backed up and unchanged? • V • S • R • None of these are correct < Prevarrow_forward
- Lab8-4.cpp [Read Only] - Microsoft Visual Studio File Edit View Project Build Debug Team Tools Test Analyze Window Help > Attach... - Lab8-4.cpp i + X Lab8-1.cpp* ô Lab8-6.cpp 6 Lab8-6.cpp @ A Miscellaneous Files (Global Sc B//Lab8-4.cpp - displays a pattern of numbers [//Created/revised by on 1 4 #include //end for 6. 7 | } //end of main function } //end for cin >> maxRows; 8 10 cout << "How many rows? "; cout << col; cout << endl; int main() int maxRows = 0; 11 12 13 14 15 16 return 0; 17 using namespace std; 18arrow_forward1- Which of the following is wrong? a) for an ASP.NET Core MVC project, the right place to write Javascript code is in Controller file. b) Models in MVC are typically c# classes that generally hold data from a database c) View files contain HTML and razor markup code d) Controller files are c# classs files that contain action methods. Leave blankarrow_forwardSelect all true statements Hard links are a type of file that names another file/directory path Multiple hard links can point to the same l-Node Soft links are a type of file that names another file/directory path O Hard links point to l-Nodes Soft links can be used to subvert user permissions Multiple soft links can point to the same l-Node O Soft links point to l-Nodesarrow_forward
- Why do you feel file extensions are important? Please provide a comprehensive justification for your position. You have the option of naming three different file extensions in a folder that is chosen at random on your computer. You are welcome to additionally mention the names of any software programmes that were used to build them, if you so choose. It should be possible to open the majority of file extensions by right-clicking on a file and selecting properties from the resulting pop-up menu (Microsoft Windows environment).arrow_forward20. Create a linux bash script to get a filename as input and then it should check and display if file exist and size is greater than zero, then should get input of any file comparison operator and then display if the file is true or false for that given file comparison operator. 21. Create a linux bash script to get three numbers as positional parameters then display the greatest and least of the given numbers. If positional parameters are not given then message "This script requires 3 numbers as positional parameters, Try again.." should be displayed.arrow_forwardExercise 1.3 : Approximation of functions The function (1) = can be approximated by the series ()~1+x+パ++ as long as x] < 1. We would like to explore how many terms are needed to make the difference between f(x) and this series approximation smaller than a given tolerance. For example, for an error of 1x 10- and x=0 only one term from the series is needed, while for x=1/2 = 2 1-(1/2) and 1. 1. 1+ラt * - 1.9375 22 so n=5 terms is enough for an error of 1 x 10" and x1/2 (a) Write a function void numberofTerms (double x, double error, int n) that will for any value of x less then 1 in magnitude compare the series to the exact function and determine the minimum number of terms needed to make their difference less than a specified error. Make sure you protect your function against bad inputs using control structures. (b) Write a driver program that tests the function numberofTerms written in 1.3(a).arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.Computer ScienceISBN:9781337569798Author:ECKERTPublisher:CENGAGE LProgramming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:CengageMicrosoft Visual C#Computer ScienceISBN:9781337102100Author:Joyce, Farrell.Publisher:Cengage Learning,
- Programming with Microsoft Visual Basic 2017Computer ScienceISBN:9781337102124Author:Diane ZakPublisher:Cengage LearningSystems ArchitectureComputer ScienceISBN:9781305080195Author:Stephen D. BurdPublisher:Cengage LearningEBK JAVA PROGRAMMINGComputer ScienceISBN:9781337671385Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENT
LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.
Computer Science
ISBN:9781337569798
Author:ECKERT
Publisher:CENGAGE L
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning
Systems Architecture
Computer Science
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Cengage Learning
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT