Premium Essay

Unit 5 Shell Scripting

In: Computers and Technology

Submitted By Dude101
Words 385
Pages 2
Shell Scripting
ITT Technical Institute
Introduction to Programming

The Linux and UNIX operating systems were built on shell scripting within its operating system, it’s the beating heart of the operating system. “Scripting is a way by which one can alleviate this necessity by automating these command sequences in order to make one’s life at the shell easier and more productive. Scripting is all about making the computer, the tool do the work” (The University of Birmingham, 2005). When working with a shell scripting program, there are several advantages to it. One of the first advantages is its ease of use. Another advantage is its quick start and interactive debugging. The most notable and major advantage for the use of shell scripting is it’s a time-saving tool for system administrators for the automation of tasks. By using the shell script, administrators are able to compile and automate task system wide and alleviating the need to access each workstation individually. Shell scripts can execute without any additional effort on nearly any modern UNIX / Linux / BSD / Mac OS X operating system as they are written an interpreted language. According to Microsoft’s TechNet website (2013), “Windows PowerShell® is a task-based command-line shell and scripting language designed especially for system administration. Built on the .NET Framework, Windows PowerShell helps IT professionals and power users control and automate the administration of the Windows operating system and applications that run on Windows”. The most common usages for Windows PowerShell are the “interactive console (powershell.exe) and script files (with extension of .ps1, which is also usually executed by powershell.exe). Main features of PowerShell are: .Net integration, object pipeline, easy access to many management domains (WMI, ADSI, COM, .NET etc.) and standardization that brings easy

Similar Documents

Free Essay

Unit 5 Research Paper

