EMT 2390L Lecture 2 Dr. Reyes. Outline What is the Shell Basic commands Linux Filesystem System commands.

Slides:



Advertisements
Similar presentations
RH030 Linux Computing Essentials
Advertisements

RH030 Linux Computing Essentials
Tony Kombol.  A program that  receives commands from a text input device (e.g. keyboard)  passes them to the operating system to perform  In the.
Linux+ Guide to Linux Certification, Second Edition
EMT 2390L Lecture 4 Dr. Reyes Reference: The Linux Command Line, W.E. Shotts.
PacNOG 6: Nadi, Fiji Using Commands in Linux Hervey Allen Network Startup Resource Center.
The Unix File System. What are the three parts of every file on a Unix filesystem? And where is each stored? Filename - stored in directories Inode -
CS Lecture 03 Outline Sed and awk from previous lecture Writing simple bash script Assignment 1 discussion 1CS 311 Operating SystemsLecture 03.
Linux+ Guide to Linux Certification, Second Edition Chapter 3 Linux Installation and Usage.
Linux+ Guide to Linux Certification, Second Edition
Chapter 5 Accessing Files and Directories. How Directories Get Created OS installation: usr, dev, etc, export, kernel and others places to store installation.
Linux Files and Directories. Linux directories Linux system are arranged in what is called a hierarchical directory structure. This means that they are.
Using Linux Commands 2 Lab#5
2 $ command Command Line Options ls –a –l hello hi Command Arguments.
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.
Using Linux Commands 2 Lab#5. Sort command Sort the lines of text files. $ sort fileName by default it will sort in normal order(alphabetical 0-9 A-Z.
1. This presentation covers :  User Interface Administration  Files System and Services Management 2.
Using the “CLI” Unix / Linux Preparation Course May 25 Djibouti.
Shell - Introduction & Commands Chapter III / Part II.
Linux+ Guide to Linux Certification Chapter Three Linux Installation and Usage.
Overview of Linux CS3530 Spring 2014 Dr. José M. Garrido Department of Computer Science.
1 THE UNIX FILE SYSTEM By Chokechai Chuensukanant ID COSC 513 Operating System.
The file structure and related utilities CS240 Computer Science II.
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 3. The Unix Filesystem. Files and Directories (1) u What is a file? –a container for ordered data –persistent (stays around) and accessible by.
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.
Basic unix commands that everyone should know (Even if you have a mac) Slightly more advanced:
®® Microsoft Windows 7 for Power Users Tutorial 13 Using the Command-Line Environment.
Computer Programming for Biologists Oct 30 th – Dec 11 th, 2014 Karsten Hokamp  Fill out.
Chapter 2: Getting Started Logon to Logout. In this chapter … Logging on The Shell Superuser Getting Help Logging off.
Linux+ Guide to Linux Certification Chapter Four Exploring Linux Filesystems.
Linux+ Guide to Linux Certification, Third Edition
Week 3 Exploring Linux Filesystems. Objectives  Understand and navigate the Linux directory structure using relative and absolute pathnames  Describe.
Using Commands Unix/IP Preparation Course July 19, 2009 Eugene, Oregon, USA
1 Operating Systems and Using Linux Topics What is an Operating System? Linux Overview Frequently Used Linux Commands Some content in this lecture added.
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.
Using Commands Unix / Linux Preparation Course May 6, 2012 Serrekunda, The Gambia.
ITR3 lecture 6: intoduction to UNIX Thomas Krichel
EMT 2390L Lecture 5 Dr. Reyes Reference: The Linux Command Line, W.E. Shotts.
Chapter 1 : The Linux System Part 2 Lecture 2 11/14/
Log-in to the Unix Server A successful log-in allows access to the server through the Secure Shell. SSH, also known as Secure Shocket Shell, is a Unix.
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.
Λειτουργικά Συστήματα – Lab2 Γιάννης Πετράκης. Directory Navigation and Control  The Unix file system is set up like a tree branching out from the root.
Lesson 3-Touring Utilities and System Features. Overview Employing fundamental utilities. Linux terminal sessions. Managing input and output. Using special.
CSE 374 Programming Concepts & Tools Hal Perkins Fall 2015 Lecture 2a – A Unix Command Sampler (Courtesy of David Notkin, CSE 303)
Using the “CLI” Unix / Linux Preparation Course June 9, 2013 Lusaka, Zambia.
Linux Commands C151 Multi-User Operating Systems.
PTA Linux Series Copyright Professional Training Academy, CSIS, University of Limerick, 2006 © Workshop III - Part A Shell Commands Professional Training.
Module 1 - Introduction to Linux. Users must log-in Linux is case sensitive File and Directories naming conventions (No spaces!) Files and Directories.
Isecur1ty training center Presented by : Eng. Mohammad Khreesha.
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,
Linux+ Guide to Linux Certification, Second Edition Chapter 4 Exploring Linux Filesystems.
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.
EMT 2390L Lecture 3 Dr. Reyes Reference: The Linux Command Line, W.E. Shotts.
Learning basic Unix command It 325 operating system.
Overview of Linux Fall 2016 Dr. Donghyun Kim
Using the Terminal Lab 3+.
The Linux Command Line Chapter 2
The Linux Command Line Chapter 1
Unix : Introduction and Commands
The Linux Command Line Chapter 3
Shells, Help, and Paths.
Linux Shell Script Programming
FEniCS – workflow Start the Docker Quickstart terminal / terminal
Using Linux Command 3 Lab#6.
The Linux Command Line Chapter 3
Presentation transcript:

EMT 2390L Lecture 2 Dr. Reyes

Outline What is the Shell Basic commands Linux Filesystem System commands

What is the Shell? Shell - a program that takes keyboard commands and passes them to the operating system to carry out Types of Shells: o C-Shell: csh, tcsh o Bourne Shell: sh o Bourne Again Shell: bash When using a GUI, a terminal emulator is used to interact with the shell o KDE uses konsole o GNOME uses gnome-terminal

Shell Prompt

Session Privileges Prompt ending with: o $ - regular user, privileges varies o # - superuser

Command History Press up-arrow key for previous command Press down-arrow key for next command Press left-arrow key to move back in the same line Press right-arrow key to move back in the same line Limited support for mouse interaction Some keyboard shortcuts might not work, as they belong to Windows: o Ctrl-C o Ctrl-V

Commands Try the following commands: o date – displays the date o cal – displays the calendar o df – disk available o free – memory available o exit – to exit the system

Filesystem Tree Linux uses hierarchical directory structure o Tree-like structure o Root – First directory o Drives are not separate trees, instead they are mounted o You can see the files and the parent of the current directory o Each user account is given it’s own home directory

Commands for Directories pwd - lists the current working directory ls – lists the files and sub-directories in the current working directory cd – change to the specified directory o cd /usr/bin – changes to dir /usr/bin o cd / - changes to root dir Special parameters o. (dot) – current directory o.. (double dot) – parent directory o - (dash) – changes to the previous working directory o ~ (tilde) – changes to your home directory o ~username – changed to home directory of username

Linux Filenames Facts Filenames that begin with a period character are hidden. To display them use ls –a Filenames are case sensitive In Linux there are no file extensions such as.doc or.exe Avoid using spaces and special characters even if is supported.

Other uses of ls Try the following options with ls o ls /usr o ls ~ /usr o ls – l Most commands have options and argument o command –options arguments o options might be a dash and a single character or two dashes followed by a word

ls Options

ls –l What all that means?

Commands for files To get the file type o file filename To read a file o less filename o less is better than more

Some Linux Directories

Assignments Check the class OpenLab site for new Labs o Lab 0 is mandatory. Check Blackboard for new Quizzes o Quiz 0 is mandatory. © by Pearson Education, Inc. All Rights Reserved.