EMT 2390L Lecture 5 Dr. Reyes Reference: The Linux Command Line, W.E. Shotts.

Slides:



Advertisements
Similar presentations
POS/420 Philip Robbins – March 19, 2013 (Week 2) University of Phoenix Mililani Campus Introduction to Unix.
Advertisements

Shell Script Assignment 1.
EMT 2390L Lecture 4 Dr. Reyes Reference: The Linux Command Line, W.E. Shotts.
Process Relationships Terminal and Network Logins Process Groups and Sessions Job Control Relationships.
Lesson 10-Controlling User Processes. Overview Managing and processing processes. Managing jobs. Exiting/quitting when jobs have been stopped.
1 Introduction to UNIX Ke Liu
Linux File & Folder permissions. File Permissions In Ubuntu, files and folders can be set up so that only specific users can view, modify, or run them.
CS 497C – Introduction to UNIX Lecture 26: - The Process Chin-Chih Chang
1 CSE 303 Lecture 4 users/groups; permissions; intro to shell scripting read Linux Pocket Guide pp , 25-27, 61-65, , 176 slides created by.
File Security. Viewing Permissions ls –l Permission Values.
Chapter 10 File System Security. Security Policies security policies are doors maintain a balance between total access and total security UNIX has two.
Lesson 22 – Introduction to Linux Systems Administration.
Linux+ Guide to Linux Certification, Second Edition
User Accounts and Permissions Chapter IV / Part II.
Processes & Daemons Chapter IV / Part III. Commands Internal commands: alias, cd, echo, pwd, time External commands, code is in a file: grep, ls, more.
Lecture 02CS311 – Operating Systems 1 1 CS311 – Lecture 02 Outline UNIX/Linux features – Redirection – pipes – Terminating a command – Running program.
Linux File Security. What is Permission ? Specifies what right are granting to users to access the resources available in the computer. So that important.
Introduction to Linux and Shell Scripting Jacob Chan.
Filesystem Hierarchy Standard (FHS) –Standard of outlining the location of set files and directories on a Linux system –Gives Linux software developers.
EMT 2390L Lecture 2 Dr. Reyes. Outline What is the Shell Basic commands Linux Filesystem System commands.
Linux in More Detail Shirley Moore CPS5401 August 29,
Guide to Linux Installation and Administration, 2e1 Chapter 8 Basic Administration Tasks.
The “File System” Under UNIX, (almost) everything is a “file”: –Normal files –Directories –Hardware –Sockets –Pipes Things that are not files: –Users –Groups.
File Permissions. What are the three categories of users that apply to file permissions? Owner (or user) Group All others (public, world, others)
Linux+ Guide to Linux Certification, Second Edition
Managing Processes CSCI N321 – System and Network Administration Copyright © 2000, 2011 by Scott Orr and the Trustees of Indiana University.
Linux+ Guide to Linux Certification, Third Edition
EMT 2390L Lecture 6 Dr. Reyes Reference: The Linux Command Line, W.E. Shotts.
File Permission and Access. Module 6 File Permission and Access ♦ Introduction Linux is a multi-user system where users can assign different access permission.
EMT 2390L Lecture 8 Dr. Reyes Reference: The Linux Command Line, W.E. Shotts.
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.
Lesson 9-Setting and Using Permissions. Overview Describing file permissions. Using execute permissions with a file. Changing file permissions using mnemonics.
Process Control. Module 11 Process Control ♦ Introduction ► A process is a running occurrence of a program, including all variables and other conditions.
Guide to Linux Installation and Administration1 Chapter 4 Running a Linux System.
There are three types of users in linux  System users: ?  Super user: ?  Normal users: ?
L&T Infotech1 UNIX – Getting Started - Aneesh Ramani.
Chapter 3 & 6 Root Status and users File Ownership Every file has a owner and group –These give read,write, and execute priv’s to the owner, group, and.
EMT 2390L Lecture 9 Dr. Reyes Reference: The Linux Command Line, W.E. Shotts.
Processes Dr. Yingwu Zhu. Process Concept Process – a program in execution – What is not a process? -- program on a disk - a process is an active object,
Linux+ Guide to Linux Certification, Third Edition
Review Please hand in any homework and practicals Vim Scripting Inter-device communication.
Λειτουργικά Συστήματα - Lab1 Γιάννης Πετράκης. The Operating System  Unix is a layered operating system  The innermost layer is the hardware that provides.
Agenda Basic Unix Commands (Chapters 2 & 3) Miscellaneous Commands: which, passwd, date, ps / kill Working with Files: file, touch, cat, more, less, grep,
Linux Commands C151 Multi-User Operating Systems.
Tony Kombol.  man  on-line user manual  man command_you_want_info_on  type q to exit  examples:  for ls (list directory) ▪ man ls  for cp (copy)
Linux Processes Last Update Copyright Kenneth M. Chipps Ph.D. 1.
EMT 2390L Lecture 3 Dr. Reyes Reference: The Linux Command Line, W.E. Shotts.
A Mini UNIX Tutorial. What’s UNIX?  An operating system run on many servers/workstations  Invented by AT&T Bell Labs in late 60’s  There are many different.
CSC414 “Introduction to UNIX/ Linux” Lecture 3
Agenda Managing Processes (Jobs) Command Grouping Running jobs in background (bg) Bringing jobs to foreground (fg), Background job status (jobs) Suspending.
Agenda The Bourne Shell – Part I Redirection ( >, >>,
Linux Essentials Chapter 12: Creating Scripts. Chapter 12 Outline Beginning a shell script Using commands Using arguments Using variables Using conditional.
Using Linux Kaya Oğuz Room: 310.
Operating System Basics
SYSTEM ADMINISTRATION PART I by İlker Korkmaz and Kaya Oğuz
Development Environment Basics
CS306 Lab Workout 2 Fall 2017.
C151 Multi-User Operating Systems
Shell Script Assignment 1.
Basic UNIX OLC Training.
Introduction to UNIX.
The Linux Command Line Chapter 10
The Linux Command Line Chapter 24
Security and File Permission
The Linux Command Line Chapter 9
Working with Mac OS and Linux
Linux Filesystem Management
1.3 Given a scenario, apply appropriate Microsoft command line tools
The Linux Command Line Chapter 24
Presentation transcript:

EMT 2390L Lecture 5 Dr. Reyes Reference: The Linux Command Line, W.E. Shotts

Outline Ownership Change Mode Changing Identities Processes Environment Variables

Ownership Files permissions are divided in three levels: owner, group, everybody o ls -l id command is used to find out information about your identity o id

Change Mode chmod - change the mode or permissions of a file or directory Permissions represented using octal notation o > foo.txt o ls -l foo.txt o chmod 600 foo.txt o ls -l foo.txt o chmod 777 foo.txt o ls -l foo.txt

Changing Identities su command allows you to log in as another user o su – o su – username sudo command allows you to execute commands as a different user, usually a superuser in a controlled way o sudo chown command is used to change the owner of a file passwd command is used to change the password

Processes When the system starts, the kernel executes the init program init runs several shell scripts that start the services When a program launch another program, these are know as parent process and child process respectively. Each process is assigned a process ID (PID) ps – command used to view a snapshot of the processes o ps o ps x top – command used to view process dynamically o top

Controlling a Process Execute the following commands o xlogo o Ctrl + C o xlogo & o ps o jobs o fg %1 o Ctrl + Z o ps (Check the PID of xlogo) o kill PID (where PID is the Process ID of xlogo) o xlogo & o kiallall xlogo

Commands pstree – command used to display the processes parent/children relationship o pstree vmstat – outputs a snapshot of system resource usage including memory and disk o vmstat printenv – displays a list of the environment variables o printenv o printenv USER o printenv | grep USER o echo $USER

Important Environment Variables (cont.)

Important Environment Variables

Modifying the Environment Locate the configuration files that needs to be modify such as.bash_profile,.bashrc or.profile Create a backup Use a text editor, make the changes, and save them Use the command source followed by the name of the file you just changed to activate the changes o source.profile

Assignments Check the class OpenLab site for new Labs Check Blackboard for new Quizzes Midterm Review