Question

In: Computer Science

Question 1 What Unix command can be used to change the access permission of a file...

Question 1

  1. What Unix command can be used to change the access permission of a file ?   and how ?

  1. Explain how pipe works in Unix. Give one example; Explain how redirect works in Unix and give an example.

  1. Explain the structure of Unix file system and how absolute and relative paths work

  1. What is UML ?   Briefly explain two types of diagrams in UML.

  1. Briefly explain two types of testing methods for software development and the major stages in software development cycles

Solutions

Expert Solution

1

a.What Unix command can be used to change the access permission of a file ?   and how ?

"chmod" command is used to change the access permissions of file.It changes the permission according to the modes.There are to types of mode i.e numerical mode and symmetric mode.Mode describes what permissions will be changed.Modes are specifies with octal numbers or letters.

Syntax:

chmod[reference][operator][mode] file

a.Explain how pipe works in Unix. Give one example; Explain how redirect works in Unix and give an example.

Pipe is a form that allows one system to send one command or process to another command or process for further processing.It provides one way traffic or pipe flow of data.In Unix, pipe is created using pipe system call.There are two discriptors field[0] that is used for read and field[1] that is used for write.

When pipe is used in Unix,one process is used to write to stdout and other reads from stdin.Pipes uses"grep" and "sort" command.Grep command is used to find strings from text document and sort command is used to sort content of file in alphabaticall order.

a.Explain the structure of Unix file system and how absolute and relative paths work?

The Unix file system is a metho used for logically organizing and storing large quantities of data to manage system easily. In Unix file system file is the smallest storage unit. A file system consists of files, relationships to other files, and attributes of each file. File attributes are information relating to the file, but do not include the data contained within a file.

In Unix file system there is a multilever hierarachy.In which directory at top is known as root and represented as"/".This representation is known as directory tree.Other files are descendents or childs of root.

Path is a unique location of file in file system.Absolute path is specifying location from root.It starts from root and then goes down.We write / after every file name.Relative path is path related to present working file or directory.It never starts with "/".In this we use single dot and two dots for representing current directory and parent directory respectively.

a.What is UML ?   Briefly explain two types of diagrams in UML

UML is Unified Modeling Language that is used for modeling and documenting software.It is diagrammetic representation of software components.It is used as general purpose modelling language.Two types of diagram in UML are:

1.Structural

2.Behavioral

Structure diagrams show the things in the modeled system. They show different objects in a system.

Behavioral diagrams show what will happen in a system. They describe how the objects interact with each other to create a functioning system.

a.Briefly explain two types of testing methods for software development and the major stages in software development cycles

Two types of testing methods for software development are functional testing and non-functional testing.

Functional testing tests the functionality of system or we can say how system performs its functionality.

Non Functional testing tests how software responds in various conditions.

Major stages of software development cycles are:

  1. Planning
  2. Requirement analysis
  3. Designing
  4. Software development
  5. Deployment
  6. Testing
  7. Maintainence

NOTE:

I hope my answer met all your requiremnets.In case of any doubt do ask in comment.

THANK YOU!


Related Solutions

1. What command is used to change the current working directory at the command line?
1. What command is used to change the current working directory at the command line?
In a UNIX-like file system, a directory typically contains: A. filenames and i-nodes B. permission information,...
In a UNIX-like file system, a directory typically contains: A. filenames and i-nodes B. permission information, pointers to direct blocks C. filenames and ownership information D. filenames, i-nodes, major device numbers and minor device numbers
unix question please write a program and then show how to use top command that shows...
unix question please write a program and then show how to use top command that shows the zombie process, give snapshot of top command that shows the zombie process Write a very simple program that will show the possibility of having zombie processes. Write a program named zombie.c The main process will create a child. The child prints something like: “I am the child with pid ….. and my parent has ppid ….” Next, the child will sleep for 1...
1. At the command prompt, use the where command to locate the where.exe file. Copy and...
1. At the command prompt, use the where command to locate the where.exe file. Copy and paste the full path and filename for the where.exe file into the space provided below. 2. At the command prompt, enter the following command and press enter. find "free beer" "c:\Program Files (x86)\Notepad++\*.txt" This command searches for the string "free beer" in all .TXT files in the Notepad++ program folder. According to the output of the find command, which of the files listed below...
Which command is used to hold open a very short or zero-length file?
Which command is used to hold open a very short or zero-length file?
Unix / Linux 6. vi editor: In vi command mode, what are the keystrokes you would...
Unix / Linux 6. vi editor: In vi command mode, what are the keystrokes you would type to... Quit the vi editor and save any changes? 7. C language source files, by convention, have the suffix ".c". The associated "header" files have the suffix ".h". What is the command to perform the following task: List all the C source and C header files in the current directory. [Hidden files may remain hidden.] 8. C language source files, by convention, have...
Please execute the appropriate Unix command to perform the action described. 1 - Put your login...
Please execute the appropriate Unix command to perform the action described. 1 - Put your login name in the file session03_hw. 2 - Put the date in mm/dd/yy format in the file session03_hw. 3 - Put the abbreviated weekday name in the file session03_hw. 4 - Put the time in hh:mm format in the file session03_hw. 5 - Use the command for a short listing with the option to list entries by columns. List files that start with mno and...
1. Can emergent change be intentional? How can emergent change be used to bring about a...
1. Can emergent change be intentional? How can emergent change be used to bring about a specific end result? 2. How would Lewin’s three-step model compare to the first three steps in Kotter’s eight-step model of change? 3. Explain in what situations downsizing/restructuring is the best solution instead of utilizing other employee cutback strategies?
what is the major change of Unix, Linux and Android. what there evelution ? what they occor? discuss this
what is the major change of Unix, Linux and Android. what there evelution ? what they occor? discuss this
You can use the "cat" command to list the content of a file. For example: cat...
You can use the "cat" command to list the content of a file. For example: cat /etc/fstab lists the content of the file /etc/fstab in the terminal window that you are currently using. If you use a redirection of the standard output of the "cat' command: cat /etc/fstab > foo then a file named "foo" is created in the local directory and the content of the file /etc/fstab is listed by the "cat" command into the file "foo", which then...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT