V2012.13. 2 Avon High School Tech Crew Agenda Old Business –Delete Files New Business –Week 9 Topics: Coming up: –Yearbook Picture: Feb 7 12:20PM.

Slides:



Advertisements
Similar presentations
Introduction to Linux Ubuntu for Libraries. Objectives o To Understand the history of Linux/Unix based OS’s o To learn the various Linux distributions.
Advertisements

Jump to first page Unix Commands Monica Stoica Jump to first page Introduction to Unix n Unix was born in 1969 at Bell Laboratories, a research subdivision.
V Avon High School Tech Crew Agenda Old Business –Delete Files New Business –Week 7 Topics: Tech Talks Field Trip Complete VirtualBox/Ubuntu.
NETW-240 Shells Last Update Copyright Kenneth M. Chipps Ph.D. 1.
Introducing the Command Line CMSC 121 Introduction to UNIX Much of the material in these slides was taken from Dan Hood’s CMSC 121 Lecture Notes.
Lecture 01CS311 – Operating Systems 1 1 CS311 – Lecture 01 Outline Course introduction Setting up your system Logging onto the servers at OSU with ssh.
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.
Embedded Programming and Robotics Lesson 13 Basic Linux 1.
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
Using Macs and Unix Nancy Griffeth January 6, 2014 Funding for this workshop was provided by the program “Computational Modeling and Analysis of Complex.
V Avon High School Tech Crew Agenda Old Business –Delete Files New Business –Week 10 Topics: Coming up: –Yearbook Picture: Feb 7 12:20PM.
Brief introduction to UNIX A. Emerson CINECA, High Performance Systems.
© Crown copyright Met Office An Introduction to Linux PRECIS Workshop, University of Reading, 23rd – 27th April 2012.
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.
Working with Files Chapter 5. Display a Calendar Display a calendar for a specific month – cal Display a calendar for a specific year – cal 2000.
Linux environment ● Graphical interface – X-window + window manager ● Text interface – terminal + shell.
A few Linux basics Network Monitoring & Management.
File Permissions. What are the three categories of users that apply to file permissions? Owner (or user) Group All others (public, world, others)
Session 2 Wharton Summer Tech Camp Basic Unix. Agenda Cover basic UNIX commands and useful functions.
INTRODUCTION TO LINUX Jacob Chan. GNU/Linux Consists of Linux kernel, GNU utilities, and open source and commercial applications Works like Unix –Multi-user.
UNIX Commands. Why UNIX Commands Are Noninteractive Command may take input from the output of another command (filters). May be scheduled to run at specific.
Isecur1ty training center Presented by : Eng. Mohammad Khreesha.
Lesson 2-Touring Essential Programs. Overview Development of UNIX and Linux. Commands to execute utilities. Communicating instructions to the shell. Navigating.
Second edition Your UNIX: The Ultimate Guide Das © 2006 The McGraw-Hill Companies, Inc. All rights reserved. UNIX Commands cal – will print a calendar.
BIF713 Basic Unix/Linux Commands Getting Help with Commands.
Linux Essentials Programming and Data Structures Lab M Tech CS – I 2014 Arijit Bishnu Ansuman Banerjee Debapriyo Majumdar.
File Security and Permissions. File Permissions (1) u With respect to a particular file, Unix divides the set of all users on a system into three categories:
Chapter 1 : The Linux System Part 2 Lecture 2 11/14/
Agenda Basic Unix Commands (Chapters 2 & 3) Miscellaneous Commands: whereis, which, whoami, finger, passwd, cal, date Working with Files: cat, more, less.
Linux+ Guide to Linux Certification, Third Edition
Linux+ Guide to Linux Certification, Third Edition
Manage Directories and Files in Linux Part 2. 2 Identify File Types in the Linux System The file types in Linux referred to as normal files and directories.
Λειτουργικά Συστήματα – Lab2 Γιάννης Πετράκης. Directory Navigation and Control  The Unix file system is set up like a tree branching out from the root.
CSE 374 Programming Concepts & Tools Hal Perkins Fall 2015 Lecture 2a – A Unix Command Sampler (Courtesy of David Notkin, CSE 303)
Linux Commands C151 Multi-User Operating Systems.
UNIX filesystem CS 2204 Class meeting 2 *Notes by Doug Bowman and other members of the CS faculty at Virginia Tech. Copyright
Linux A practical introduction. 1)Background and Getting Started Linux is an operating system with multiple providers Red Hat/CentOS (our version) Ubuntu.
Installing Applications in FreeBSD lctseng. Computer Center, CS, NCTU 2 Before we start  Permission issue root: the super user Like administrator in.
Linux Stuff Last Update Copyright 2014 Kenneth M. Chipps Ph.D. 1.
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.
CSCI 330 UNIX and Network Programming Unit II Basic UNIX Usage: File System.
File Management commands cat Cat command cat cal.txt cat command displays the contents of a file here cal.txt on screen (or standard out).
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.
Embedded Software Design Week II Linux Intro Linux Kernel.
UNIX To do work for the class, you will be using the Unix operating system. Once connected to the system, you will be presented with a login screen. Once.
Getting started with CentOS Linux
Chapter 11 Command-Line Master Class
Commands Basic syntax of shell commands UNIX or shell commands have a basic structure command -options target command comes first (such as cd or ls) any.
Linux Commands Help HANDS ON TRAINING Author: Muhammad Laique
Andy Wang Object Oriented Programming in C++ COP 3330
Some Linux Commands.
The Command Prompt Commands are the way to “do things” in Unix
Useful Linux Commands.
The Linux Operating System
9 Linux on the Desktop.
Ubuntu Working in Terminal
Introduction to GNU/Linux (Fedora) Command Line Interface
CSE 374 Programming Concepts & Tools
Lab 1 introduction, debrief
Introduction to UNIX.
Getting started with CentOS Linux
Andy Wang Object Oriented Programming in C++ COP 3330
UNIX/LINUX Commands Using BASH Copyright © 2017 – Curt Hill.
Module 6 Working with Files and Directories
Lab 2: Terminal Basics.
Presentation transcript:

V

2 Avon High School Tech Crew Agenda Old Business –Delete Files New Business –Week 9 Topics: Coming up: –Yearbook Picture: Feb 7 12:20PM in Main Gym –JVS Open House: Feb 10th 1:30-3:30PM, OH RT58. »Tours, teachers, and some students will be available –Guest Speaker: Feb 12th –Hyland Field Trip: Feb 21 st (no details yet) Linux Intro (continued)

3 Avon High School Tech Crew New Business Intro to Linux –Basic Commands –Install Additional Software –Practice Exercises

4 Avon High School Tech Crew Basic Commands Commands take the following form: Switches: single letters, preceded by a hyphen, that adjust what the command does Parameters: things that the command needs to know in order to work Target: the thing (such as a file) that the command will be applied

5 Avon High School Tech Crew Basic Commands Let’s look at an example: $ ls -l /home/seighman Command Switch Target This command tells the command line to list, in long format, the contents of the directory “/home/seighman”. The command is “ls”; the switch “-l” tells Linux that you want the list in long format; and the target of this command is the directory “/home/seighman”. In this example, there are no parameters, so that part of the command is just skipped

6 Avon High School Tech Crew Basic Commands - man So, how do I know what switch to use? –manpages are your friend $ man ls LS(1) User Commands LS(1) NAME ls - list directory contents SYNOPSIS ls [OPTION]... [FILE]... DESCRIPTION List information about the FILEs (the current directory by default). Sort entries alphabetically if none of -cftuvSUX nor --sort is specified

7 Avon High School Tech Crew Basic Commands pwd ls cd mkdir rmdir

8 Avon High School Tech Crew Basic Commands 2 file touch cp rm mv rename

