Module 1 - Introduction to Linux. Users must log-in Linux is case sensitive File and Directories naming conventions (No spaces!) Files and Directories.

Slides:



Advertisements
Similar presentations
RH030 Linux Computing Essentials
Advertisements

Second edition Your UNIX: The Ultimate Guide Das © 2006 The McGraw-Hill Companies, Inc. All rights reserved. UNIX – The Process The Process A process is.
1 Introduction to UNIX Ke Liu
NETW-240 Shells Last Update Copyright Kenneth M. Chipps Ph.D. 1.
CS 497C – Introduction to UNIX Lecture 26: - The Process Chin-Chih Chang
More Shell Basics CS465 - Unix. Unix shells User’s default shell - specified in /etc/passwd file To show which shell you are currently using: $ echo $SHELL.
Introduction to Linux/UNIX. History UNIX beginnings in 1969 (Linus Torvalds is born!) AT & T Bell Laboratories (Ken Thompson & Dennis Richie) Working.
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.
L INUX C OMMAND L INE I NTERFACE G UNAANBAN.G
1. This presentation covers :  User Interface Administration  Files System and Services Management 2.
1 The Shell and some useful administrative Unix Commands How Unix works along with some additional, useful administrative Unix commands you might need.
Welcome to CSE  Name: Di Cao   Classroom: DL357  Class Time: T 8:30am - 9:18am  Office.
Introduction to Linux Operating System Tutorial 1
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”
Lesson 7-Creating and Changing Directories. Overview Using directories to create order. Managing files in directories. Using pathnames to manage files.
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.
An Introduction to UNIX System --- Cosc513 Presentation n Instructor: Morteza Anvari n Author: Yonghong Pan n ID#: n Date: Jan.29, 2001.
CENT 305 Information Systems Security Linux Introduction.
Introduction to Unix – CS 21 Lecture 9. Lecture Overview Shell description Shell choices History Aliases Topic review.
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.
LINUX System : Lecture 6 Shell Programming
Basic Shell Scripting - Part 1 Objective - Learn to: Read Start-up Files Edit Start-up Files Modify Your User Environment Communicate with Users Write.
COMP1070/2002/lec4/H.Melikian COMP1070 Lecture #4  Unix software architecture  Correcting mistakes  System setups  Useful commands for the beginner.
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.
1 Operating Systems and Using Linux Topics What is an Operating System? Linux Overview Frequently Used Linux Commands Some content in this lecture added.
Operating System What is an Operating System? A program that acts as an intermediary between a user of a computer and the computer hardware. An operating.
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
Shell Advanced Features. Module 8 Shell Advanced Features ♦ Introduction In Linux systems, the shells are often referred to as command line interfaces.
Lab 3 + Using the Terminal 1. "Under Linux there are GUIs (graphical user interfaces). where you can point and click and drag, and hopefully get work.
Introduction to Programming Using C An Introduction to Operating Systems.
Unix – Linux CS3353 Ssystem Administration. OS The Operating System – Acts as the interface to all software, hardware, and users of a computer. – Requires.
Advanced Programming in the UNIX Environment Hop Lee.
Agenda Basic Unix Commands (Chapters 2 & 3) Miscellaneous Commands: which, passwd, date, ps / kill Working with Files: file, touch, cat, more, less, grep,
1 Day 18 Bash and the.files. 2 The.files ls shows you the files in your directory –Or at least most of them. –Some files are hidden. Try: ls –a –This.
Linux Commands C151 Multi-User Operating Systems.
Manually Creating a New User Account Presented by Carl South.
CS 245 – Part 1 Using Operating Systems and Networks for Programmers Jiang Guo Dept. of Computer Science California State University Los Angeles.
CSCI 330 UNIX and Network Programming Unit III Shell, Part 1.
Unix Advanced Shells Chapter 10. Unix Shells u Command Line Interpreter –once logged in, login gives control to a shell –it prompts for input, then parses,
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.
1 CS3695 – Network Vulnerability Assessment & Risk Mitigation – Introduction to Unix & Linux.
Configuration your environment Many user-configurable Unix programs (such as your shell) read configuration files when they start up. These configuration.
June 1, 1999UNIX - Basic Environment1 Introduction to UNIX A. Basic Environment.
Operating Systems and Using Linux Courtesy of John Y. Park 1.
1 Lecture 7 Introduction to Shell Scripts COP 3353 Introduction to UNIX.
Learning Unix/Linux Based on slides from: Eric Bishop.
INTRODUCTION TO SHELL SCRIPTING By Byamukama Frank
Department of Computer Engineering
Lecture 7 Introduction to Shell Programming
Lecture 7 Introduction to Shell Scripts COP 3353 Introduction to UNIX.
Agenda Korn Shell Functions Korn Shell Variables
Linux Commands Help HANDS ON TRAINING Author: Muhammad Laique
Linux/Unix - Download Ubuntu Linux :
System Programming and administration CS 308
Basic Commands ls cp ls –l (in detail format) echo ls –a
Unix Shells.
Some Linux Commands.
LINUX System : Lecture 5 (English-Only Lecture)
Shell Environments.
John Carelli, Instructor Kutztown University
Unix : Introduction and Commands
CSCI The UNIX System Shell Startup and Variables
Introduction to Linux/UNIX
Linux Shell Script Programming
The Attack and Defense of Computers
Presentation transcript:

Module 1 - Introduction to Linux

Users must log-in Linux is case sensitive File and Directories naming conventions (No spaces!) Files and Directories starting with a dot (.) are hidden Linux Basics

Linux Users There are two kinds of users in Linux: 1. An Administrator (root) and only one. 2. Regular Users (Every one beside root) Services and Daemons have a unique user name to operate the service/daemon on their behalf. The first user in the system is root (UID 0) and the first regular user will be created with UID of 500. Services and Daemons are granted UID from 1->499

root (AKA Super User) is the system administrator with unlimited privileges (God) The root user has the unique User Identification Number (UID) of 0 (zero) The Linux prompt (Shell Prompt) ends with a # sign when we are logged in as the root user Linux Users

Regular Users have very limited privileges in the system. Regular Users are granted UID starting at 500 and above. The Linux prompt (Shell Prompt) ends with a $ sign when we are logged in as a regular user Linux Users

Can you “talk” in ?! In Linux, the shell is a program that interprets commands and acts as an intermediary between the user and the inner workings of the operating system. The Linux SHELL

On most Linux systems, there are several shells available. For the average user, they offer similar functionality, but each has different syntax and capabilities. Most shells fall within one of two classes: those descended from the Bourne shell (i.e. sh), which first appeared in Version 7 Unix, and those from the C Shell (i.e. csh), which made its debut in BSD. Nearly every Linux system has these two shells installed, but may also have several others

The Linux SHELL SHELL: sh, csh, ksh and bash Bourne Again Shell: bash Switching shells is easy (when we are switching a shell we are actually opening a new Sub Shell under our original shell)

The Linux SHELL We can find the system default shell by echoing the variable: # echo $SHELL We can find the shell we are currently on by echoing the following variable: # echo $0 To close a shell simply issue the command: # exit

Which Linux are you on ? Find your Operating System name: # cat /etc/issue ( the cat command shows us a text file on our screen) Find your Kernel Version and CPU architecture: # uname -a Find the system host name: # hostname

The Linux SHELL Command Structure Command Options path # ls -l /home # ls -l -a /tmp # ls -al /var

The Linux man command Every command in the system has a manual To read this manual issue the command: # man [Command Name] # man ls We can search for a specific word in all the manuals descriptions by using the following option: # man –k [specific word] # man –k partition Search inside the manual with / and exit with q

Who are you and where are you ? Find who are you: # whoami # id Find where are you: # pwd

Shut Down Linux Issue the following command to shut down the system: # shutdown -h now