Linux Shell. 2 Linux Command-Line Interface ■ Linux shells: A shell is a command interpreter that allows you to type commands from the keyboard to interact.

Slides:



Advertisements
Similar presentations
1 Introduction to Linux. 2 History of Linux The Role and Function of Linux The Historical Development of Linux Linux Distributions Common Linux Roles.
Advertisements

RH030 Linux Computing Essentials
A Guide to Unix Using Linux Fourth Edition
Chapter One The Essence of UNIX.
NETW-240 Shells Last Update Copyright Kenneth M. Chipps Ph.D. 1.
1 CSE 390a Lecture 1 introduction to Linux/Unix environment slides created by Marty Stepp, modified by Josh Goodwin
Linux+ Guide to Linux Certification, Second Edition
Guide To UNIX Using Linux Third Edition
Very Quick & Basic Unix Steven Newhouse Unix is user-friendly. It's just very selective about who its friends are.
Virtual Machine and UNIX. What is a VM? VM stands for Virtual Machine. It is a software emulation of hardware. By using a VM, you can have the same hardware.
Unix Presentation. What is an Operating System An operating system (OS) is a program that allows you to interact with the computer -- all of the software.
1 SEEM3460 Tutorial Unix Introduction. 2 Introduction What is Unix? An operation system (OS), similar to Windows, MacOS X Why learn Unix? Greatest Software.
L INUX C OMMAND L INE I NTERFACE G UNAANBAN.G
1. This presentation covers :  User Interface Administration  Files System and Services Management 2.
Using Macs and Unix Nancy Griffeth January 6, 2014 Funding for this workshop was provided by the program “Computational Modeling and Analysis of Complex.
Using the “CLI” Unix / Linux Preparation Course May 25 Djibouti.
Linux GUI Chapter 5. Graphical User Interface GUI vs. CLI Easier and more intuitive More popular and advanced Needed for graphics, web browsing Linux.
Linux+ Guide to Linux Certification Chapter Three Linux Installation and Usage.
Welcome to CSE  Name: Di Cao   Classroom: DL357  Class Time: T 8:30am - 9:18am  Office.
Introduction to Linux Operating System Tutorial 1
EMT 2390L Lecture 2 Dr. Reyes. Outline What is the Shell Basic commands Linux Filesystem System commands.
Overview of Linux CS3530 Spring 2014 Dr. José M. Garrido Department of Computer Science.
Unix Primer. Unix Shell The shell is a command programming language that provides an interface to the UNIX operating system. The shell is a “regular”
Chapter 9 Part II Linux Command Line Access to Linux Authenticated login using a Linux account is required to access a Linux system. The Linux prompt will.
Linux environment ● Graphical interface – X-window + window manager ● Text interface – terminal + shell.
Agenda User Profile File (.profile) –Keyword Shell Variables Linux (Unix) filters –Purpose –Commands: grep, sort, awk cut, tr, wc, spell.
Cmsc 312 Operating Systems. UNIX? DOS – PC? VAX/VMS - mainframe Unix – PC, workstation, mainframe 1970 bell Lab For computer scientist? Why popular? Free.
CENT 305 Information Systems Security Linux Introduction.
Session 2 Wharton Summer Tech Camp Basic Unix. Agenda Cover basic UNIX commands and useful functions.
UNIX/LINUX Shells Shell is an UNIX/LINUX command interpreter. Shell command can be internal or external. The code to execute an internal command is part.
UNIX/LINUX SHELLS.  “A Unix shell is a command-line interpreter or shell that provides a traditional user interface for the Unix operating system and.
Chapter 0 A “Quick-Start” into the UNIX Operating System.
Unix/Linux cs3353. The Shell The shell is a program that acts as the interface between the user and the kernel. –The shell is fully programmable and will.
Lesson 2-Touring Essential Programs. Overview Development of UNIX and Linux. Commands to execute utilities. Communicating instructions to the shell. Navigating.
ITR3 lecture 6: intoduction to UNIX Thomas Krichel
Chapter 1 : The Linux System Part 2 Lecture 2 11/14/
Unix/Linux for beginners:
1 CSE 390a Lecture 1 introduction to Linux/Unix environment slides created by Marty Stepp, modified by Jessica Miller & Ruth Anderson
1 CSE 390a Lecture 1 introduction to Linux/Unix environment slides created by Marty Stepp, modified by Jessica Miller & Ruth Anderson
CS 245 – Part 1 Using Operating Systems and Networks for Programmers Jiang Guo Dept. of Computer Science California State University Los Angeles.
Module 1 - Introduction to Linux. Users must log-in Linux is case sensitive File and Directories naming conventions (No spaces!) Files and Directories.
Lab 8 Overview Apache Web Server. SCRIPTS Linux Tricks.
Linux+ Guide to Linux Certification, Second Edition Chapter 4 Exploring Linux Filesystems.
Lecture 02 File and File system. Topics Describe the layout of a Linux file system Display and set paths Describe the most important files, including.
The Kernel At a high level, the kernel in an operating system serves as the bridge between applications and the actual data processing of the hardware.
 Last lesson, the Windows Operating System was discussed along with the Windows command shell  Unix is a computer operating system, that similarly manages.