...Unit 5 Research Assignment 1 PT1420 * A shell script is a computer program designed to be run by the Unix shell, a command line interpreter. The various dialects of shell scripts are considered to be scripting languages. * Advantages of using shell script is that the commands and syntax are exactly the same as those directly entered at the command line. The programmer does not have to switch to a totally different syntax, as they would if the script were written in a different language, or if a compiled language was used. Often, writing a shell script is much quicker than writing the equivalent code in other programming languages. The many advantages include easy program or file selection, quick start, and interactive debugging. A shell script can be used to provide a sequencing and decision-making linkage around existing programs, and for moderately sized scripts the absence of a compilation step is an advantage. Interpretive running makes it easy to write debugging code into a script and re-run it to detect and fix bugs. Non-expert users can use scripting to tailor the behavior of programs, and shell scripting provides some limited scope for multiprocessing. * Most common usage methods of PowerShell is interactive console (powershell.exe) and script files (with extension of .ps1, that is also usually executed by powershell.exe). Main features of PowerShell are: .Net integration, object pipeline, easy access to many management domains (WMI, ADSI, COM, .NET etc...

Words: 388 - Pages: 2

Free Essay

Should Athletes Be Paid

...Mitchell Collier PT1420 Unit 5 Research Assignment 1 Mr. O’Leary Research Assignment All the shell I’m about to list share some common features, and the major difference in syntax generally only affect scripts writers. It is not unusual to use one shell for interactive use, but another for writing scripts. There are many other programs which read a file of commands and carry out a sequence of actions, the convention allows any of them to be used as a scripting language to create new commands. There is never only one way to perform a function, and often the choice comes down to factors like the combined lengthy and repetitive sequence of commands into a single, simple command. Generalize a sequence of operations on one set of data, into a procedure that can be applied to any similar set of data. Create new commands using combinations of utilities in ways the original authors never thought of simple shell scripts might be written as shell aliases. Create customized datasets on the fly and call applications to work on them or create customized application commands/procedures like wrapping programs over which you have no control inside an environment that you can control. You have to learn what kind what kind of problems are suited to shell scripts and review the most commonly used Unix commands that are useful in shell scripts. In general the newer shells run a little faster and scripts are often more readable because logic can be expressed more cleanly user...

Words: 264 - Pages: 2

Free Essay

Stuff

...Linux Operating System Instructor | Jerry Black | Office Hours | Thursday, 4PM-6PM | Class Hours | Monday, 6:00PM – 10:20PM | Contact | Ms. Travis, 937-264-7707 | | jblack@itt-tech.edu | Major Instructional Areas 1. Introduction to Linux 2. Linux installation 3. Graphical user interface (GUI) desktops 4. Command-line interface (CLI) essentials 5. Hardware configuration: display, network, and printer 6. Networking: Resource sharing and remote access 7. Backup and restore utilities 8. Installing software in Linux 9. Scripting: Bourne Again Shell (bash) and Perl 10. Apache Web Server installation and configuration Course Objectives 1. Discuss the history and unique characteristics of the Linux operating system. 2. Perform an installation of Linux. 3. Use the components and features of the GNOME desktop environment. 4. Perform basic tasks by using the command-line interface (CLI). 5. Use the various Linux process management features. 6. Create and execute basic scripts by using the Perl programming language and Bourne Again Shell (bash). 7. Configure computer hardware in Linux. 8. Administer and maintain a Linux system. 9. Install and update software in Linux 10. Access Linux network services using a Linux...

Words: 2032 - Pages: 9

Free Essay

System Analysis and Design

...You can script anything! Page 1 of 16 Visual Basic Script (VBSCRIPT) – You can script anything! Automating the Desktop Visual Basic Scripting is easy to learn and use! It can be used to automate tasks ranging from Windows Desktop Administration, to Microsoft Office Automation, to controlling and extracting information hosted by a 3270 emulation session for the Mainframe. All you need is an ASCII text file that ends in a “.VBS” extension and a little creativity. A few notes on the language itself:          Visual Basic Script Edition is a subset of the Visual Basic language. Comments are declared by a single apostrophe, such as: ' This is a VBSCRIPT comment. Variables can be declared using the DIM, PRIVATE, or PUBLIC keywords. Variables have no explicit data type. All data types are “variant” by default. The language is not case-sensitive, so “Acounter”, “ACounter and “aCounter” are considered to be the same variable name regardless of the mix of upper and lower case. Scope is declared using “keyword … END keyword” pairings, such as CLASS…END CLASS, SUB…END SUB, IF … END IF. The unit of program development is the SCRIPT file: an ASCII text file containing executable script statements. Statements are continued by leaving a space at the end of the line followed by an underscore. Strings are concatenated using the ampersand symbol as the concatenation operator. Your toolkit for script development: You’ll need a text editor and a Windows client workstation...

Words: 4473 - Pages: 18

Premium Essay

Programming Languages

...Unit 1 Research Assignment 1: Exploring Programming Languages Computers don't do anything without someone telling them what to do, much like the average teenager. To make the computer do something useful, you must give it instructions in either of the following two ways: * Write a program that tells a computer what to do, step by step, much as you write out a recipe. * Buy a program that someone else has already written that tells the computer what to do. Ultimately, to get a computer to do something useful, you (or somebody else) must write a program. A program does nothing more than tell the computer how to accept some type of input, manipulate that input, and spit it back out again in some form that humans find useful. Table 1 lists some common types of programs, the types of input that they accept, and the output that they produce. Essentially, a program tells the computer how to solve a specific problem. Because the world is full of problems, the number and variety of programs that people can write for computers is practically endless. But to tell a computer how to solve one big problem, you usually must tell the computer how to solve a bunch of little problems that make up the bigger problem. If you want to make your own video game, for example, you need to solve some of the following problems: * Determine how far to move a cartoon figure (such as a car, a spaceship, or a man) on-screen as the user moves a joystick. * Detect whether the cartoon figure...

Words: 3836 - Pages: 16

Free Essay

Linux

...and Windows versus Linux Security were researched and a prototype has been designed, developed and tested. An evaluation of the overall success of the project has been conducted and recommendations for future work are also given. Words II. Table of Contents 1) Introduction.................................................................................................................................4 1.1 Overview........................................................................................................4 1.2 Sponsor Background...........................................................................................................5 1.3 Research Topics...............................................................................................5 2) Research Topic 1 – Security benefits of Linux OS compared to...