9 Avon High School Tech Crew Basic Commands 2 - file ‘file’ $ file linuxcommands.pdf linuxcommands.pdf: PDF document, version 1.5 The file utility determines the file type. Linux does not use extensions to determine the file type.

10 Avon High School Tech Crew Basic Commands 2 - file ‘touch’ $ touch test.txt One easy way to create a file is with touch

11 Avon High School Tech Crew Basic Commands 2 - cp ‘cp’ $ cp test.txt /home/seighman/Documents To copy a file, use cp with a source and a target argument If the target is a directory, then the source files are copied to that target directory.

12 Avon High School Tech Crew Basic Commands 2 - cp Some ‘cp’ examples: $ cp -r The -r option forces recursive copying of all files in all subdirectories $ cp -i Prevents cp from overwriting existing files, use -i (interactive) $ cp -p Preserve permissions and time stamps from source files

13 Avon High School Tech Crew Basic Commands 2 - rm ‘rm’ $ rm test.txt Use rm to remove a file There’s no notion of a ‘waste basket’ When you use rm to remove a file, the file is gone Be careful when removing files!

14 Avon High School Tech Crew Basic Commands 2 - rm Some ‘rm’ examples: $ rm –i text.txt To prevent yourself from accidentally removing a file, you can use -i. $ rm –rf test When you are logged on as root, be very careful with rm -rf (the f means force and the r means recursive)

15 Avon High School Tech Crew Basic Commands 2 - mv ‘mv’ $ mv test.txt text1.txt Use mv to rename a file or to move the file to another directory

16 Avon High School Tech Crew Basic Commands 2 - mv Some ‘mv’ examples: $ mv To prevent yourself from accidentally removing a file, you can use -i. $ mv When you are logged on as root, be very careful with rm -rf (the f means force and the r means recursive)

17 Avon High School Tech Crew Basic Commands 2 - rename ‘rename’ The rename command can also be used but it has a more complex syntax to enable renaming of many files at once

18 Avon High School Tech Crew Basic Commands 2 - rename Some ‘rename’ examples: $ rename 's/txt/doc/' *.txt Switches all occurrences of txt to doc for all file names ending in.txt.

19 Avon High School Tech Crew Super User The “sudo” command introduces the “superuser” or “root user” The term “root” is the name for the main administrator in a “Unix-like” system, such as Linux There are many commands that only the root user can run Depending on the version of Linux you are using, you will either have to log on as the root user or prefix your command with “sudo”. The default Debian distribution of Linux, for instance, has no root password set. So you will have to use the “sudo” command

20 Avon High School Tech Crew Super User By using “sudo”, you’re saying, “Do the following command as the root user” When you do this, you will be asked for your password and, if you have the system permissions of a root user (commonly called “being in the admin group”), then the command will be run If you don’t have root permissions, you will get an error message WARNING: be very careful executing commands as root (sudo), you can easily render your system unuseable!

21 Avon High School Tech Crew Installing Software Installing software on Linux is a broad subject because each version of Linux has its own way of doing things Most are variations on apt-get (Advanced Packaging Tool), used by Debian, Ubuntu, and related distributions) yum (Yellowdog Update Manager), used by Fedora and related distributions The basic syntax is: $ sudo apt-get install $ sudo yum install

22 Avon High School Tech Crew Using apt-get to Manage Software To install a software package: $ sudo apt-get install To update the local package database: $ sudo apt-get update To install all available newer versions of packages: $ sudo apt-get upgrade To remove a package: $ sudo apt-get remove

23 Avon High School Tech Crew Ubuntu Setup Install Ubuntu Tweak –Open a ‘terminal’ –Enter the following commands: $ sudo add-apt-repository ppa:tualatrix/ppa $ sudo apt-get update $ sudo apt-get install ubuntu-tweak –You may need to logout and login again

24 Avon High School Tech Crew Practice Exercises Work through the exercises here:

25 Avon High School Tech Crew Basic Commands 3 tail head Cat more less