Chapter 8 Files and User Information Utilities. Logical Partitions referred to as file systems like a drive in windows world $ df (display filesystems)

Slides:



Advertisements
Similar presentations
RH030 Linux Computing Essentials
Advertisements

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 -
It's a binary file kept under specific directory.
Chapter 2 Accessing Your System and the Common Desktop Environment.
Chapter 11 UNIX Printing. have to be root to setup a printer local printer is directly connected remote printer is a network printer print queue is nothing.
Chapter 4 Getting Help. Using CDE Help Help Manager – primary help tool SunSolve Online – Web-based online help from Sun Solaris Support – Web-based Sun.
Shell Basics CS465 - Unix. Shell Basics Shells provide: –Command interpretation –Multiple commands on a single line –Expansion of wildcard filenames –Redirection.
Chapter 10 File System Security. Security Policies security policies are doors maintain a balance between total access and total security UNIX has two.
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.
T UTORIAL OF U NIX C OMMAND & SHELL SCRIPT S 5027 Professor: Dr. Shu-Ching Chen TA: Samira Pouyanfar Spring 2015.
Lecture 02CS311 – Operating Systems 1 1 CS311 – Lecture 02 Outline UNIX/Linux features – Redirection – pipes – Terminating a command – Running program.
UNIX By Darcy Tatlock. 1. Successful Log Into Unix To actively manipulate your website you need to be logged in. Without being logged in you cannot enter.
Introduction to Linux and Shell Scripting Jacob Chan.
A crash course in njit’s Afs
L INUX C OMMAND L INE I NTERFACE G UNAANBAN.G
Workbook 3 Users and Groups
Filesystem Hierarchy Standard (FHS) –Standard of outlining the location of set files and directories on a Linux system –Gives Linux software developers.
Agenda User Profile File (.profile) –Keyword Shell Variables Linux (Unix) filters –Purpose –Commands: grep, sort, awk cut, tr, wc, spell.
Unix Basics Chapter 4.
The “File System” Under UNIX, (almost) everything is a “file”: –Normal files –Directories –Hardware –Sockets –Pipes Things that are not files: –Users –Groups.
– Introduction to the Shell 10/1/2015 Introduction to the Shell – Session Introduction to the Shell – Session 2 · Permissions · Users.
Title Slide CSS 404/504 The UNIX Operating System (2) By Ralph B. Bisland, Jr.
Adding New Users User as an entity - username(UID), GID. UID - typically a number for system to identify the user. GID – a number that recognizes a set.
Linux+ Guide to Linux Certification Chapter Four Exploring Linux Filesystems.
Linux+ Guide to Linux Certification, Third Edition
Working with Linux Lab 1 1. Login and logout Account – username & password – Note: Linux is case-sensitive Administrator: username = root Logout: exit,
Module 6 – Redirections, Pipes and Power Tools.. STDin 0 STDout 1 STDerr 2 Redirections.
Linux file system "On a UNIX system, everything is a file; if something is not a file, it is a process." Sorts of files (on a Linux system) Directories:
Files and Directories Copyright © Software Carpentry 2010 This work is licensed under the Creative Commons Attribution License See
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.
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.
Chapter Four I/O Redirection1 System Programming Shell Operators.
Administration Utilities Objectives –to use standard administration utilities Contents –manual pages –identifying your system –communicating with Users.
Unix Commands PowerPoint Presentation developed for LS 560 Information Technology online class - University of Alabama by Debey Sklenar TENacious Cohort.
UNIX An Introduction. Brief History UNIX UNIX Created at Bell Labs, 1969 Created at Bell Labs, 1969 BSD during mid 70s BSD during mid 70s AT&T began offering.
Introduction to Linux Instructor: Bennett M. Tanyag PART – 3 Unit 1.
Searching and Sorting. Why Use Data Files? There are many cases where the input to the program may come from a data file.Using data files in your programs.
Chapter 9 Using Text Editors. vi Editor visual Editor, ASCII text editor, no formatting capabilities almost as powerful as MS Word, has 26 clipboards.
Agenda Basic Unix Commands (Chapters 2 & 3) Miscellaneous Commands: which, passwd, date, ps / kill Working with Files: file, touch, cat, more, less, grep,
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)
Module 1 - Introduction to Linux. Users must log-in Linux is case sensitive File and Directories naming conventions (No spaces!) Files and Directories.
CSC414 “Introduction to UNIX/ Linux” Lecture 6. Schedule 1. Introduction to Unix/ Linux 2. Kernel Structure and Device Drivers. 3. System and Storage.
SUSE Linux Enterprise Desktop Administration Chapter 9 Manage Users, Groups, and Permissions.
Linux+ Guide to Linux Certification, Second Edition Chapter 4 Exploring Linux Filesystems.
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.
File Transfer Protocol (FTP) CIS 130. File Transfer Protocol (FTP) Copy files from one internet host (server) to your account on another host –Need domain.
 Last lesson, the Windows Operating System was discussed along with the Windows command shell  Unix is a computer operating system, that similarly manages.
