Bash Shell

In: Computers and Technology

Submitted By japz77
Words 419
Pages 2
"Bash is a Unix shell written by Brian Fox for the GNU Project as a free software replacement for the Bourne shell (sh). Released in 1989, it has been distributed widely as the shell for the GNU operating system and as the default shell on Linux and Mac OS X. It has been ported to Microsoft Windows and distributed with Cygwin and MinGW, to DOS by the DJGPP project, to Novell NetWare and to Android via various terminal emulation applications.

Bash is a command processor, typically run in a text window, allowing the user to type commands which cause actions. Bash can also read commands from a file, called a script. Like all Unix shells, it supports filename wildcarding, piping, here documents, command substitution, variables and control structures for condition-testing and iteration. The keywords, syntax and other basic features of the language were all copied from sh. Other features, e.g., history, were copied from csh and ksh. Bash is a POSIX shell but with a number of extensions.

The name itself is an acronym, a pun, and a description. As an acronym, it stands for Bourne-again shell, referring to its objective as a free replacement for the Bourne shell. As a pun, it expressed that objective in a phrase that sounds similar to born again, a term for spiritual rebirth.The name is also descriptive of what it did, bashing together the features of sh, csh and ksh.

The Bash command syntax is a superset of the Bourne shell command syntax. The vast majority of Bourne shell scripts can be executed by Bash without modification, with the exception of Bourne shell scripts stumbling into fringe syntax behavior interpreted differently in Bash or attempting to run a system command matching a newer Bash builtin, etc. Bash command syntax includes ideas drawn from the Korn shell (ksh) and the C shell (csh) such as command line editing, command history, the directory stack,…...

Similar Documents

Linux Shell

...What is a shell well a shell is software that provides an interface for users of an operating system which provides access to the services of a kernel. The command processor is the program that executes operating system commands. The shell, therefore, is the part of the command processor that accepts commands. After verifying that the commands are valid, the shell sends them to another part of the command processor to be executed. The shell is a program that takes your commands from the keyboard and gives them to the operating system to perform. In the old days, it was the only user interface available on a UNIX computer. Nowadays, we have graphical user interfaces (GUIs) in addition to command line interfaces (CLIs) such as the shell. On most Linux systems a program called bash (which stands for Bourne Again Shell, an enhanced version of the original Bourne shell program, sh, written by Steve Bourne) acts as the shell program. Besides bash there are several additional shell programs available on a Linux system which includes sh, ksh, csh and tcsh. The differences between bash and the other shells is that bash has a command history features that allows you to recall, edit and rerun previous commands, and command completion when pressing the tab key. Whereas the ksh shell has a scripting features that is not included in bash shell. Before you install linux you must have a plan on how you want your disk partition. The advantages of planning are you can isolate parts......

Words: 486 - Pages: 2

Shell

...Shell 1.You will be asked to present the objectives of the organisations of your choice according to what is stated on the websites of the organisations, marketing materials, mission statements, annual reports, etc.; feel free to bring these materials! 2.Find out what type of stakeholder groups the chosen organisation needs to deal with, what would be the most likely order of these groups according to company priorities and why? How would these groups alter the primary objectives of the organisation? 3.Also consider the difference between short-term and long-term objectives the organisation you have chosen has. Imagine yourself being a CEO of the company, what would be your objectives? Then imagine yourself being a member of one of the stakeholder groups, what would be your objectives in that case and why? 1. Our Vision To be the Top Performing and Most Admired Refinery in Asia Our Mission To continuously deliver shareholder value by: •Manufacturing and supplying oil products and services that satisfy the needs of our customers •Constantly achieving operational excellence •Conducting our business in a safe, environmentally sustainable and economically optimum manner •Employing a diverse, innovative and results-oriented team motivated to deliver excellence Our Objectives We are committed to deliver sustainable excellence in business performance by focusing on the following: •Benefit our shareholders •Realise the potential of our people •Meet our......

Words: 2731 - Pages: 11

Shell