Words: 17681 - Pages: 71

Premium Essay

Read the Case Study Can Detroit Make the Cars Customers Want? and Answer the Following Questions:

...JYOTI TANEJA Expertise in Business Analyst with over 7+ years of IT experience on all phases of a SDLC project. Primary focus on Analysis, Product implementations, system Integration/Migration projects and process improvement projects. Significant hands-on experience in business sectors such as, Finance, Healthcare and Banking. Effective communicator, excellent team player, quick learner and creative problem solver with fine-tuned analytical skills. Education includes: Professional Summary Business Requirements Gathering, Business Process Flow, System Analysis, Business Process Modeling and Business Analysis. Industry experience in Healthcare, Finance, Health Insurance and Banking sector. Expertise experience in writing Business requirements document, System requirements specifications, Functional requirements document, developing Use Cases, creating screen mockups, and preparing Training manuals. Strong knowledge of Software Development Life Cycle (SDLC)- Feasibility Requirements Analysis, Design, Construction, Testing, Implementation, Support) and Rational Unified Process (RUP) and UML methodology Expertise in Waterfall and iterative methodologies such as Rational Unified Process (RUP) methodology, and Agile. Excellent skills in writing Business Requirements Document (BRD), Functional Specification Document (FSD) and Non-Functional Specification Document, System Design Specification (SDS) Performed Gap analysis, SWOT analysis, Risk analysis, and Cost/Benefit analysis...

Words: 2587 - Pages: 11

Premium Essay

Nt1230 Final

...1. Which is an object that is not listed in the library that is included with Windows 7? Movies 2. Designed to replace VB Script for scripting and performing actions at the command line? PowerShell 3. Windows 7 edition that can be added to an Active Directory domain? Windows 7 Professional 4. Replaced the MS-DOS boot disks for fixing and troubleshooting a wide range of boot problems on a Windows Vista or 7 system. Windows PE 5. Series of folders associated with a specific user that contains personal documents, user-specific registry settings, Internet favorites, and other personalized information. User profile 6. What program do you use to determine if your machine can be upgraded to Windows 7? Upgrade Advisor 7. What is the default partition style used in Windows 7? MBR 8. Maximum number of primary partitions that MBR supports. 4 9. What type of volume supports is based on RAID-0? Striped volume 10. The preferred file system used in Windows 7? NTFS 11. Which layer of the OSI model covers the cabling and electrical signaling? Physical 12. Which layer of the OSI model is IPv4 Addressing included? Network 13. What is used to specify which bits of an IPv4 address are used for the network identifier and which bits are used for the host identifier? Subnet mask 14. What address is assigned to a computer that fails to locate a DHCP server? APIPA 15. The process of verifying the identity of the person operating the computer? Authentication 16. Enables users to perform specific...

Words: 842 - Pages: 4

Free Essay

Competency Matrix

...Computer Science 2n (Level 0) n2 (Level 1) n (Level 2) log(n) (Level 3) data structures Doesn’t know the difference between Array and LinkedList Able to explain and use Arrays, LinkedLists, Dictionaries etc in practical programming tasks Knows space and time tradeoffs of the basic data structures, Arrays vs LinkedLists, Able to explain how hashtables can be implemented and can handle collisions, Priority queues and ways to implement them etc. Knowledge of advanced data structures like B-trees, binomial and fibonacci heaps, AVL/Red Black trees, Splay Trees, Skip Lists, tries etc. algorithms Unable to find the average of numbers in an array (It’s hard to believe but I’ve interviewed such candidates) Basic sorting, searching and data structure traversal and retrieval algorithms Tree, Graph, simple greedy and divide and conquer algorithms, is able to understand the relevance of the levels of this matrix. systems programming Doesn’t know what a compiler, linker or interpreter is Basic understanding of compilers, linker and interpreters. Understands Understands kernel mode vs. user mode, multi-threading, synchronization primitives and how they’re implemented, able to read what assembly code is and how things work at the hardware level. Some assembly code. Understands how networks work, understanding of network protocols and socket level programming. knowledge of virtual memory and paging. Able to recognize and code dynamic...