1 CS3695 – Network Vulnerability Assessment & Risk Mitigation – Introduction to Unix & Linux.
Unix Fundamentals CS 127. File navigation cd - change directory cd /var/log cd /etc/apache2 cd ~/Desktop ~ is a shortcut for the home directory.
Gorman, Stubbs, & CEP Inc. 1 Introduction to Operating Systems Lesson 8 Linux.
Linux Tutorial Lesson Two *Getting Help in Linux *Data movement and manipulation *Relative and Absolute path *Processes Note: see chapter 1,2,3 from Linux.
Learning Unix/Linux Based on slides from: Eric Bishop.
INTRODUCTION TO SHELL SCRIPTING By Byamukama Frank
Using Linux Kaya Oğuz Room: 310.
By Jonathan Rinfret UNIX/LINUX By Jonathan Rinfret
Overview of Linux Fall 2016 Dr. Donghyun Kim
California State University Fresno
Linux Commands Help HANDS ON TRAINING Author: Muhammad Laique
Introduction to Linux.
Unix Shells.
9 Linux on the Desktop.
introduction to Linux/Unix environment
CSE 390a Lecture 1 introduction to Linux/Unix environment
Unix : Introduction and Commands
CSE 390a Lecture 1 introduction to Linux/Unix environment
introduction to Linux/Unix environment
introduction to Linux/Unix environment
introduction to Linux/Unix environment
introduction to Linux/Unix environment
introduction to Linux/Unix environment
introduction to Linux/Unix environment
Presentation transcript:

Linux Shell

2 Linux Command-Line Interface ■ Linux shells: A shell is a command interpreter that allows you to type commands from the keyboard to interact with the operating system kernel.

■ sh (Bourne Shell) The sh shell was the earliest shell, being developed for UNIX back in the late 1970s. ■ bash (Bourne-Again Shell) The bash shell is an improved version of the sh shell and is one of the most popular shells today. It’s the default shell used by most Linux distributions. ■ csh (C Shell) The csh shell was originally developed for BSD UNIX. It uses a syntax that is very similar to C programming. ■ tsch The tsch shell is an improved version of the C Shell. It is the default shell used on FreeBSD systems. ■ zsh (Z Shell) The Z Shell is an improved version of the bash shell.

4 Linux Command-Line Interface Libraries Libraries are pre-written code “pieces” that application programmers use in their programs. Utilities maintaining the file system, editing text files, managing running processes, and installing new software packages. User Interface command-line interface (CLI) and a graphical user interface (GUI).

5 Linux Command-Line Interface..

6

7

8 Commonly Used CLI Commands and Utilities / : denote root directory./ : denote current directory PATH : ■ halt This command shuts down the operating system, but can only be run by the root user. ■ reboot This command shuts down and restarts the operating system. It also can only be run by root.

9 Commonly Used CLI Commands man: is help command. Ex: man ls –Press q to quit –/xyz to search string in man page pwd: Display current Directory

cd: Changing Directories cd # go to home directory cd ~/papers # go to /home/user/papers cd ~fred # go to /home/fred cd dir # go to directory (relative) cd /dir1/dir2/dir3... # go to directory (absolute) cd - # go to last directory you were in

cp: copy file cp file1 file2 # copy file1 to file2 cp file1 directory # copy file1 into directory cp file1 file2 file3... directory # copy files into directory cp -R dir1 dir2/ # copy dir1 into dir2 including subdirectries

Commonly Used CLI Commands date - Shows current date date Sat Aug 31 17:18:53 BST 2002  logout - Closes the current shell. Also try ``exit''.

rm - Delete (remove) files rm file1# delete a file (use -i to ask whether sure) rm -r dir1 # delete a directory and everything in it (CARE!) rm -rf dir1 # like above, but don't ask if we have a -i alias

14 Commands… ■ su (switch user) This command switches the current user to a new user account. This command is most frequently used to switch to the superuser root account. In fact, if you don’t supply a username, this utility assumes that you want to change to the root account. If you enter su -, then you will switch to the root user account and have all of root’s environment variables applied.

15 Commands… ■ env This command displays the environment variables for the currently logged-in user. ■ echo This command is used to echo a line of text on the screen. It’s frequently used to display environment variables. Ex: echo $PATH

16 Commands… ■ top This command is a very useful command that displays a list of all applications and processes currently running on the system. ■ which This command is used to display the full path to a shell command or utility. Ex: which ls It display: /bin/ls

17 Commands… ■ whoami This command displays the username of the currently logged-in user. ■ netstat This command displays the status of the network, including current connections, routing tables, etc. ■ route This command is used to view or manipulate the system’s routing table. ■ ifconfig This command is used to manage network boards installed in the system. It can be used to display or modify your network board configuration parameters.

18

19 Linux Graphical User Interface XFree86 project developed a free windows system that provides a GUI on the Linux operating system. Using X Windows along with a window manager and a desktop environment (such as GNOME or KDE), users can interact with the Linux kernel using a mouse instead of the keyboard.

20

21 GNU – GPL Question 13?