Linux 101: Managing Jobs, Schedules, and Backups Purdue Linux Users Group Speaker: Thor Smith.

Slides:



Advertisements
Similar presentations
Job and Process Management
Advertisements

Using tcpdump. tcpdump is a powerful tool that allows us to sniff network packets and make some statistical analysis out of those dumps. tcpdump operates.
Processes and Job Control. Foreground and Background (1)  Unix is a multi-tasking operating system –some of these tasks are being done by other users.
CSCI 330 T HE UNIX S YSTEM Shell Job Control. T ODAY ’ S CLASS Unix is multi-user, multi-process OS Shell features to control jobs Unix utilities to manage.
Lesson 10-Controlling User Processes. Overview Managing and processing processes. Managing jobs. Exiting/quitting when jobs have been stopped.
LINUX System : Lecture 3 (English-Only Lecture) Bong-Soo Sohn Assistant Professor School of Computer Science and Engineering Chung-Ang University Acknowledgement.
Chapter 13 Processes. What is a process? A process is a program in execution A process is created whenever an external command is executed Whenever the.
Process Management We studied process management in chapter 4 – Here, we examine managing processes from a user’s and system administrator’s perspective.
ATS Programming Short Course I INTRODUCTORY CONCEPTS Tuesday, Jan. 27 th, 2009 Essential Unix Commands.
Linux+ Guide to Linux Certification, Second Edition
CIS 240 Introduction to UNIX Instructor: Sue Sampson.
CS 497C – Introduction to UNIX Lecture 27: - The Process Chin-Chih Chang
UNIX. find command ● The find command is used to locate files on a Unix or Linux system. find will search any set of directories you specify for files.
Lecture 3  Shell Variables  Shell Command History  Job / Process Control  Directory Control.
5 UNIX Processes. Introduction  Processes  How to list them  How to terminate them  Process priorities  Scheduling jobs  Signals.
UNIX Processes. The UNIX Process A process is an instance of a program in execution. Created by another parent process as its child. One process can be.
Offline File Storage. Module 12 Offline File Storage ♦ Introduction Backup is usually done by first collecting all the data in a single archive file,
Yi Shen Mar 18 th, Backup workshop Stanford Exploration Project.
Linux Un*x Overview Peter Norton’s Guide to Unix Running Linux (O’Reilly)
Linux Operations and Administration
Linux+ Guide to Linux Certification, Third Edition
Workbook 5 - Part 2 The Linux Filesystem RH030 Linux Computing Essentials.
Linux Network Configuration Linux System Administration /etc/resolv.conf Tells the kernel which name server should be queried when a program asks to "resolve"
Additional UNIX Commands. 222 Lecture Overview  Multiple commands and job control  More useful UNIX utilities.
Process Control. Module 11 Process Control ♦ Introduction ► A process is a running occurrence of a program, including all variables and other conditions.
SUSE Linux Enterprise Server Administration (Course 3037) Chapter 6 Manage Linux Processes and Services.
Managing processes and services. 1. How Linux handles processes 2. Managing running processes 3. Scheduling processes.
Linux+ Guide to Linux Certification, Second Edition Chapter 10 Managing Linux Processes.
RH030 Linux Computing Essentials
A Practical Guide to Fedora and Red Hat Enterprise Linux Unit 9: Linux Network Services Chapter 16: Administration Tasks By Fred R. McClurg Linux Operating.
L&T Infotech1 UNIX – Getting Started - Aneesh Ramani.
1 Periodic Processes and the cron Daemon The cron daemon is where all timed events are initiated. The cron system is serviced by the cron daemon. What.
Welcome to CS323 Operating System lab 1 TA: Nouf Al-Harbi NoufNaief.net.
Linux+ Guide to Linux Certification Chapter Eleven Managing Linux Processes.
Linux Commands C151 Multi-User Operating Systems.
Course materials may not be reproduced in whole or in part without the prior written permission of IBM. 5.1 © Copyright IBM Corporation 2008 Unit 9 Working.
Sys Admin Course Job Scheduling Fourie Joubert. Sys Admin Course Very often, you may want a job to run once at a certain time, or to run regularly at.
ATS Programming Short Course I INTRODUCTORY CONCEPTS Tuesday, Feb 3 rd, 2009 Essential Unix Commands …the second half.
PTA Linux Series Copyright Professional Training Academy, CSIS, University of Limerick, 2006 © Workshop VI Scheduling & Process Management Professional.
UNIX-21 WEEK 2 4/5/2005. UNIX-22 TOPICS Functions (contd.) pushd, popd, dirs Debugging Shell scripts Scheduling Unix jobs Job Management.
1 COP 4343 Unix System Administration Unit 8: – at – cron.
Running the Operational Codes for the Brahmaputra Tom Hopson.
Processes Todd Kelley CST8207 – Todd Kelley1.
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.
Presented by Dave Mawdsley, DACS Member, Linux SIG February 20, 2013
Using Crontab with Ubuntu
IT244 - Introduction to Linux / Unix Instructor: Bo Sheng
Linux Commands Help HANDS ON TRAINING Author: Muhammad Laique
Running the Operational Codes for the Brahmaputra
lctseng / Liang-Chi Tseng Edit: yench
Chapter 9 Periodic Processes
Chapter 11 – Processes and Services
C151 Multi-User Operating Systems
Chapter 7 Installing Program &Backup Tool
System Administration
How to… Use Crontab for SFX
Linux Network Configuration
Like tron and not kron, or chron
SUSE Linux Enterprise Desktop Administration
The Linux Command Line Chapter 10
The Linux Command Line Chapter 18
Periodic Processes.
Chapter 9 Periodic Processes
Version A.01 H3064S Module 14 Slides
Periodic Processes.
Prepared by, Mr. Satish Pise
Lab 6: Process Management
Periodic Processes.
lctseng / Liang-Chi Tseng
Presentation transcript:

Linux 101: Managing Jobs, Schedules, and Backups Purdue Linux Users Group Speaker: Thor Smith

Outline Managing Jobs Scheduling Backing up files

Jobs: Processes A process is created for any command/program that is run. A process ends when the command or program ends. Listing Processes: Ps; # List all processes in your terminal Ps -ef; # List all processes on the computer Top; # List all process dynamically Killing a Process Kill -9 Killall

Jobs: Listing and Killing Listing Jobs Jobs Jobs -l Jobs -p Killing Jobs Kill % && fg

Jobs: Fg and Bg Jobs exist either in either the foreground or the background, allowing you to manage them. Start a Job in the background & Move between fg and bg Fg ; # moves job with job# to the foreground Bg ; # moves job with job# to the background Move and Quit Jobs in the Foreground Ctrl-z# moves a job to background Ctrl-c# kills the job in the foreground

Scheduling: At and Cron At The at command allows one to specify a particular time for wich a command should execute Cron Cron allows one to to specify a particular schedule for which a command should execute

Scheduling: At Schedule a command At ; #ex. at 2:30pm or at tomorrow Format for time hh:mm Keyword: midnight, noon, now mm/dd/yyyy + # units can be minutes, hours, days, months, years

Scheduling: At listing + removing List at jobs: At -l Atq Remove at jobs Atrm

Scheduling: Cron Crontabs are stored in a file. Edit Crontab file: Crontab -e Specify the time format M H DayofMonth Month DayofWeek Command 1/2***env Display=:0 /bin/gedit List your crontab jobs Crontab -l

Backups Some Backup Utilities: cp tar rsync AMANDA afbackup clonezilla

Backups: tar Tar is a tool that creates an archive of files and folders, usually with a ”.tar” extension. Create an archive: tar cvf file.tar path/to/tar Extract an Archive: tar xvf file.tar List an archive tar tvf file.tar

Backups: tar compressed The tar command can compress the archive while creating it with gzip and gzip2. For gzip tar cvfz file.tar.gz path/to/tar tar xvfz file.tar.gz For gzip2 tar cvfj file.tar.bz2 path/to/tar tar xvfj file.tar.bz2

rsync rsync only updates the difference between files between backups. rsync -ruv dir1 path/to/backups

Questions?

Announcements Linux 101 session 4 will be here on Monday Oct. 31 st at 7:00pm