Words: 1812 - Pages: 8

Premium Essay

Networking Final

...1.Which of the following is not a library that is included w/ Win 7? Movies 2.In Win 7, what is designed to replace VB Script for scripting & performing actions at the command line? PowerShell 3.Which of the following editions of Win 7 can be added to an Active Domain Directory domain? Professional 4.What replaced the MS-DOS boot disks for fixing & troubleshooting a wide range of boot problems on a Win Visa or 7 system? Windows PE 5.A User Profile is a series of folders associated w/ a specific user that contains personal documents, user-specific registry settings, Internet favorites, & other personalized info. 6.What program do you use to determine if your machine can be upgraded to Win 7? Upgrade Advisor 7.What is the default partition style used in Windows 7? MBR 8.What is the maximum number of primary partitions that MBR supports? 4 9.What type of volume support is based on RAID0? Striped Volume 10.Which is the preferred file system used in Win 7? NTFS 11.Which layer of the OSI model covers the cabling & electrical signaling? Physical 12.Which layer of the OSI model is IPv4 addressing included? Network 13.What is used to specify which bits of an IPv4 address are used for the network identifier & which bits are used for the host identifier? Subnet Mask 14.What address is assigned to a computer that fails to locate a DHCP server? APIPA 15.Which of the following is the process of verifying the identity of the person operating the computer? Authentication...

Words: 904 - Pages: 4

Free Essay

Mastering Unix Shell Scripting

...Mastering Unix Shell Scripting Randal K. Michael Free & Share & Open The Dear Valued Customer, WILEY advantage We realize you’re a busy professional with deadlines to hit. Whether your goal is to learn a new technology or solve a critical problem, we want to be there to lend you a hand. Our primary objective is to provide you with the insight and knowledge you need to stay atop the highly competitive and everchanging technology industry. Wiley Publishing, Inc., offers books on a wide variety of technical categories, including security, data warehousing, software development tools, and networking — everything you need to reach your peak. Regardless of your level of expertise, the Wiley family of books has you covered. • For Dummies – The fun and easy way to learn • The Weekend Crash Course –The fastest way to learn a new tool or technology • Visual – For those who prefer to learn a new topic visually • The Bible – The 100% comprehensive tutorial and reference • The Wiley Professional list – Practical and reliable resources for IT professionals The book you hold now, Mastering Unix Shell Scripting, is the first book to provide end-to-end scripting solutions that will solve real-world system administration problems for those who have to automate these often complex and repetitive tasks. Starting with a sample task and targeting the most common Unix systems: Solaris, Linux, AIX, and HP-UX with specific command structures, this book will save precious time with hands-on...

Words: 145371 - Pages: 582

Free Essay

Redhat

...provide a foundation for students planning to become fulltime Linux system administrators. By the end of the five-day course, students will be able to perform installation, establish network connectivity, manage physical storage, and perform basic security administration. LINUX-6 Course Outline Unit 1: Get Started with the GNOME Graphical Desktop Objective: Get started with GNOME and edit text files with gedit Unit 2: Manage Files Graphically with Nautilus Objective: Manage files graphically and access remote systems with Nautilus Unit 3: Get Help in a Graphical Environment Objective: Access documentation, both locally and online Unit 4: Configure Local Services Objective: Configure the date and time and configure a printer Unit 5: Manage Physical Storage I Objective: Understand basic disk concepts and manage system disks Unit 6: Manage Logical Volumes Objective: Understand logical volume concepts and manage logical volumes Unit 7: Monitor System Resources Objective: Manage CPU, memory, and disk utilization Unit 8: Manage System Software Objective: Manage system software locally and using Red Hat Network (RHN) Unit 9: Get Started with Bash Objective: Understand basic shell concepts, execute simple...

