Ask Question, Ask an Expert


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?





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.


• 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

1 implement dfs by using prolog2 implement bfs by using

1. Implement DFS by using PROLOG. 2. Implement BFS by using PROLOG. 3.  Solve the problem of Question 3 in Assignment 1 by using your PROLOG programs of DFS and BFS, respectively. Question 3 from Assignment 1 to Solve wi ...

Assignmentyou will write a program that acts like a simple

Assignment You will write a program that acts like a simple calculator for binary numbers. You should read in a string of input that has the format: number operator number. Each of the numbers should be presented in two' ...

1 construct a markov algorithm that will reverse the order

1) Construct a Markov Algorithm that will reverse the order of an input string that consists of zero or more upper case letters. ABCDE should become EDCBA, AB should become BA, A should stay A, and A should stay A. NOTE: ...

Consider the following three programswhere i k l are low

Consider the following three programs: where i, k, l are low variables and a, b, c, d, h, n are high variables. Assume db is a database with two columns (shown as array, where the index represents the row), lookup and is ...

The briefyour small development team of ideally three

The Brief Your small development team of (ideally) three people has been asked to implement and test the Human Resource Information System desktop application. Your software product will be a database- backed desktop app ...

Complete the attached code and do junit testing can you

Complete the attached code and do junit testing. Can you help with this? Testing class tests Check Date methods serves as a "test plan" for developer's testing. Complete/correct and test/demonstrate using Junit with test ...

Programming assignment 1 grocery storethis assignment

Programming Assignment #1: Grocery Store This assignment attempts to serve as a refresher for concepts that I hope you learned in CS 122. In this assignment, you will be building a simple storefront for a small grocery s ...

Cp1404cp5632 2016 sp22252 assignment 1 - shopping list

CP1404/CP5632 2016 SP2/22/52 Assignment 1 - Shopping List 1.0 Task: You are to plan and then code a console-based program in Python 3, as described in the following information and sample output. This assignment will hel ...

Csis program homeworkwrite a program where the user will

CSIS program homework Write a program where the user will enter a number between 1 and 50 representing a state. The program should display the full name of that state. Assume the states are in alphabetical order, that is ...

1 tic tac toein a tic tac toe game two players x and o take

1 TIC TAC TOE In a Tic Tac Toe game two players, X and O, take turns to mark the spaces in a 3X3 grid. The winner will be the player who first succeeds in placing three of his/her marks in a horizontal, vertical, or diag ...

  • 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

A cola-dispensing machine is set to dispense 9 ounces of

A cola-dispensing machine is set to dispense 9 ounces of cola per cup, with a standard deviation of 1.0 ounce. The manuf

What is marketingbullwhat is marketing think back to your

What is Marketing? • "What is marketing"? Think back to your impressions before you started this class versus how you

Question -your client david smith runs a small it

QUESTION - Your client, David Smith runs a small IT consulting business specialising in computer software and techno

Inspection of a random sample of 22 aircraft showed that 15

Inspection of a random sample of 22 aircraft showed that 15 needed repairs to fix a wiring problem that might compromise

Effective hrmquestionhow can an effective hrm system help

Effective HRM Question How can an effective HRM system help facilitate the achievement of an organization's strate