1 CS3695 – Network Vulnerability Assessment & Risk Mitigation – Introduction to Unix & Linux.
Jozef Goetz, expanded by Jozef Goetz, 2008 Credits: Parts of the slides are based on slides created by UNIX textbook authors, Syed M. Sarwar, Robert.
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.
ORAFACT The Linux File System. ORAFACT Filesystem Support Support for dozens of filesystem types including: Minix, ext2, MS-DOS, UMSDOS, VFAT, NTFS, NFS,
Tutorial of Unix Command & shell scriptS 5027
Getting started with CentOS Linux
Linux 101 Training Module Linux Basics.
UBUNTU INSTALLATION
Shell Script Assignment 1.
Tutorial of Unix Command & shell scriptS 5027
Basic UNIX OLC Training.
Introduction to UNIX.
Tutorial of Unix Command & shell scriptS 5027
Unix Access Control Basic CE 2
FTP and UNIX TOPICS Exploring your Web Hosting Site FTP UNIX
(Chapter 2) John Carelli, Instructor Kutztown University
Tutorial of Unix Command & shell scriptS 5027
The Linux Command Line Chapter 9
Getting started with CentOS Linux
Tutorial Unix Command & Makefile CIS 5027
January 26th, 2004 Class Meeting 2
Presentation transcript:

Chapter 8 Files and User Information Utilities

Logical Partitions referred to as file systems like a drive in windows world $ df (display filesystems) shows your logical partitions most common are /usr, where binary and executables are stored /opt, where third party applications are usually located root (/), where the files that pertain to the operation of the system are kept

Finding Files -name filename -type filetype -mtime [+|-]n -atime [+|-]n -user loginid -group groupid -perm mode -size [+|-]n[c]

Finding Files

grep Command search for pattern "rose” inside of text file “flowers” $ grep rose flowers looks for who is on server by piping who output to pattern search for user2 $ who | grep user2

CDE Finding Files much like find on other GUI systems specify where you want to search what you want to search for criteria much the same as with command line - "content" criteria is like grep command

Sorting

who Command who by default displays information about all users currently logged on the local system lists user’s name, terminal, login time, elapsed time since the last activity on the terminal line, and the machine (host) name who -H prints headers above the info who -q only lists users currently logged on and the total number

Switching Users su (switch user) username switches to another user but doesn't change directory location if you're root, you don't need the password su - takes you into the user's environment - system reads new user's initialization files as administrator, you can experience trouble AS the user to help troubleshoot

User ID Real User ID (RUID) - initial login Effective User ID (EUID) - who you are after the switch who am i (only unix command with spaces in it) displays RUID with login info - if switched, still displays real user ID whoami displays only the login name of the EFFECTIVE user id displays the effective user name id -a identifies the effective user name, user ID, and user’s groups

Lab – File Processing Commands (find, grep, sort) Lab – User Identification Commands chapter 8 assessment Labs/Assessment

1. find any files in your home directory named dante: Chap 8 Exercises

1. find any files in your home directory named dante: $ find. -name dante./dante $ find ~/ -name dante /export/home/user2/dante Chap 8 Exercises

2. look in this file: /etc/passwd for user2 home directory info Chap 8 Exercises

2. look in this file: /etc/passwd for user2 home directory info $ grep user2 /etc/passwd user2:x:1001:10::/export/home/user2:/bin/ksh Chap 8 Exercises

3. sort the output of the long listing of your home directory Chap 8 Exercises

3. sort the output of the long listing of your home directory $ ls -l | sort Chap 8 Exercises