Words: 1463 - Pages: 6

Premium Essay

Sgdf

...Quality Center, Test Director and Load Runner), IBM Rational Tools (Rational Clear Quest, Rational Clear Case) for Client Server and Web based applications. 1 Proficient in Analyzing System & Functional Specifications, Use Cases, Business Requirements, Business Rules to Identify Test Requirements, track the requirements (Bi-Directional traceability matrix) 2 Prepared Test Plans, Risk Management plans (Risk based Testing), Testing Strategy, Documenting the Testing Procedures, Design Test Cases, Test Scripts, Test Scenarios, Test Data, and Execute Test Runs. 3 Experience working under Waterfall and Agile Methodologies. 4 Have extensive experience in Windows, UNIX – examining log files, developing and executing batch, shell scripts. 5 Have experience in new, enhancement and maintenance projects. 6 Have good Experience on mainframes Application testing 7 Have good experience on processing the Claims (Entering and verifying). 8 Have experience in black box and white box testing. 9 Excellent Communication, Leadership and Interpersonal skills with clear understanding of business logic. 10 Excellent analytical, problem-solving and documentation...

Words: 1916 - Pages: 8

Free Essay

Structs

...Objectivos Interfaces Utilizador Utili Descrever os serviços que o SO fornece aos utilizadores, aplicações e outros sistemas System Calls Tipos de System Calls Apresentar as várias as várias arquitecturas de um sistema operativo Programas Sistema Design e Implementação do Sistema Operativo Explicar como os SO são os SO são instalados, configurados e gerados Arquitectura de Sistemas Operativos Máquinas Virtuais Virtuais Geração do Sistema Operativo Operating System Concepts 2.2 Silberschatz, Galvin and Gagne ©2005 Serviços Serviços do Sistema Operativo Os serviços mais evidentes do SO são as funções directamente relacionadas com utilizador relacionadas com o utilizador: Interface Utilizador – quase todos os SOs fornecem um tipo de UI Command-Line Interpreter (CLI) Graphics User Interface (GUI) Batch Execução de programas – o sistema carrega um programa em memória, de programas sistema carrega um programa em memória executa-o e termina-o, reportando eventuais erros. Operações de I/O - Um programa em execução requer operações de I/O relativamente ficheiros ou periféricos relativamente a ficheiros ou periféricos. Operações relativas ao Sistema de Ficheiros – a grande maioria de operações das aplicações têm a ver com fi ficheiros: ler, escrever, apagar, mover directórios listar, procurar, gestão de acessos Operating System Concepts 2.3 Silberschatz, Galvin and Gagne ©2005 Serviços Serviços do Sistema...

Words: 4894 - Pages: 20

Free Essay

Rute Linux Tutorial

...LINUX: Rute User’s Tutorial and Exposition Paul Sheer August 14, 2001 Pages up to and including this page are not included by Prentice Hall. 2 “The reason we don’t sell billions and billions of Guides,” continued Harl, after wiping his mouth, “is the expense. What we do is we sell one Guide billions and billions of times. We exploit the multidimensional nature of the Universe to cut down on manufacturing costs. And we don’t sell to penniless hitchhikers. What a stupid notion that was! Find the one section of the market that, more or less by definition, doesn’t have any money, and try to sell to it. No. We sell to the affluent business traveler and his vacationing wife in a billion, billion different futures. This is the most radical, dynamic and thrusting business venture in the entire multidimensional infinity of space-time-probability ever.” ... Ford was completely at a loss for what to do next. “Look,” he said in a stern voice. But he wasn’t certain how far saying things like “Look” in a stern voice was necessarily going to get him, and time was not on his side. What the hell, he thought, you’re only young once, and threw himself out of the window. That would at least keep the element of surprise on his side. ... In a spirit of scientific inquiry he hurled himself out of the window again. Douglas Adams Mostly Harmless Strangely, the thing that least intrigued me was how they’d managed to get it all done. I suppose I sort of knew. If I’d learned...

Words: 159689 - Pages: 639