Free Essay

Linux Shell

In: Computers and Technology

Submitted By rotary74
Words 486
Pages 2
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 of the file system, so that they can be preserved if you reinstall the operating system. Separate data that changes frequently from data that change infrequently, which can reduce disk fragmentation and prolong the life of the system. Separating data that you want backed up into a separate partition can make your back up procedures much simpler. Make your system more resilient to attack, if your system becomes the target of an attack or one of your programs behaves badly, it can create large log files or other files which can fill up the whole disk, however if you have multiple partitions, it can only ever fill up one partition which means your system is less likely to crash.
The primary partition is one that is used to store the operating system. Primary partitions can hold operating system boot files, cannot be further subdivided into logical drives, and can be formatted. There can be a maximum of four primary partitions on a single hard disk drive. Extended partition is an optional partition that does not have an operating system installed on it and is not bootable. Extended partition can be subdivided into an unlimited number of logical drives, and cannot be formatted. There can be a maximum of one extended partition on a single hard disk drive. Using the fdisk utility will help you created these partitions on a hard disk.

Similar Documents

Free Essay

Linux Kernels and Shells

...Linux kernels and shells Windows and Mac computer systems have one central kernel that abstracts the hardware so the operating system can manage it. Linux is more customizable because it allows you to create your own kernel. I have been hired as an IT consultant and have been asked to write a manual on the kernel distributions of Linux. The kernel is a program that constitutes the central core of a computer operating system. It has complete control over everything that occurs in the system. The shell is the outermost part of the operating system thusly why it was given its name. The shell is a program that interacts with user commands while the kernel itself does not interact directly with the user, but instead it interacts with the shell and other programs as well as with the hardware devices on the system. While there are countless amounts of distributions available there is a distinct top five distributions that are used with Linux. The first one, rightly so as it is one of the earliest distributions that were created, is Red Hat. Red Hat is one of the most popular distributions for Linux, it is widely used for personal computers and with businesses also. It has a great community support division called the Fedora Core who does a great job with support and is a major reason for the popularity of Red Hat. The next distribution on the list is Debian. Debian is the most popular community created distribution for Linux. While it is really flexible and very reliable the user...

Words: 747 - Pages: 3

Free Essay

Linux Kernels and Shells

...Linux Kernels and Shells Linux kernels and shells Windows and Mac computer systems have one central kernel that abstracts the hardware so the operating system can manage it. Linux is more customizable because it allows you to create your own kernel. I have been hired as an IT consultant and have been asked to write a manual on the kernel distributions of Linux. The kernel is a program that constitutes the central core of a computer operating system. It has complete control over everything that occurs in the system. The shell is the outermost part of the operating system thusly why it was given its name. The shell is a program that interacts with user commands while the kernel itself does not interact directly with the user, but instead it interacts with the shell and other programs as well as with the hardware devices on the system. While there are countless amounts of distributions available there is a distinct top five distributions that are used with Linux. The first one, rightly so as it is one of the earliest distributions that were created, is Red Hat. Red Hat is one of the most popular distributions for Linux, it is widely used for personal computers and with businesses also. It has a great community support division called the Fedora Core who does a great job with support and is a major reason for the popularity of Red Hat. The next distribution on the list is Debian. Debian is the most popular community created distribution for Linux. While it is really flexible...

Words: 350 - Pages: 2

Free Essay

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

Premium Essay

Linux

...Carlos Espiritu 12/10/11 Week 1 homework Page 19 1. What is free software? List three characteristics of free software. Free software includes GNU/Linux, Apache, and some examples of free applications are: KDE, OpenOffice.org. all these application can be used for router/mobile phones..Etc. Linux is free and price plays a roll but not so crucial as other OS. Also source code is available, and software can be used for any purpose, also can be studied and changed. Linux software can be distributed and changed versions as well. 2. What are multiuser sytems? Why are they successful? A multiuser system allows each user at their work terminals to be connected to the computer. The operating system of computer assigns each user a portion of RAM and drives the computer’s time among various users; it is also called time sharing system. In other words, a multiuser system allows many users to simultaneously access the facilities of the host computer. This type of system is capable of having 100’s of users use this computer at once. The commonly used multiuser systems are: 1. LOCAL AREA NETWORK 2. WIDE AREA NETWORK 3. METROPOLITAN AREA NETWORK. 3. In what language is linux written? What does the language have to do with the success of linux? Linux is written in the C programming language and because it is written in the C language the language can be imbedded in all type of devices from TV’s, to PDA’s, cell phones, cable boxes for the reason of this language being so portable...

