Isecur1ty training center Presented by : Eng. Mohammad Khreesha.

Slides:



Advertisements
Similar presentations
Learning Unix/Linux Bioinformatics Orientation 2008 Eric Bishop.
Advertisements

EMT 2390L Lecture 4 Dr. Reyes Reference: The Linux Command Line, W.E. Shotts.
Alford Academy Business Education and Computing1 Advanced Higher Computing Based on Heriot-Watt University Scholar Materials File Handling.
Lab6 CPCS361 I.Mona Alshehri. Working with Files and Directories Creating files Create a file with the cat command type the command cat > name_of_file.
UNIX Chapter 09 Basic File Processing Mr. Mohammad Smirat.
Linux+ Guide to Linux Certification, Second Edition
A.How to create string controls and indicators B.Some string functions C.How to perform file input and output operations D.How to format text files for.
CIS 240 Introduction to UNIX Instructor: Sue Sampson.
Chapter 6 Basic Directory and File Management. Command Line Control Characters Control-s - Stops screen output - rarely used Control-q - Resumes screen.
Lecture 01CS311 – Operating Systems 1 1 CS311 – Lecture 01 Outline Course introduction Setting up your system Logging onto the servers at OSU with ssh.
MICROSOFT – WORD. WORD... text entry f formatting spell check bulleting numbering t tables and much more.
Grep, comm, and uniq. The grep Command The grep command allows a user to search for specific text inside a file. The grep command will find all occurrences.
CSCI 330 T HE UNIX S YSTEM File operations. OPERATIONS ON REGULAR FILES 2 CSCI The UNIX System Create Edit Display Contents Display Contents Print.
Unix Filters Text processing utilities. Filters Filter commands – Unix commands that serve dual purposes: –standalone –used with other commands and pipes.
CS 141 Labs are mandatory. Attendance will be taken in each lab. Make account on moodle. Projects will be submitted via moodle.
"Two of the most famous products of Berkeley are LSD and Unix. I don't think that this is a coincidence.” Anonymous.
Advanced File Processing
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”
Aloha Aloha What you see: What the computer sees: binary number columns binary number columns
Air Defense System S.E.U. COSC513 Operating System Id:98392 Name: Liang-Chen CHANG.
Linux environment ● Graphical interface – X-window + window manager ● Text interface – terminal + shell.
Agenda User Profile File (.profile) –Keyword Shell Variables Linux (Unix) filters –Purpose –Commands: grep, sort, awk cut, tr, wc, spell.
Chapter Four UNIX File Processing. 2 Lesson A Extracting Information from Files.
Introduction to Unix (CA263) File Processing. Guide to UNIX Using Linux, Third Edition 2 Objectives Explain UNIX and Linux file processing Use basic file.
CS 497C – Introduction to UNIX Lecture 7: General-Purpose Utilities Chin-Chih Chang
Session 3 Process and organize data 1. Terminology 2 For a list of computer and internet terminology, please see the.
Chapter 3: The UNIX Editors ASCII and vi Editors.
Linux+ Guide to Linux Certification, Third Edition
Isecur1ty training center Presented by : Eng. Mohammad Khreesha.
McGraw-Hill/Irwin The Interactive Computing Series © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft Excel 2002 Lesson 1 Introduction.
Week 3 Exploring Linux Filesystems. Objectives  Understand and navigate the Linux directory structure using relative and absolute pathnames  Describe.
Module 6 – Redirections, Pipes and Power Tools.. STDin 0 STDout 1 STDerr 2 Redirections.
Isecur1ty training center Presented by : Eng. Mohammad Khreesha.
Introduction to UNIX Geraint Vaughan. What is UNIX? Command-line operating system (not point- and click) Designed for ‘experts’ Lots of different variants.
Chapter 9 Basic File Processing. Displaying File Contents cat, cat w/append tac nl pr more less head tail.
Introduction to Excel The Basics of Microsoft Excel 2010.
Chapter Five Advanced File Processing. 2 Lesson A Selecting, Manipulating, and Formatting Information.
Text Editing February 2 nd, 2004 Class Meeting 3.
1May 16, 2005 Week 2 Lab Agenda Command Line FTP Commands Review More UNIX commands to learn File name expansion - * Introduction of vi.
Isecur1ty training center Presented by : Eng. Mohammad Khreesha.
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.
Agenda Basic Unix Commands (Chapters 2 & 3) Miscellaneous Commands: which, passwd, date, ps / kill Working with Files: file, touch, cat, more, less, grep,
Chapter 14 Formatting Readable Output. Chapter Objectives  Add a column heading with a line break to a report  Format the appearance of numeric data.
 Structure charts (last lesson)  Screen and page layout diagrams provide  A sketch of each page (screen) of the program  A list of the content, including.
1 Lecture 4 Post-Graduate Students Advanced Programming (Introduction to MATLAB) Code: ENG 505 Dr. Basheer M. Nasef Computers & Systems Dept.
Programming Fundamentals. Today’s Lecture Multidimensional Arrays Arrays as Class Member Data Arrays of Objects C-Strings.
Isecur1ty training center Presented by : Eng. Mohammad Khreesha.
CMPS 1371 Introduction to Computing for Engineers CHARACTER STRINGS.
Command Prompt Chapter 9 Pipes, Filters, and Redirection ©Richard Goldman 11/30/2000 Revised 10/16/2001.
Isecur1ty training center Presented by : Eng. Mohammad Khreesha.
Linux+ Guide to Linux Certification, Second Edition Chapter 4 Exploring Linux Filesystems.
Linux Stuff Last Update Copyright 2014 Kenneth M. Chipps Ph.D. 1.
A Brief Overview of Unix Brandon Bohrer. Topics What is Unix? – Quick introduction Documentation – Where to get it, how to use it Text Editors – Know.
CIT 140: Introduction to ITSlide #1 CSC 140: Introduction to IT File Processing.
Comp 335 – File Structures Hexadecimal Dumps Interpreting File Contents.
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.
Learning Unix/Linux Based on slides from: Eric Bishop.
File I/O. I/O Flags Flags are passed to give some information about how the file is to be used. – Read only file – flag=0x0 – Write only file – flag=0x1.
Getting started with CentOS Linux
Chapter 11 Command-Line Master Class
Linux 101 Training Module Linux Basics.
Some Linux Commands.
Chapter 6 Filters.
CS 301 Fall 2001 – Chapter 3 Slides by Prof. Hartman, following “IBM PC Assembly Language Programming” by Peter Abel 9/17/2018.
The Linux Command Line Chapter 6
تكملة الوحدة الاولى الفصل الثاني بالكتاب للاطلاع ثم الفصل الثالث التخطيط لبناء الاختبارات التحصيلية الفصل الثالث من الكتاب (87-164)
Chapter Four UNIX File Processing.
Getting started with CentOS Linux
Presentation transcript:

isecur1ty training center Presented by : Eng. Mohammad Khreesha

 Introduction  head  tail  cat  tac  more and less  strings

 In this lesson we will look at the contents of text files with head, tail, cat, tac, more, less and strings.

 You can use head to display the first ten lines of a file.  head /etc/passwd  The head command can also display the first n lines of a file.  head -4 /etc/passwd  Head can also display the first n bytes.  head -c4 /etc/passwd

 Similar to head, the tail command will display the last ten lines of a file.  tail /etc/services  You can give tail the number of lines you want to see.  Tail -3 /etc/services

 The cat command is one of the most universal tools. All it does is copy standard input to standard output.  cat /etc/resolv.conf  cat is short for concatenate. One of the basic uses of cat is to concatenate files into a bigger file.  cat part1 part2 part3  You can use cat to create flat text files.  cat > outfile.txt  cat can be used to copy files  cat file1.txt > file2.txt

 The purpose of tac is the opposite of cat.  Example :  cat /etc/passwd  tac /etc/passwd

 The more command is useful for displaying files that take up more than one screen.  More will allow you to see the contents of the file page by page. Use the space bar to see the next page, or q to quit.  Some people prefer the less command to more.

 With the strings command you can display readable ascii strings found in (binary) files.  strings is mainly useful for determining the contents of non-text files.  Example:  strings /bin/ls

The End