Ask Question, Ask an Expert

+1-415-315-9853

info@mywordsolution.com

Ask Programming Language Expert

1. State and describe 6 types of redirection. Include exs for each.

2. describe what each of the following programs do and give exs of its use:

1) crontab   2) make   3) chmod    4) vi   5) gcc   6) paste    7)join

For the following problems: describe what the commands and arguments will do.

3. chmod 754 test.txt c* 2> describeed.txt

4. cat testfile.txt | sed -e ‘/s/dog/cat/g’ > animals.txt

5. ANIMALS=`date +%d; echo ‘\ndog cat mouse’`

6. if test –z file.txt; then; echo done; else; touch file.txt;

7. paste –d, names.txt address.txt> book.txt 2> errors.txt

8. The file toys.txt has the permissions - r w - - w - - w – prepare the full command to change the permissions on the file for the following problems: (Use the original file permissions given above for each problem.)

i. – r w x r w - r - x

ii. - r - x – w x - - x

iii. d r w - r - - - w x

9. Describe the 5 essential steps in creating a new operating system on a machine.

10. What are virtual machines? Describe a few pros and cons of them.

11. Which of the following are valid variable names?

a. _FRUIT_BASKET

b. 1_APPLE_A_DAY

c. FOUR-SCORE&7YEARS_AGO

d. VARIABLE

12. prepare a loop that executes a line of code “echo ‘hello there’” once.

13. describe what types of files are found in the following directories:

a. /dev b. /mnt c. /boot d. /var e./lib

14. prepare a for loop that displays a countdown to the screen.

15. Describe the lifecycle of a project under version control.

16. When would we use the following commands in version control (using subversion) and describe what it does:

a. Svn update

b. Svn delete

c. Svn status

d. Svn commit

e. Svn list

17. Create a script that will do the following:

The script will have a menu that continuously loops until they type ‘EXIT’.

The menu will list off simple options for the user:

1. Open a file – the user will then be asked for the filename and the file will be opened on the screen.

2. Edit a file – the user will then be asked for the filename and the file will be opened in the vi editor

3. Move a file – the user will be asked for the filename to move and the location to move the file to; which afterwards the action will be performed.

4. Copy a file – the user will be asked for the filename to copy and the location to copy the file to; which afterwards the action will be performed.

5. Rename a file – the user will be asked for the filename to rename and then the new name for the file.

6. Update a file – the user will be asked for a filename and then the permissions to update the file with; after which the files permissions would be updated (you can do numeric or text)

7. Exit – this should close the loop.

Note:

• Clear the screen and re-display the menu after any requests have been completed or a menu option that is not there is selected.

Programming Language, Programming

  • Category:- Programming Language
  • Reference No.:- M91823

Have any Question? 


Related Questions in Programming Language

Assignmentindent code and insert comments to document your

Assignment Indent code and insert comments to document your program. Program must be implemented and run as instructed. Source file and executable are placed in a folder. Define the class with the name BankAccount to sto ...

Assignmentinstructionsfor formload display use a textbox

Assignment Instructions: For Form_Load display, use a textbox and check its "multiline" checkbox. To display data on Form_Load, use a txtOutput. AppendText() method (i.e. NOT a listbox control). 1. Declare a global array ...

Design a project to allow a student to access current

Design a project to allow a student to access current grades and/or create a "What-if" situation on a continuing basis to understand where they are at any given point in the semester. You will need to calculate multiple ...

Question 1a class is like a blueprint which you use to

Question 1 A class is like a blueprint which you use to create objects. An object is an instance of a class. It's a thing that you made out of a speci?c class. Basically, object and instance mean the same, but the word i ...

Assignmentquestion 1consider the following class the

Assignment Question 1 Consider the following class. The purpose of each block of code within the class is written in comments within the code. But the following class contains a number of errors. Errors can occur at comp ...

Assignmentreference this assignment is an object oriented

Assignment Reference: This assignment is an object oriented version of the In-class assignment. The functionality supported for a single vehicle in ICA 01 would be extended to multiple vehicles using a single class Car, ...

Suppose you have a class cbirdsuppose you have a class

Suppose you have a class CBird Suppose you have a class CBird, as follows, that you want to use as a base class for deriving a hierarchy of bird classes: class CBird { protected: int wingSpan; int eggSize; int airSpeed; ...

Evaluate a formula for data in a filewe consider the

Evaluate a formula for data in a file We consider the formula y(t) = v0t - 0.5gt2 and want to evaluate y for a range of t values found in a file with format v0: 3.00 t: 0.15592 0.28075 0.36807889 0.35 0.57681501876 0.213 ...

Assignmentfor questions 2-9 you must submit your code

Assignment For questions 2-9 you must submit your code together with the output of running your code on some sensible sample input. Submit the input and the output of your program along with your code. Question 1 Conside ...

Create a class rectangle with attributes length and width

Create a class Rectangle with attributes length and width, each of which defaults to 1. Provide methods that calculate the rectangle's perimeter and area. It has set and get methods for both length and width. The set met ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

WalMart Identification of theory and critical discussion

Drawing on the prescribed text and/or relevant academic literature, produce a paper which discusses the nature of group

Section onea in an atwood machine suppose two objects of

SECTION ONE (a) In an Atwood Machine, suppose two objects of unequal mass are hung vertically over a frictionless

Part 1you work in hr for a company that operates a factory

Part 1: You work in HR for a company that operates a factory manufacturing fiberglass. There are several hundred empl

Details on advanced accounting paperthis paper is intended

DETAILS ON ADVANCED ACCOUNTING PAPER This paper is intended for students to apply the theoretical knowledge around ac

Create a provider database and related reports and queries

Create a provider database and related reports and queries to capture contact information for potential PC component pro