...Shell is a global group of energy and petrochemical companies, operating in more than 145 countries and employing nearly 120,000 people. Shell produces circa 3% of the world's oil and circa 3.5% of the world's gas. Most people know the company for its retail outlets and its oil and natural gas exploration and production activity. Other Shell activities include: * marketing, transporting and trading oil and gas * providing oil products for industrial uses, including fuel and lubricant for ships and aircraft * generating electricity, including wind power and producing solar panels * producing petrochemicals used for plastics, coatings and detergents * developing technology for hydrogen vehicles. Shell considers it a business priority to diversify its business portfolio to include more unconventional fuels in order to meet the worlds increasing demand for energy whilst minimising the impact on the environment. Hence the need for the development of 'future fuels'. At the present time, any company seeking merely to exploit resources for immediate gain and at the expense of the environment or customers' best long-term interests is likely to generate government scrutiny, public hostility, customer resistance and, possibly, prosecution. Like any well-run business, Shell takes a long term view of what constitutes 'best possible use' of the resources available to it. One key challenge facing Shell is how to use its profits and accumulated reserves to promote......

Words: 1468 - Pages: 6

Shell

...seem like unethical, and Royal Dutch Shell Public Limited Company is one of the example. As being a large and profitable company, Shell has started a new Athabasca Oil Sand Project in Alberta. World’s scientific community together with independent non-profit organization believe that this project will make the environment pollution in Alberta being more serious and adversely impact the ecosystem. They are disappointed to the unethical decision of Shell. Therefore, based on this case, the purpose of this research is to discuss the ethics issue that Shell cause and the company performance under its Code of Conduct in this regard. Solutions will be given, including the cost and benefit for the different shareholders. 2. THE CASE 2.1 THE SITUATION AND KEY FACTS Alberta is a province of Canada which is the largest producer of crude oil, natural gas and other gas products. It is active in every area of the oil and gas industry, including exploration, production and refining. Athabasca oil sand is the world largest receptacle of crude bitumen which locates in north eastern of Alberta. This oil sand stores a high quantity of unconventional petroleum which consists of a mixture of bitumen, clay minerals, water together with sand. 2.2 THE KEYSTAKEHOLDERS AND THEIR INVOLVEMENT Stakeholders refer to a person, group, organization or system that can affect and be affected by company decision. Government is one of the key stakeholders for Shell. They are the system by which......

Words: 1558 - Pages: 7

Shell

...Mercier Corporate Report Shell Introduction The reason for this report is to determine rather the company I chose is a good investment for the business. The company I chose is Shell. Shell Refining Company is incorporated in Malaysia. Shell’s fiscal year is from January to December. The stock exchange is reported in financial reporting to review appropriateness of management’s selection of accounting principles. The ticker symbol is expressed as RDS.A. Shell Malaysia places importance in ensuring its cost competitiveness in the industry and to the world. Analysis Name of corporation is Shell Malaysia. The headquarters are located in Malaysia. Shell is a global group of energy and petrochemicals companies around 9000 employees in more than 80 countries and territories. Shell’s fiscal year ended December 31, 2012. The stock exchange associated with Shell is the main board of Bursa Malaysia Securities Berhad. Stock name is SHELL and its stock code is 4324. There was no symbol included in the annual report. The primary source of revenue is primarily millions of barrels sold with products. Shell sold 40 million barrels of products with a yield of 8 per cent. Shell had a 29 per cent increase in sales volume which resulted in a year-on-year revenue growth of 15 billion. 4,170 RM billion is the total assets that were reported in 2012 that Shell produced. Cash was reported as 74 RM million in 2012. In 2011, cash was reported as 114 RM million so last year Shell had......

Words: 963 - Pages: 4

Shell

...vast majority of vehicles and as the base of many industrial chemicals makes it one of the world's most important commodities. Access to it was a major factor in several military conflicts, including World War II and the Persian Gulf War. About 80% of the world's readily accessible reserves are located in the Middle East, with 62.5% coming from the Arab 5: Saudi Arabia (12.5%), UAE, Iraq, Qatar and Kuwait. The USA has less than 3% 1.3: Major players 6 The oil industry is often described as having an oligopolistic market structure that is, it is dominated by a small number of big major players, which include Exxon, Mobil, Chevron, BP, and Shell. A slump in oil prices in the late 1990’s resulted in heavy cut backs in staff and operating costs in 1998-99 and merges between BP and Amoco and Exxon and Mobil. 1.4: PEST ANALYSIS OF SHELL COMPANY PEST Analysis is a simple but important and widely-used tool that helps you understand the big picture of the Political, Economic, Socio-Cultural and Technological environment you are operating in. PEST is used by business leaders worldwide to build their vision of the future. OR PEST analysis is very important that an organization considers its environment before beginning the marketing process. In fact, environmental analysis should be continuous and feed all aspects of planning. The organization's marketing environment is made up from: 1. The internal environment e.g. staff (or internal customers), office technology, wages and......