Words: 796 - Pages: 4

Free Essay

Linux Final

...Chapter 7 2. Before a user-defined variable can be used by processes that run in subshells, that variable must be ___c. exported_. 4. Which of the following files is always executed immediately after a user logs in to a Linux system and receives a BASH shell? a. /etc/profile 5. Which command could you use to see a list of all environment and user-defined shell variables as well as their current values? c. set 6. Every if construct begins with if and must be terminated with __d. fi. 12. How do you indicate a comment line in a shell script? d. Begin the line with #. Chap 8 4. Which runlevel halts the system? a. 1 5. Which file does init reference on startup to determine the default runlevel? d. /etc/inittab 6. Which two commands entered at a command prompt can be used to start X Windows, the window manager, and the default desktop environment? b. gdm c. startx 11. How many active partitions are allowed per hard disk drive? c. 1 15. In what directory is the Linux kernel stored? a. /boot Chap 9 1. Which command entered without arguments is used to display a list of processes running in the current shell? d. ps 4. Which process will always have a PID of 1 and a PPID of 0? c. init 5. A process spawning or initiating another process is referred to as _b. forking ____. 9. The at command is used to __c. schedule processes to run at a single instance in the future_. 11. Every process has a process ID and a ___d. parent process ID_. Chap 10 ...

Words: 500 - Pages: 2

Free Essay

Linux and Windows Server Critique

...Linux and Windows Server Critique Team C POS 420 June 25, 2012 Yevgeniy Tovshteyn Linux vs. Windows Both Linux and Windows are operating systems with advantages and differences in functionality and user friendliness. With networking becoming an important part of company operation in this day and age. Kudler will come to depend on networking for availability to the marketplace via the Internet, while requiring their internal systems for email, Voice over Internet Protocol (VoIP) phone systems, and using business data. Linux and Windows are the only 2 operating systems that have grown to the top level in the field of networking. Learning Team C examines these types of strengths and weaknesses regarding security, administration, performance, and programming. Kudler Fine Foods Current Systems: 3 locations: La Jolla, Del Mar, and Encinitas La Jolla Novell 4.11 Server for POS 4 POS Workstations with Pentium II, Windows 9X 1 Standalone UPS (Uninterruptable Power Supply) 1 Server with Inventory Spreadsheet with Pentium II, 64mg Ram, Windows 9X, external CD burner and bubble jet printer. 1 Server with NT Server 1 56K modem Del Mar Novell 4.11 Server for POS 4 POS Workstations with Pentium II, Windows 9X 1 Standalone UPS (Uninterruptable Power Supply) 1 Server with Inventory Spreadsheet with Pentium II, 64mg Ram, Windows 9X, external CD burner and bubble jet printer. 1 Server with NT Server 1 56K modem Encinitas Novell 4.11 Server for POS 4 POS...

Words: 1833 - Pages: 8

Free Essay

Stuff

...| IT250 Linux Operating System | Jerry Black | Spring 2012 | | | | Course Description: Installation, configuration and management of a Linux operating system will be explored. Focus will be on functions that resemble the UNIX environment. Directory and file management, user account management and certain device management (such as drives, printers, interface cards, etc.) will be discussed. Prerequisite(s) and/or Corequisite(s): Prerequisite: IT103 Operating Systems Credit hours: 4 Contact hours: 50 (30 Theory Hours, 20 Lab Hours) Syllabus: 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...

Words: 2032 - Pages: 9

Premium Essay

Labs

...Unit 1 None Unit 2 Search and explore the ITT Tech Virtual Library for resources on the Linux Filesystem. Use the following keywords and phrases to help you locate appropriate resources: ext file system Linux hierarchical file system Linux standards base Linux directory structure Unit 3 Search and explore the ITT Tech Virtual Library for resources on bash. Use the following keywords and phrases to help you locate appropriate resources: bash scripts bash history bourne shell bourne again shell commands in Linux Unit 4 Search and explore in the following places. Find resources that help you understand how CUPS is used for printer management. Submit one resource from the ITT Tech Virtual Library and one from the Chapter 14 suggested resources. ITT Tech Virtual Library The More Information section of textbook Chapter 14, page 561 Use the following keywords and phrases to help you locate appropriate resources: CUPS server CUPS in Linux Linux printer configuration Fedora 15 printer server Unit 5 Search and explore in the following places. Find resources that help you understand mail services in Linux. ITT Tech Virtual Library The More Information section of textbook Chapter 20, page 732 Use the following keywords and phrases to help you locate appropriate resources: Send mail configuration SMTP in Linux Dovecot Email servers in Linux Fedora 15 email server Unit 6 Search and explore the ITT Tech Virtual Library for information on the...

