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

Assignmenta catering company provides prepared meals for

Assignment A catering company provides prepared meals for events such as business meetings. The company has a number of standard meals, which it identifies with a unique integer ID number. At this stage each meal also ha ...

Avanced web scripting - practical assessmentbackground

Advanced Web Scripting - Practical Assessment Background / Requirements Parkfordshire University has a timetabling system which allows for the production of personalised timetables, based on the modules each student is t ...

Programming oneusing jgrasp and the software development

Programming One Using jGrasp and the Software Development Kit, write a program in response to the following prompt: Write a program that prompts the user to input three numbers. This program should then output the number ...

Assignmentinstructionsthe first programming project

Assignment Instructions The first programming project involves writing a program that computes the salaries for a collection of employees of different types. This program consists of four classes. The first class is the ...

Note that these regular expressions give all of the

Note that these regular expressions give all of the following symbols (operator characters) a special meaning: \ " . - $ [ ] * + ? { } | / Their special meaning must be turned off if they are needed to represent them-sel ...

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; ...

Assignmenta student had to make a decision on how to be

Assignment A student had to make a decision on how to be paid. The student could accept a straight $10/hour or take 10 cents for the first hour, but have the hourly wage double each hour. That is, the student would make ...

Enable geometricobject comparable modify the

(Enable GeometricObject comparable) Modify the GeometricObject class to implement the Comparable interface, and define a static max method in the GeometricObject class for finding the larger of two GeometricObject object ...

Question 1 batteriesi want to use a galvanic cell to power

Question 1: Batteries I want to use a galvanic cell to power a 60-watt light bulb. Complete the following steps to determine how long the galvanic cell will power the light bulb before running out. a.) The galvanic cell ...

Assignmentwrite a program to converts temperatures between

Assignment Write a program to converts temperatures between Fahrenheit and Celsius. Your program should print a brief message describing what it does, and then prompt the user to enter "1" if they would like to convert a ...

  • 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

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

Describe what you learned about the impact of economic

Describe what you learned about the impact of economic, social, and demographic trends affecting the US labor environmen