Preview

Linux

Powerful Essays
Open Document
Open Document
904 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Linux
Linux - The shell
-------------------------------------------------
Introduction to the shell
The command interpreter is the interface between the user and the operating system, hence the name "shell".

The shell therefore acts as an intermediary between the operating system and the user thanks to command lines that are entered by the latter. Its role consists in reading the command line, interpreting its meaning, carry out the command, and then return the result via the outputs.
The shell is an executable file responsible for interpreting the commands, transmitting them to the system, and returning the result. Ther are several shells, the most common being sh (called "Bourne shell"), bash ("Bourne again shell"), csh ("C Shell"), Tcsh ("Tenex C shell"), ksh ("Korn shell"),and zsh("Zero shell"). Their name generally matches the name of the executable.
Each user has a default shell, which will be launched upon opening of a command prompt. The default shell is specified in the dans configuration file /etc/passwd in the last field of the line corresponding to the user. It is possible to change the shell during a session by simply executing the corresponding executable file, for example: /bin/bash
-------------------------------------------------
Prompt
The shell is initialized by reading its overall configuration (in a file of the directory /etc/), followed by reading the user's own configuration (in a hidden file whose name starts with a dot, located in the basic user directory, i.e. /home/user_name/.configuration_file). Then, a prompt is displayed as follows: machine:/directory/current$
By default, for most shells, the prompt consists of the name of the machine, followed by two points (:), the current directory, then a character indicating the type of user connected: * "$" speciies a normal user * "#" specifies the administrator, called "root"
-------------------------------------------------
The command line

You May Also Find These Documents Helpful

  • Satisfactory Essays

    Depending on the users OS setup, X is automatically after other daemons are started. 6. Why would you place /var at the start of the disk?…

    • 680 Words
    • 10 Pages
    Satisfactory Essays
  • Good Essays

    Programmers originally built the Unix operating system for other programmers to use. It is an extensible operating system, meaning it allows programmers to extend and change it to do anything they need it to. Essentially, it is built to multitask. It allows multiple users to use the same app or multiple users access to the same file. Although the computer cannot process all the requests at once, it does prioritize the requests to keep things orderly.…

    • 680 Words
    • 3 Pages
    Good Essays
  • Better Essays

    Even though many Ubuntu functions can be performed through the GUI, they can be completed faster through the shell. The default shell that Ubuntu uses is BASH.…

    • 1499 Words
    • 6 Pages
    Better Essays
  • Satisfactory Essays

    CISSH

    • 1734 Words
    • 7 Pages

    You need to download the cissh distribution file from Blackboard. There is a zip file,…

    • 1734 Words
    • 7 Pages
    Satisfactory Essays
  • Powerful Essays

    Q:What is the default directory when you open a new command window? What is your working directory?…

    • 1015 Words
    • 5 Pages
    Powerful Essays
  • Satisfactory Essays

    Cisco Reviewer Chapter 2

    • 624 Words
    • 3 Pages

    Q.10 What are two ways that a user can interact with an operating system shell? (Choose two.)…

    • 624 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Homeos

    • 369 Words
    • 2 Pages

    Write a shell-like program that illustrates how LINUX spawns processes. This simple program will provide its own prompt to the user, read the command from the input and execute the command. It is sufficient to handle just argument-less commands, such as ls and date.…

    • 369 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Assignemnt

    • 4895 Words
    • 20 Pages

    This section is intended to introduce you to the Unix operating system. It will provide you with a basic understanding of the Unix operating system, its file and directory structure. We have also explained the architecture and components of Unix, further the section contains different useful Unix commands, and those are explained in detail with the help of examples.…

    • 4895 Words
    • 20 Pages
    Powerful Essays
  • Satisfactory Essays

    CUI v/s GUI

    • 565 Words
    • 3 Pages

    Because of the memorization and familiarity needed to operate a command line interface, new users have a difficult time navigating and operating a command line interface.…

    • 565 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    In the search results, click on , which is likely to be the first item on the list.…

    • 1817 Words
    • 8 Pages
    Good Essays
  • Satisfactory Essays

    6. The Magic Tab: Instead of typing the whole filename if the unique pattern for a…

    • 498 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Unix Commands

    • 1253 Words
    • 6 Pages

    Note that there are thousands of commands available on a typical unix box. In bash, just hit the "Tab" key twice and say yes, to display the the commands currently available on your machine. A standard unix operating system lists currently thousands of commands. Type x to list all commands starting with x. The following list contains some of the more frequently used programs.…

    • 1253 Words
    • 6 Pages
    Good Essays
  • Satisfactory Essays

    External commands The shell does not execute these commands by itself but launches executable files, which within the file system are usually found in directories like /bin or /usr/bin.…

    • 518 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    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.…

    • 371 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Vb.Net

    • 6449 Words
    • 26 Pages

    Console Applications are command line based and run in within a DOS Shell (DOS Window). Console Applications are command-line oriented applications that allow us to read characters from the console write characters to the console and are executed in the DOS version. Unlike Windows Applications, Console Applications do not support Windows GUI's. Which…

    • 6449 Words
    • 26 Pages
    Powerful Essays

Related Topics