What the difference between shell and environment variable

Assignment Help Computer Engineering
Reference no: EM132259913

Questions -

Q1. In a bash shell script, what are the required elements of an "if" control structure?

Q2. In a bash shell script, what are the optional elements of an "if" control structure?

Q3. In a bash shell script, what are the required elements of a "while" control structure?

Q4. What is the difference between a shell variable and environment variable? Which one is considered local and which is considered global?

Q5. List the four kinds of shell parameters/variables.

Q6. Of these four kinds, which kind do $, $_, $#, and $? Belong to?

Q7. What do $, $_, $#, and $? Represent?

Q8. Show the command that creates an alias named hi which lists the hidden files in the current directory.

Q9. Describe the actions that take place when a command ends with

|& file1

For example,

./myscript |& file1

Q10-Q21. Briefly describe the following Linux commands and acronyms.

10. ssh:

11. telnet:

12. traceroute:

13. TCP:

14. LAN:

15. DNS:

16. ftp:

17. ssh:

18. ping:

19. env:

20. g++:

21. gcc:

Q22. Show a command that will create a file named "etc.tar" in your home directory from recursively going through all of the files in the "/etc" directory. In other words, the "etc.tar" file will include the files in the "/etc" directory as well as all of its subdirectories. IMPORTANT: This command must work for any user as well as work from any directory.

Q23. In bash, multiple commands can appear on a single command line when they are separated by certain one to two character control operators. Excluding the newline command initiator, list five other control operators which separate commands.

Q24. Show a single compound command which first changes the permissions on a file named "mychess.conf" in the current directory so that you, your group, and everyone else are limited to read access only; Next, put the file named "mychess.conf" in the "/etc" directory and in the process rename it "chess.conf".

Q25. Show a single compound command which will look for the files "a" and "b" in the current directory, then will print "error: files are missing!" if either file does not exist or will print absolutely nothing if they both exist. Try it out on the command line to check your answer.

Reference no: EM132259913

Questions Cloud

Develop a framework for the elements needed : Develop a job guide for employees that will provide guidance for gaining the level of skill and experience needed to complete the tasks for their job.
Learnt from lessons and from developing your essay : Discuss what you learnt from the lessons and from developing your essay, emphasising the need for:
Why not try to end the campaign by killing the sheriff : Why not try to end the campaign by killing the Sheriff? What are the pros and cons of accepting the offer of the barons to assist in securing King Richard's.
Work allegedly infringing on the copyrighted material : Elements of copyright infringement are that the originator of the work allegedly infringing on the copyrighted material had access to the earlier work.
What the difference between shell and environment variable : What is the difference between a shell variable and environment variable? Which one is considered local and which is considered global
Explain the reasons you would or would not delegate the task : Write a memo to identify and describe in which of these scenarios you would delegate and in which you would not.
Total quality management is business management strategy : Total Quality Management (TQM) is a business management strategy aimed at embedding awareness of quality in all organizational processes.
Construct the bill of materials : Construct the bill of materials (product structure tree). Find the planned order releases for all items.
How does netflix use intrinsic motivation : Why would a creative firm choose to use intrinsic motivation where an industrial firm would probably choose to use extrinsic rewaeds

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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