Words: 467 - Pages: 2

Free Essay

Test

...NT1430 Linux Networking: Study Guide Wed 21-November-2012 Linux Commands: Know these commands and what they do: • Directory and list commands o ls, ls –l o pwd o cd / o cd and cd~ (hint: both take you to your home directory) o cd .. (takes you up one directory • Know what cp and mv do and how to use them • File viewing commands: o cat o less and more (one page at atime) o vi and view o tail (shows the last 10 lines of a file) o head (shows the top 10 lines) • chmod for changing permissions on files and directories • know the differences in read write and execute for owner group and all • > to redirect output to a file (overwrites if file exists) • >> appends to a file • & puts a process in the background while fg brings it to the foreground. • ps –ef | grep programname locates a running process for you • grep is a program that searches for a string within a directory or command output • The pipe symbol ( | ) sends output from one command to the input of another. • Know what a Linux shell script is. Direcories and file systems • / is the root of the entire file system • /usr stores program files • /home stores user home directories • /etc stores Linux configuration files • /var stores various miscellaneous files • /proc is a virtual directory that stores system performance metrics...

Words: 1137 - Pages: 5

Premium Essay

Windows Server and Linux Critique

...Riordan’s Windows Server and Linux Critique Learning Team A POS/420 Date: Instructor: Riordan’s Windows Server and Linux Critique At the request of Riordan Manufacturing, Inc., the project team conducted a thorough review to compare the advantages and disadvantages of Windows Server and Linux. The recommendation of an operating system will ensure Riordan’s business operations continue with compatibility between all locations with the highest level of security, administration, networking, performance, and programmabilityimplemented. Security Although there are proponents everywhere for each type of operating system available on the market today, the focus of this project team, at the request of Riordan management, is to compare the security advantages and disadvantages of Windows Server and Linux. Windows Server Advantages. Windows Server has improved over the years in providing basic security provisions for administrators. Access to any system is extremely important to security professionals, such as domain name system (DNS), active directory domain services (AD), and access to web servers using Internet Information Services (IIS). DNS security extensions (DNSSEC) provide added security when a consumer is gaining access to a company’s website as well as how the company interacts...

Words: 1859 - Pages: 8

Free Essay

Kernel Distributions of Linux

...Unit 5 IP AIU Online Abstract A manual is needed for the kernel distributions of Linux. The following will be the manual. Unit 5 IP As I have been asked to write a manual for the different kernel distributions of Linux, The following information serves as the manual. It contains information on the necessary components and functions of the OS as they relate to the kernel and the shell. It will List the 5 most common distributions. It will also describe how to perform at least 20 commands using a shell. Linux OS In the Linux OS, the heart is the kernel. The kernel is at the core of everything the computer is able to do. Surrounding the kernel is the shell. The shell talks directly with the kernel giving commands on what to do and when. According to www.pcworld.com (2013) the five most common distributions of the Linux kernel are, Linux Mint, Ubuntu, Fedora, openSUSE, and Debain. When using Linux Mint, two of the shells available for use are bash and GNOME. The following is a listing of commands and functions for use in the bash shell. Commands: cd -> Used to navigate the directories.  You can move to any location by path. 1. cd This will move you back to your home, same as cd ~ 2. cd .. This will take you back exactly one directory.  Starting in /home/justin/Desktop, cd .. will put me into /home/justin.  This can be expanded upon, cd ../../ from the Desktop location instead will move me 2 back, from my Desktop to /home. 3. cd foldername/...

Words: 1853 - Pages: 8

Premium Essay

Unit 1 Lab

...Students will be provided with a copy of the VMware image of the Linux distribution and tools that will be used through out this course when I return to class on September 25, 2012. Accompanying this lab students will need to answer the questions from the Security Strategies in Linux Platforms and Applications lab book. To accomplish the lab assignment below, students will need to obtain a copy of the Fedora Image provided to you by the Substitute Instructor and complete a basic VMware installation of Fedora. The questions in the lab book will be based on the installation experience. Assigned Pages: 6-10 Questions: 1 through 15. This assignment is due by the end of class for Unit 1. 1. During the install, the option to sync with a NTP (Network Time Protocol) server was checked. From a security perspective, why is it important for a system to keep accurate time? Accurate time is important because of the date/time stamps (records) that occur on both log-in's and any changes that were made. This allows the logs to be checked to see what individual made the changes, or was logged-in at the time the changes were implemented. 2. During the install, a password has been set for the "root" user. What is the "root" user, and when is it appropriate to use this account? The "root" user is name or account that by default has access to all commands and files. It is also referred to as the root account, root user and the superuser. It would be appropriate to use this account...

Words: 1655 - Pages: 7

Free Essay

Evolution of Unix

...Evolution of UNIX Evolution of UNIX Bill Stewart December 01, 2011 Marshall University CIS155: UNIX Operating System In the late 1960's computers worked entirely different than the ones that we do our work on every day. They did not talk to each other and programs written for use on one computer did not work on another. Today’s basic cell phone has more processing power and memory capabilities as computers from the 1960's. The few operating systems available at that time performed very limited tasks and were exclusive to the computer it was written on. In other words when one upgraded to a newer computer, the operating system and all data that you wanted transferred from the old computer had to be rewritten on the newer model. In 1965 a joint effort of Bell Labs, MIT and GE began to develop a general computer operating system that was named the MULTICS (Multiplexed Information and Computing Service) mainframe timesharing system. The MULTICS project was being funded by the Department of Defense Advanced Research Projects Agency. The goal of the MULTICS group was to develop a feature-packed information utility that would allow timesharing of mainframe computers by large communities of users. It was also designed to be able to support multilevels of security with the military in mind. When Bell Labs joined the project their goal was to obtain a timesharing system for use by members of the technical staff at Bell Labs. When the planned time had passed and...

Words: 1891 - Pages: 8

Free Essay

Evolution of Unix

...Evolution of UNIX Evolution of UNIX Bill Stewart December 01, 2011 Marshall University CIS155: UNIX Operating System In the late 1960's computers worked entirely different than the ones that we do our work on every day. They did not talk to each other and programs written for use on one computer did not work on another. Today’s basic cell phone has more processing power and memory capabilities as computers from the 1960's. The few operating systems available at that time performed very limited tasks and were exclusive to the computer it was written on. In other words when one upgraded to a newer computer, the operating system and all data that you wanted transferred from the old computer had to be rewritten on the newer model. In 1965 a joint effort of Bell Labs, MIT and GE began to develop a general computer operating system that was named the MULTICS (Multiplexed Information and Computing Service) mainframe timesharing system. The MULTICS project was being funded by the Department of Defense Advanced Research Projects Agency. The goal of the MULTICS group was to develop a feature-packed information utility that would allow timesharing of mainframe computers by large communities of users. It was also designed to be able to support multilevels of security with the military in mind. When Bell Labs joined the project their goal was to obtain a timesharing system for use by members of the technical staff at Bell Labs. When the planned time had passed and...

Words: 1891 - Pages: 8

Premium Essay

Jgduteutd

...with your computer. The operating system interacts with a computer's hardware on a basic level, transmitting your commands into language the hardware can interpret. The operating system acts as a platform for all other applications on your CPU. Basically operating systems are like the manager for computers. It's the job of the operating system to monitor what software needs and what the hardware can provide. As you run applications on your computer, the operating system uses the resources necessary to complete the task. That can include processing power, memory allocation and computer storage access. The OS will make sure that your computer's hardware is never overtaxed. There are three most commonly used and they are Windows, Mac OS, and Linux. Windows OS is a product of Microsoft and is the most commonly used OS. It is estimated 90% of client computers use one of various Windows version. Windows is GUI that was a loaded on top of a MS-DOS from Versions 1-3. Windows 95 became an all-in one OS/GUI, which made other versions of Windows OS. Like Window Server 2003 and 2008, and by mobile and compact devises Windows CE. The web browser for Windows is called Explorer. The Mac OS is a Proprietary OS used by Apple for Macintosh computer. The Mac computer is a favorite of multimedia designers, graphic artists, and musicians. Now it’s estimated that about 10% of the US uses Mac OS. Mac OS has always use number version originally named “System”. As of the 7.6 version it was titled Mac...

Words: 628 - Pages: 3