Change the permissions on a file

Assignment Help Operating System
Reference no: EM131021030

I. Multiple Choice

DIRECTIONS: Save this document on your local machine. Use the blue-bordered box for your answers - for each question, type the answer you have selected into that box.

1. Which command is used to change the ownership of a file?

a. chmod                                             c. setuser

b. mv                                                   d. chown

2. Which option to the rm command will cause the shell to prompt for confirmation before deleting each file in the parameter list?

a. -r                                                      c. -f

b. --interactive                                     d. --prompt

3. Which of these numbers represents read-write permission for the owner and read permission for other groups (should be the default for a file created with vi)?

a. 622                                                  c. 644

b. 755                                                  d. 600

4. Which of the following are valid command-line operators?

a. |                                         c. :)

b. <-                                        d. all of the above

II. Short Answer

DIRECTIONS: Type the answer to each question in the blue box associated with it.

5. Write a command which will change the permissions on a file named boreworms.txt so that the owner of the file has read and execute permission, the group owner has read permission, and no one else has any access to the file.

6. Write a command which will search some of the files in your current directory for the string "mingo". All of the files which are of interest to you have the form flashcomicXXX.txt, where XXX is a 3-digit number.

7. Write a command which will move a file named boreworms.txt from your current working directory to the home directory of a user named lizardman.

8. Write a command which will display a word count of a file named flashcomic123.txt.

Verified Expert

The solution file has 2 parts which are basic unix shell commands. Part 1 is multiple choice questions are answered and part 2 is short questions which are answered with unix commands and examples.

Reference no: EM131021030

Questions Cloud

How are some animals able to see in the dark : How are some animals able to see in the dark whereas the majority are able to see during daylight?
Compute amount of accumulated depreciation on each machine : Compute the amount of accumulated depreciation on each machine at December 31, 2015. If machine 2 was purchased on April 1 instead of July 1, what would be the depreciation expense for this machine in 2013 and In 2014?
Strategies for enhancing antitumor immune responses : Strategies for enhancing antitumor immune responses include all of the following except
Vega corporation purchased a patent at a cost : The amount charged to income (expense and loss) in 2019 related to the patent should be:$ 26,000.$219,200.$ 53,600.$217,000.
Change the permissions on a file : Write a command which will change the permissions on a file named boreworms.txt so that the owner of the file has read and execute permission, the group owner has read permission, and no one else has any access to the file.
Suppose that an investor with two year investment horizon : Suppose that an investor with a two year investment horizon is considering purchasing a seven year 9% coupon bond selling at par. The investor expects that he can reinvest the coupon payments at an annual interest rate 10% and that at the end of the ..
Depletion or inactivation of b lymphocytes by drugs : Depletion or inactivation of B lymphocytes by drugs or antibodies results in reduced graft rejection? true or false
Remaining until maturity on bonds and the yield to maturity : Large Industries annual bonds are selling at 95.70 (i.e., the price is $957 for the $1,000 bond). There are 8 years remaining until maturity on the bonds and the yield to maturity is 6.25%. Find the coupon rate. (Note: you may have to use a trial and..
Management reported that net income rose : Buckin’ Bronco Corp. posted EBITDA of $305,080, EBIT of $262,620, and EBT of $205,450. Management reported that net income rose by 5% from the previous year and the market value of assets rose by 3%. Using the tax table below, how much will Buckin’ B..

Reviews

Write a Review

Operating System Questions & Answers

  Implementation of algorithms for process management

The Shortest Job Next (SJN) algorithm queues processes in a way that the ones that use the shortest CPU cycle will be selected for running rst.

  Develop a user mode command interpreter

Develop a user mode command interpreter which support list-short.

  Memory allocation in operating system

Analysis and implementation of algorithms for memory allocation in operating system, Explain First- t and best- t methods are used in memory allocation in operating systems.

  Stand alone child process

Forking the child process

  Write a multi-threaded program

Write a multi-threaded program to solve producer and consumer problem

  Marginal and average cost curves

n a competitive market place (pure competition) is it possible to continually sell your product at a price above the average cost of production.

  Simulating operating systems scheduling

Simulate the long-term scheduler, the short-term scheduler and the I/O scheduler of the computer using the First-Come-First-Serve algorithm.

  Issues with trusted platform module

Research paper discussing the issues with Trusted Platform Module (TPM)

  Threads

Explain a complication that concurrent processing adds to an operating system.

  Design and programming

Use the semaphore methods to control the concurrency of the solution

  Virtual machines

Virtual machines supported by a host operating system

  Discuss an application that benefits barrier synchronization

Discuss an application that would benefit from the use of barrier synchronization

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd