Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Operating System Expert

Assignment

1. What key sequence under nano quits without saving the file? What key sequence saves a file and quits even if the file has R/O permissions?

2. File PHONEBOOK.LST has the following format: Lastname Firstname StreetAddress City State Phone#. Assuming one space between the fields, write the command sequence on one line that will:

a) select all persons not in New York state (State=NY)
b) sort in alphabetical by last name, then by city.
Put results into file PHONEBOOK.NOTNY
c) and display the output on the screen a page at a time (man tee)

3. Show the command(s) to take the above command line, echo it into NOTNY.SH and make it executable by everyone; writeable by the owner.

4. Give the command string to:

a. Change to your home directory.

b. create a directory named after your LOGIN name (using the env variable)

c. change the active directory:

to the parent directory
to the root directory

d. remove the directory named after you from your current directory position.

5. Write the command to display the current logged in terminal type. Write the command to display the current loged in terminal.

6. Write the command to display the PATH. What command do you use to find where the command "ls" is?

7. What is a HERE document? Show an example of using a HERE document to copt the LINES HELLO , THERE to STDOUT.

8. Explain the nine file permission states.

9. Use the numeric method of the appropriate command(s) to change permissions on file OCC.DATA to allow:

a. the user BRUCE to own the file and read, write, and execute the file:

b. allow the group USERS to read and execute the file and:

c. allow the world to only read the file:

10. Show the command you can you use cat to create a file from your keyboard typing until you are done and how you would end it.

11. Mark those commands available on the UNIX system with a YES and if not available with a NO.

a. who
b. ytalk
c. w
d. alias
e. finger
f. more
g. users
h. talk
i. mesg
j. write

12. Write two different command lines that will copy file TIME.DATA to WEEKS.PAY.

13. Explain the difference in the operation of a pipe character and the operation of the redirection character. Give an example of each that will "cat" file TIME.DATA to STDOUT a screen at a time, another file..

14. From question 2) Write the command line that will find the line containing the phone number of Alice Johnson in file PHONEBOOK.LST.

Show the command(s) to take the above command line, echo it into FINDALICE.SH and make it executable by everyone; writeable by the owner.

15. Write the command to link /home/jenny/draft to /home/alex/letter:

Assume both Jenny and Alex have rw permissions to this file and the following sequence occurs:

a. Alex gives the command: vi letter
b. Jenny gives the command: vi draft
c. Jenny changes the date in the opening of the letter to 12/31/94
d. Alex changes the date in the opening of the letter to 1/31/95 and uses the wq command to exit.
e. Jenny changes some more text and uses the wq command to exit.

What will the date in the opening of the letter be? Why?

16. Describe what is happening in the following command line: grep "^J" class20??.list > J.students

17. Write the command sequence in one line to list all processes in the system owned by your id in reverse numerical order by PID.

18. What keyboard letters allow you to navigate a file under vi if the arrow keys don?t work?

19. Show the command string used to compress the file MYDATA.XLS. What is the resulting output filename? What happens to the original file?

20. Explain the difference between a hard link and a soft link. What's the difference between the two when you delete the original file?
What limitation does a hard link have the soft link doesn't.

Specify the results of the following commands:

21) echo *

a) all the files in the system
b) all the files in the filesystem
c) all the files in the current directory
d) the character *

22) who | wc -l

a) who is logged onto the system
b) who is defined to the system
c) how many people are logged onto the system
d) how many people can be logged onto the system

23) echo [^0-9]*

a) the numbers 0 thru 9
b) all files starting with 0 thru 9
c) all files starting with a thru z and A thru Z
d) all files starting with a non-numeric character

24) ls -al | wc

a) the number of files in the system
b) the number of files in the filesystem
c) the number of files in the directory
d) none of the above

25) rm ???

a) erase all files
b) erase any files beginning with ?
c) erase any beginning with ???
d) erase any files three characters long

26) cat /etc/passwd | grep bash

a) all users named bashir defined to the system
b) all users defined to the system
c) all users you want to bash
d) all user of the bash shell 27) cp ../* .
a) copy all files to the parent directory
b) copy all files from the parent directory
c) copy all files to STDOUT
d) none of the above 28) ls [a-zA-Z]*[^0-9]
a) list all files that begin with an alphabatic character and doesn't end with a number
b) list all files that begin with an alphabetic character
c) list all files that begin with an alphabetic character and end with a numeric character
d) list all files that begin with a numeric character and end with a non-numeric character

29) Write the command on one line that select all students out of /etc/passwd with a home directory in the /home/csc/stud/spring directory
in order by name one screen at a time.

30. The user interface to the UNIX operating system is called the: _____.

Attachment:- Attachments.rar

Operating System, Computer Science

  • Category:- Operating System
  • Reference No.:- M92724347

Have any Question?


Related Questions in Operating System

Question note apa format 250 words and three reference

Question: Note: APA format 250 words and three reference without plagarism Computerized Operating Systems (OS) are almost everywhere. We encounter them when we use out laptop or desktop computer. We use them when we use ...

Show all stepssuppose that the following processes arrive

Show all steps Suppose that the following processes arrive for execution at the times indicated. Each process will run the listed amount of time. in answering the questions, use non-preemptive scheduling and base all dec ...

State the required answer precisely and then provide proper

State the required answer precisely and then provide proper explanation. It is not enough to provide one- word or one-line answers. Briefly describe the following concepts and indicate how they are related in the context ...

Question 1answer the following questions 10 marks a

Question 1 Answer the following questions: 10 marks a. Consider the following page reference string: 3, 1, 4, 1, 2, 3, 5, 3, 2, 1, 2,5, 4, 3, 5, 2, 4,2, 5,3 Using the above page reference string display the contents of t ...

Research types of operating systems that are currently

Research types of operating systems that are currently available and provide a scenario in which the operating system you chose would be appropriate to be used in this situation. Explain why you think the choice you made ...

Question topic computerized operating systems os are almost

Question: Topic: Computerized Operating Systems (OS) are almost everywhere. We encounter them when we use out laptop or desktop computer. We use them when we use our phone or tablet. Find articles that describes the diff ...

Question what do you see as the major differences between

Question : What do you see as the major differences between UNIX/Linux and other operating systems, such as Windows and Mac OS X? The response must be typed, single spaced, must be in times new roman font (size 12) and m ...

Foundation of information technologyresearch types of

Foundation of Information Technology Research types of operating systems that are currently available and provide a scenario in which the operating system you chose would be appropriate to be used in this situation. Expl ...

Discussion question this research assignment will give

Discussion Question : This research assignment will give further information on the nature and workings of multi-tasking and multi-processing operating systems. All information reported in this assignment is to be in the ...

Question you are a security administrator responsible for

Question: You are a security administrator responsible for providing secure configuration requirements for new laptop deployments. After reading Module 2 of Certified Secure Computer User v2exercises, apply the configura ...

  • 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

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As