Words: 10567 - Pages: 43

Shell

...ENERGY FOR A CHANGING WORLD Shell – an Introduction Darwin Silalahi Presiden Direktur Shell Indonesia Copyright of Shell International B.V. ABOUT SHELL Recognised for technical innovation and megaproject delivery Employs 90,000 people in more than 80 countries Committed to social and environmental sustainability Producing the equivalent of 2,300 barrels of oil every minute Partners in innovation with Ferrari F1 team Active in alternative energies such as biofuels and wind One of the world’s bestknown brands Selling transport fuel to some 10 million customers a day Copyright of Shell Supply & Distribution RESTRICTED July 2012 2 THE WORLD’S LARGEST CORPORATIONS BY REVENUE Rank 2011 revenues ($ million) 484,489 452,926 2011 profits ($ million) 30,918 41,060 15,699 25,700 9,453 16,317 5,678 26,895 12,436 Shell ExxonMobil Wal-Mart Stores 1 2 3 4 5 6 7 8 9 10 446,950 386,463 375,214 352,338 259,142 245,621 237,272 BP Sinopec Group China National Petroleum State Grid Chevron ConocoPhillips Toyota Motor Source: Fortune Global 500, 2012 Copyright of Shell Supply & Distribution 235,364 3,591 RESTRICTED July 2012 3 THE NEW ENERGY FUTURE BY 2050 Rising energy demand, supply pressure, climate change 9 billion people, 75% living in cities (2 billion more than today) 2 billion vehicles (1 billion at the moment) Many millions of people will rise out of energy poverty; with higher living......

Words: 570 - Pages: 3

Shell

...DEDICATION 4 ACKNOWLEDGEMENT 5 Synopsis of Development and Growth of Shell Pakistan 6 Shell Pakistan’s History 6 Vision 6 Values 6 Main objectives 6 Products and services 7 FINANCIAL ANALYSIS 8 Ratio Analysis 8 Short Term Debt Paying Ability 8 Profitability Ratios 15 Ratios for Investors 18 Long Term Debt Paying Ability 19 Overall Financial Performance 21 PESTEL ANALYSIS 22 Political Factors 22 Economic Factors 22 Social Factors 23 Technological Factors 23 Ecological Factors 23 Legal Factors 23 SWOT ANALYSIS 24 Strengths 24 Weaknesses 24 Opportunities 25 Threats 25 REFERENCES 26 Synopsis of Development and Growth of Shell Pakistan Shell Pakistan’s History The Shell brand name enjoys a 100-year history in the subcontinent region, dating back to 1899 when Asiatic Petroleum, the far eastern marketing arm of two companies: Shell Transport Company and Royal Dutch Petroleum Company began importing kerosene oil from Azerbaijan into the subcontinent. The documented history of Royal Dutch Shell plc in Indo_Pakistan subcontinent dates back to 1903 when partnership was struck between The Shell Transport & Trading Company and the Royal Dutch Petroleum Company to supply petroleum to Asia. In 1928, to enhance their distribution capabilities, the marketing interest of Royal Dutch Shell plc and the Burmah Oil Company Limited in India were merged and Burmah Shell Oil Storage & Distribution Company of India was born.......

Words: 4804 - Pages: 20

Nt1430 Bash Scripts

