Linux - Ubuntu LECTURE TWO. Objective: Enable students to understand the practical side of Linux operating system. Understand and implement the following.

Slides:



Advertisements
Similar presentations
Unix. Outline Commands Environment Variables Basic Commands CommandMeaning lslist files and directories ls -alist all files and directories mkdirmake.
Advertisements

NETW-240 Shells Last Update Copyright Kenneth M. Chipps Ph.D. 1.
Working with Files How to create, view, copy, rename and print files.
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.
Cosc 4750 Getting Started in UNIX Don’t be afraid of the prompt, in linux it can be your best friend. In some cases, the only way to do certain things.
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.
Guide To UNIX Using Linux Third Edition
L INUX C OMMAND L INE I NTERFACE G UNAANBAN.G
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.
Chapter Five Maintaining a Computer Part III: File and Folder Management.
1 Day 3 Directories Files Moving & Copying. 2 Case Sensitive First thing to learn about UNIX is that everything is case sensitive. Thus the files: –enda.
Chapter 6: Managing Your Data The Windows XP File System File system task on DOS or UNIX Vs. Windows XP –cd or chdir would change your current directory.
1 THE UNIX FILE SYSTEM By Chokechai Chuensukanant ID COSC 513 Operating System.
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”
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.
CHAPTER 1 UNIX FOR NONPROGRAMMERS By U ğ ur Halıcı.
Linux Directory Navigation. File & Directory Commands This is a minimal list of Unix commands that you must know for file management: ls (list) mkdir.
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.
Guide To UNIX Using Linux Fourth Edition
Cmsc 312 Operating Systems. UNIX? DOS – PC? VAX/VMS - mainframe Unix – PC, workstation, mainframe 1970 bell Lab For computer scientist? Why popular? Free.
Session 2 Wharton Summer Tech Camp Basic Unix. Agenda Cover basic UNIX commands and useful functions.
1 Operating Systems and Using Linux Topics What is an Operating System? Linux Overview Frequently Used Linux Commands Some content in this lecture added.
1 Operating Systems and Using Linux Topics What is an Operating System? Linux Overview Frequently Used Linux Commands Reading None.
Lesson 2-Touring Essential Programs. Overview Development of UNIX and Linux. Commands to execute utilities. Communicating instructions to the shell. Navigating.
Managing Files. Module 5 Managing Files ♦ Introduction “On a Linux system, everything is a file; if something is not a file, it is a process.” ♦ Topics.
Introduction to UNIX Geraint Vaughan. What is UNIX? Command-line operating system (not point- and click) Designed for ‘experts’ Lots of different variants.
Welcome to CS323 Operating System lab 1 TA: Nouf Al-Harbi NoufNaief.net.
E-module for UNIX Author: Jon Kleppe NTNU Assistant producer: Joachim Tro.
Lecture One. Objective: Provide description of the Command-Line Editor of Linux operating system. Enable students to understand the practical side of.
Lecture Three. Objective: Enable students to understand the practical side of Linux operating system. Understand and implement the following commands:
E X C E E D I N G E X P E C T A T I O N S Basic LINUX Linux System Administration Dr. Hoganson Kennesaw State University Operating Systems Directory structure:
Linux Lecture #02. File Related Commands cat --Concatenate and print (display) the content of files. --Also used to create a new file. Syntax cat [Options]
Linux Commands C151 Multi-User Operating Systems.
Files and Directories in UNIX The first file in UNIX file system is “root” or “/”
Linux A practical introduction. 1)Background and Getting Started Linux is an operating system with multiple providers Red Hat/CentOS (our version) Ubuntu.
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.
Learning basic Unix command It 325 operating system.
Operating Systems and Using Linux Courtesy of John Y. Park 1.
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.
CS 120 Extra: The CS1 Server Tarik Booker CS 120.
Learning Unix/Linux Based on slides from: Eric Bishop.
IST 222 Day 6. DOS Naming Conventions A filename contains up to 8 characters, a separating period, and a file extension of up to three characters This.
Operating systems Lecture #3 Modern OS characteristics.
1 Linux Commands. 2 Path You specify a file or directory by its path name:  the full, or absolute, path name or the one relative to a location. The full.
UNIX  Portable (common to many computer architectures), multitasking, multi-user operating system  Introduced by Bell labs in mid-1960’s  Thus, much.
CMSC 104, Version 9/011 Operating Systems and Using Linux Topics What is an Operating System? Linux Overview Frequently Used Linux Commands Reading None.
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.
Prepared by: Eng. Maryam Adel Abdel-Hady
Andy Wang Object Oriented Programming in C++ COP 3330
Some Linux Commands.
C151 Multi-User Operating Systems
Useful Linux Commands.
Lecture #3 Modern OS characteristics
Lecture #3 Modern OS characteristics
Operating Systems and Using Linux
Operating Systems and Using Linux
The Unix File System.
Andy Wang Object Oriented Programming in C++ COP 3330
UNIX/LINUX Commands Using BASH Copyright © 2017 – Curt Hill.
Tutorial Unix Command & Makefile CIS 5027
The Linux Command Line Chapter 4
Yung-Hsiang Lu Purdue University
Using Linux Command 3 Lab#6.
The Linux Command Line Chapter 4
Presentation transcript:

Linux - Ubuntu LECTURE TWO

Objective: Enable students to understand the practical side of Linux operating system. Understand and implement the following commands:  echo and wc commands.  cat and more commands.  find command.  mv command.  rm and rmdir commands.

echo and wc commands 10)- The echo command: The ECHO command redirected the output to file you specify. Create an empty file called testfile by redirecting a blank echo command.

echo and wc commands 11)- The wc Command Using this command, you can quickly summarize the number of lines, words, and characters in a text file. You can use it like this: This tells you that document has 1 line, 2 words, and 9 characters.

The cat and more commands. 12) The cat command: The cat command takes a file and outputs it to the screen. To use it, enter a command such as the following:

The cat and more commands. 13) The more command: The more command is very useful for paging through text files that have more lines than can be displayed in the Terminal window. To use it, you enter the command’s name followed by the name of the file to view, like this: more testfile

The find command. 14)- The find command: There are thousands of files in an Ubuntu installation (if not hundreds of thousands. you can find almost any file within a few seconds. The program supports many options, but at its most basic you use it by entering a command such as this: find / -name blackjack

The mv command. 15) The mv command: Ubuntu considers renaming and moving items to be equivalent. If you rename a file, Ubuntu treats it as if you have moved it to a new location comprising the current folder and the new filename. Therefore, unlike DOS, instead of having both a MOVE and a RENAME command, Ubuntu provides just the mv command. Rename or move the file or folder fname1 to fname2

The rm and rmdir commands. 16) The rm command: To delete a file or folder, use the rm command, which stands for remove. For example, to erase the file file_2 in the current folder, use this command:

The rm and rmdir commands. 17) The rmdir command:  You can also delete an empty folder using rmdir.  Remove folder if it is empty (this will fail if folder contains any files or subfolders).

Conclusion: Learn Linux commands. Understand and implement the echo, wc, cat, more, find, mv, rm, rmdir commands.