...Title:How to script: A Bash crash course; An easy step-by-step guide to the Bash command-line shell and shell scripting Author(s):Paul Venezia Source:InfoWorld.com. (Mar. 8, 2013): Document Type:Article Copyright : COPYRIGHT 2013 InfoWorld Media Group, Inc. http://www.infoworld.com/ Full Text:  Byline: Paul Venezia Few aspects of Unix system administration are more intimate than the relationship between the admin and their chosen shell. After all, the shell is the most fundamental interface to the system, the conduit for all command-line interactions. Thus, it's important to have a solid foundation in whatever shell you choose. There are many different shells available, from Ash to Zsh. They all differ in many ways, and some (such as Csh and Tcsh) vary wildly from the others. Each has its selling points. However, because Bash has become the de-facto standard shell on most Unix-like operating systems and can generally be found everywhere, it makes an excellent place to start, even if you ultimately choose a different shell for daily use. [ How to get started with MySQL | How to install Apache on Linux | Prove your expertise with the free OS in InfoWorld's Linux admin IQ test round 1 and round 2. | Track the latest trends in open source with InfoWorld's Open Sources blog and Technology: Open Source newsletter. ] This is not designed to be an exhaustive tutorial, but is structured to introduce you to shells in general and Bash in particular, touching on many...

Words: 4013 - Pages: 17

Shell Script

...1. What is a Shell Script? A shell script is a text file that contains a sequence of commands for a UNIX-based operating system. It's called a shell script because it combines into a "script" in a single file a sequence of commands that would otherwise have to be presented to the system from a keyboard one at a time. The shell is the operating system's command interpreter and the set of commands you use to communicate with the system. A shell script is usually created for command sequences for which a user has a repeated need. You initiate the sequence of commands in the shell script by simply entering the name of the shell script on a command line. 2. What are the advantages of using shell scripts ? A scripting language is a form of programming language that is usually interpreted rather than compiled. Conventional programs are converted permanently into executable files before they are run. In contrast, programs in scripting language are interpreted one command at a time. Scripting languages are often written to facilitate enhanced features of Web sites. These features are processed on the server but the script in a specific page runs on the user's browser. In most cases, it is easier to write the code in a scripting language than in a compiled language. However, scripting languages are slower because the instructions are not handled solely by the basic instruction processor. Scripting languages allow rapid development and can communicate easily with programs......

Words: 370 - Pages: 2

Shell

...1. Shell makes a close relationship with the Nigerian military regime during the early 1990s. The oil company requested an increase in security and provided monetary and logistical support to the Nigerian police. Shell frequently called upon the Nigerian police for “security operations” that often amounted to raids and terror campaigns against the Ogoni. In response to growing Ogoni opposition shell and the Nigerian government coordinated a public relations campaign to discredit the movement, falsely attributing airplane hijackings, kidnapping and other acts of violence to Ken Saro-Wiwa and MOSOP. Shell was involved in the development of the strategy that resulted in the unlawful execution of the Ogoni Nine. Shell told the Nigerian regime they needed to deal with Ken Saro-Wiwa and MOSOP. Shell monitored Ken Saro-Wiwa, and closely followed the tribunal and his detention. Prior to the trial, Shell Nigeria told its parent companies that Saro-Wiwa would be convicted and told witnesses that Saro- Wiwa was never going free. Shell held meetings with the Nigerian regime to discuss the tribunal, including with the military president Sani Abacha himself. Shell's lawyer attended the trial, which, in Nigeria, is a privilege afforded only to interested parties. Brian Anderson, the Managing Director of Shell’s Nigerian subsidiary, met with Owens Wiwa, Saro-Wiwa’s brother and offered to trade Saro-Wiwa’s freedom for an end to the protests against the company. At least two witnesses who......

Words: 610 - Pages: 3

Bash Qs Ref

...9 9 Chapter9 Answers to Evennumbered Exercises 9 1. 2. What are two ways you can execute a shell script when you do not have execute access permission to the file containing the script? Can you execute a shell script if you do not have read access permission? You can give the name of the file containing the script as an argument to the shell (for example, sh scriptfile, where scriptfile is the name of the file containing the script). Under bash you can give the following command: $ . scriptfile Because the shell must read the commands from the file containing a shell script before it can execute the commands, you must have read permission for the file in order to execute the shell script. 3. 4. Assume that you have made the following assignment: $ person=jenny Give the output of each of the following commands: a. echo $person jenny b. echo '$person' $person c. echo "$person" jenny 5. 1 2 Chapter 9 6. Assume that the /home/jenny/grants/biblios and /home/jenny/biblios directories exist. For both (a) and (b), give Jenny’s working directory after she executes the sequence of commands given. Explain. a. $ pwd /home/jenny/grants $ CDPATH=$(pwd) $ cd $ cd biblios After executing the preceding commands, Jenny’s working directory is /home/jenny/grants/biblios. When CDPATH is set, cd searches only the directories specified by CDPATH; cd does not search the working directory unless the working directory is specified in CDPATH (by using a period). b. $......

Words: 737 - Pages: 3

Shell

...Holland’s biggest profitable organization Evaluative Report Preface In front of you lies an evaluation report about the biggest profitable Dutch company, Shell. Via this report we want to show you how Shell is performing at this moment and how they stay at the top of their segment. The reason for writing this report is to give an insight into what Shell does, we all know them from their gas stations but Shell does much more and tries to be innovative by looking for new and improved energy sources all around the world. Besides that we choose Shell because of its Dutch background and the fact that they are recognized all over the world. Briefly said, Shell is the biggest company in The Netherlands and via this report we´ll try to unfold how they manage to perform this well and what the secret is to their success. Bergen op Zoom, Noord – Brabant May 31st , 2011 Table of Contents 1. Introduction 1 2. General description of Shell 2 2.1 History of the organization 2 2.2 Products and Services 3 2.3 Operations 3 2.4 Financial Situation 4 2.5 Legal Aspects 4 2.6 Corporate Governance and Social Responsibility 5 2.6.1 Corporate Governance 5 2.6.2 Social Responsibility 5 3. Organization Environment 6 3.1 Relevant market 6 3.2 Supply chain 6 3.3 Shareholders 6 3.4 Relevant Macro Factors and Business Trends 7 3.5 Competition in Particular 7 4. Organization Goals and Strategies 9 4.1 Mission and Vision 9 4.1.1 Mission 9 4.1.2 Vision 9 4.2...

Words: 9120 - Pages: 37

Bash for Beginners

...Bash Guide for Beginners Machtelt Garrels Garrels BVBA Version 1.11 Last updated 20081227 Edition Bash Guide for Beginners Table of Contents Introduction.........................................................................................................................................................1 1. Why this guide?...................................................................................................................................1 2. Who should read this book? .................................................................................................................1 3. New versions, translations and availability.........................................................................................2 4. Revision History..................................................................................................................................2 5. Contributions.......................................................................................................................................3 6. Feedback..............................................................................................................................................3 7. Copyright information.........................................................................................................................3 8. What do you need? .......................................................................................................................

Words: 29161 - Pages: 117

Shell

...| Ship “Shell” Hit an Iceberg | Shell Oil Scandal in 2004 | | In 2004, the Shell Company was involved in an oil reserves reporting scandal. It made them caught in low point. | | Ines Chen, Leilani Zhao, Bingchen Wang | Contents Background……………………………………………………………………….. 2 Purpose of the case study… ………………………………………………...…2 Shell Company, the oil Industry giants………………………………………..3 The Iceberg ----Shell oil scandal ……………………………………………….. 4 Effect of the Scandal ……………………….……………………………………..6 The Origins of the Scandal …….………………………………………………....7 Weak internal controls, the dual company structure ......……………….…7 The shortage of oil reserves and World oil crisis ……………….....………10 The Closed Corporate Culture…………………………….………………..….11 Conclusion…………………………………………………………………….……14 Works Cited………………………………………………………………………15 Background: In recent years, Shell was one of the most famous companies of the world because of excellent long-term planning, outstanding technical capabilities and unique management style. Shell, which was the Anglo-Dutch heritage and a twin board structure, once was treaded as textbook example of a multinational company. When people talked about the Shell Company, they always remembered the old corporate slogan, 'You could be sure of Shell'. Yes, this seemed a mere statement of fact. But such the good company liked this also did some bad things from the mid-1990s. The company had dealt with the environmental and human right's problem, and its......

Words: 4280 - Pages: 18

Pieza musical | Mayling Ng | Black Clover