Std: XI CHAPTER-3 LINUX
|
|
- Juliana Daniel
- 6 years ago
- Views:
Transcription
1 Commands: General format: Command Option Argument Command: ls - Lists the contents of a file. Option: Begins with minus sign (-) ls a Lists including the hidden files. Argument refers to the name of a file-.(dot). Path Name (Identifies the target file) Path for BIN {/bin- The first slash refers to the root directory} {/usr/bin} TWO TYPES OF PATH NAME Absolute path name [complete path] Relative path name Path names for job directory {/home/kumaran/personal/job}-absolute {/personal/job}-relative Identifying the path of working directory: pwd command Path of working directory Present working directory Print working directory [ilamathi@localhost ilamathi]$ pwd /home/ilamathi Changing the current directory: Current user ilamathi wants to switch over from home directory to the bin directory. The steps are [ilamathi@localhost ilamathi]$ pwd Page 1 of 12
2 /home/ilamathi ilamathi]$ cd/usr/bin ilamathi]$ pwd /usr/bin To change from current directory to parent directory give (cd..) command at the $ prompt. [ilamathi@localhost bin]$ cd.. [ilamathi@localhost/usr]$ pwd /usr NOTE: The cd command without any path name will always take the user to his /her home Directory The Tilde Sign (~) (Substitute for home directory) 1. Kumaran is currently in the directory /usr/bin wants to go to his personal directory.the easiest way to achieve this is the use of tilde sign and /personal. [kumaran@localhost bin]$ ~/personal /home/kumaran/personal [kumaran@localhost personal]$ cd ~ [kumaran@localhost kumaran]$ pwd /home/kumaran 2. Kumaran is in personal directory and he wants to go to his health directory [kumaran@localhost personal]$ cd.. /health [kumaran@localhost health]$ pwd /home/kumaran/health. Subdirectory- Directory under another directory Creating a Directory(mkdir): [kumaran@localhost health]$ mkdir insurance A new directory named insurance is created Removing a Directory (rmdir): [kumaran@localhost health]$ rmdir insurance A directory named insurance is removed Conditions for removing a directory The directory should be empty Should not be the working directory Page 2 of 12
3 Listing the contents of a directory: Kumaran wants to know the names of files and subdirectories of /home/kumaran [kumaran@localhost kumaran]$ ls /home/kumaran Health cprogramming c++programming personal [kumaran@localhost kumaran]$ ls F. Health/c programming/c++ programming/personal/. F adds slash at the end of the directories and subdirectories. l gives information about the files. Other Commands: The clear command clears the screen The same thing is done by tput clear command also The command tput cup will position the cursor at row 20,column 20 Extracting the Help: Use of man command will lead us to know about the particular command $ man ls {help for ls command} The Echo Command: Displays a message to the user $ echo n Please enter your name.-n places the cursor in same line. File Commands: Cat-displays the contents of a file If the file is too lengthy, more command is used to show one page at a time Press f to move forward and b to move backward The tee command does double the work of cat command. It is just like Tpipe It takes the input from standard input and displays the contents on screen Stores the same in the file specified The LINUX files are arranged in a continuous stream of bytes Input data stream-standard input Output data stream-standard output Input: $ cat file 1 Output: contents of file 1 Input: $ more file 1 Output: contents of file 1 page by page Page 3 of 12
4 Redirection and Piping: 1. $ cat file 1 > file 2: copies the contents of file 1into file 2 where file 2 is empty If file 2 exists then its destroys file 2 and copies the contents of file 1 2. $ cat file 1 > file 1: copies file 1 into file 1 since file 1 exists and the right hand side is executed first, file 1 is destroyed. Then, left hand side is executed. Noclobber: Prevents overwriting an existing file by redirection operation Append (>>): To overcome the difficulty of overwriting the existing file, append operator is used. Example: $ cat file 1 >> file 2: appends the contents of file 1 to file 2 without overwriting. Standard Input: Commands receive data from the standard input. It is either connected to device or to file. By default, it is connected to the device KEYBOARD. The characters typed into the keyboard are taken to the standard input and then directed to the command. $ cat (without any argument): This command expects data from the standard input KEYBOARD. Ctrl + D: End of file work. $ cat > file (standard input redirection operator) Message Ctrl + D $ cat > file 3: The typed in material will be redirected to the cat command through the standard input and this is sent to the file after the > symbol. Input Redirection Operator (<): $ cat < file 3 In order to make the cat command to get data from the file 3 (not from keyboard), the command used is $ cat < file 3. Since there is no > symbol, the message is sent to the screen. If the standard input is to be redirected to receive its data from file 3 and the standard output is to be redirected to place the data in file 4, the command used is, $ cat < file 3 > file 4. Piping ( ): Page 4 of 12
5 Redirection operator works only on files. If you want to send the output of one command to another command, pipe is the only command used. Godown -> Carpenter -> Painter -> Godown Wood -> Chairs -> Painter chairs -> Godown Here, the chairs are taken to the painter through conveyor belts. And then to godowns through lorries. The action of conveyor belt is piping and that of lorry is redirection File is storage medium to store data. Command is a program or set of instructions. You can save data into or retrieve data from a file. A command may read from or save data into a file but command itself cannot store the data. Redirection simply places the output in a file but piping sends the output to another command. 1. $ cat file 3 lpr: The cat command gets the contents of the file 3 and sends it to the standard output. The output is piped to the lpr (line print). The lpr takes the standard output as the input and sends it to the printer. Thus pipes receive data from the command placed before the pipe and send it to the command placed after pipe. 2. $ cat n file 3 lpr: The cat command with n option sends the contents of file 3 to the standard output after numbering each line 3. $ cat file 3 more: Used if the length of the contents is large 4. $ cat file 1 file 2 file 3 more: displays the contents of more than one file with the line numbers. Each file is separated by a space and no comma is used. Sort Command This command sorts each line of the given file alphabetically and sends the sorted version to the standard output $ sort file 3 more $ sort file 3 cat - more $ sort file 3 cat n lpr $ sort file 5 tee file 6 : copies file 5 to file 6 but also displays the contents of file 5 on screen. $ sort file 5 tee s file 5 : sorted contents of file 5 can be copied into another file and displayed on screen. Here, s file 5 is the sorted file of file 5. The sorted file s file 5 is displayed on screen $ sort file 5 tee s file 5 lpr : sort - copy print Copying file: $ cp [options] < source file < destination > Page 5 of 12
6 $ cp file 1 file 6: copies the contents of file 1 to file 6. Option I in the above command is used for getting a warning from the system before over writing so that you can stop copying process. Input: $ cp i file 1 file 2 Output: overwrite file 2? n $ $ cp r alpha alpha 1 Copy a directory recursively using cp command with the r option -s option creates a symbolic link -v explains in detail what is being done. Removing file: $ rm file 1 file 2: file1, file 2 are removed in current directory $ rm r alpha : removes alpha 1 directory along with sub directories. Wild Cards: $ ls : all files $ ls *.c: list on files only with extn.c $ ls doc[12]: list files that start with doc and end with either 1 or 2 $ ls char? :? fixes number of characters. $ doc [1-5] doc [1-g] : specifies ranges. Edit Commands: Edit command line with the help of Left arrow (ctrl + B) Right arrow (ctrl + F) Back space (ctrl + H) Delete (Erase a char) Deletes a line (ctrl + U) Can enter more than one command in a same line but separate them by a semicolon. Moving and renaming files: mv [option] <source> <destination> Move mv command is used to move or rename a file $ mv temp temporary: Renames temp as temporary. Viewing system date and time: Refer page 155, 156. File Systems Mount and Unmount: Page 6 of 12
7 Establishing the connection between file system on a storage device and your main directory tree is calling mounting the device. This is done by Mount command. Here the command line prompt changes from $ to # Mount has two parameters. Storage device and Directory Device is a special device file that connects your system to the hardware device. Syntax: # mount device destination. E.g. for mount: # mount /dev/fd0/destination Device files are located in the /dev directories Fd0: first floppy disk drive Fd1: Second floppy disk drive Hda1: hard disk drive, first partition on the first hard drive. E.g. for Unmount: # unmount/dev/fd0 Unmount floppy disk mounted to the /destination directory Note: You can never unmount file system that you are currently working in. Mounting and formatting floppy disk: Mount: # mount/dev/fd0/mnt/floppy # unmount/dev/fd0 (or) #unmount/mnt/floppy, #mount/mnt/floppy Mkfs: makes formatting, commands (formats a floppy) Mounting- CD ROMs # mount/mnt/cdrom # unmount/mnt/cdrom # mount/dev/hdc/destination Vi Editor: Editors are used for creating, deleting and editing the files. The two types of editors are Ed (line editors) and VI (visual editors). Editors use keyboard for two main purposes. 1. To specify editing commands 2. To receive character input. Page 7 of 12
8 The keys used are the alphabetic character keys, function keys and control keys. Editors in linux use minimum number of keys. They are the alphabetic characters, control characters, ESC key and Enter key. The modes of VI editor are command mode and input mode. Command mode: The key (x) acts as delete key and erases a character where the cursor is on. Input mode: The same key (x) simply adds x to file. ESC keys help to check in which mode we are working. If already in command mode, no beep sound is heard. Beep sound indicates that we are in command mode at present but before in input mode. Creating, editing, saving, and quitting a file in VI: $ vi filename: edit/create a new file with the given filename If the file exists, the contents of file is listed page by page, otherwise empty screen is screen. Press a, I, or o: You will be taken to the input mode. After entering data, press ESC key. It will take you to command mode. Press upper case ZZ which saves your file and then exits vi editor. Press ESC key to change the command mode and press : to go to the line editing mode. Press w. This action saves the file and returns to command mode. The command :w (filename) is equivalent to save as in other word processors. $ vi (Creates a file without name) :w some name will save the file untitled 1. [contents of the buffer are copied into some name file] Clash of file name will not be tolerated. If a file exists already, the name will be rejected. We have to try with another name. Quit vi editor: q [takes to the shell] q! [out of vi editor without saving the saves] Moving keys: h - Left arrow j- Down arrow l- Right arrow k- up arrow Ctrl + F - moves the screen forward Ctrl + B - moves the screen backward Line number G: (Some line number) G: Takes you to the particular line. Simply G moves to the end of a file. Page 8 of 12
9 Word wrap: : set wm=col no.: Sets word wrap margin. Std: XI CHAPTER-3 LINUX Commands for inserting text: The lower case (a) key enters text input mode and appends the text after the cursor. The lower case (i) key enters text input mode and appends the text after the cursor. The lower case (o) key enters text input mode by opening a new line immediately below the current line Commands for Deleting text: x- deletes the current character dd- delete the current line nx- delete n characters from current position ndd- deletes n lines starting from the line where the cursor is on or erased. undo: press n (Undo last modification) Break a line: Press Enter key into the input mofe Press upper case (J) key to join two lines Moving: ndd delete n nos of lines p- insert deleted line (paste) Copying: yy- copies a line nyy- copies n lines fom the cursor into the buffer p- Similar to (xv paste) Searching: /-allows to search the pattern forward?.. allows to search the pattern backward. Changing: cc change entire contents of a line r - replace the current character R allows you to overwrite text cw- allows to change a word dw- allows to delte a word. Page 9 of 12
10 Shell Script: It is a text file that contains linux commands. A shell script is handy as you need to enter the command only once. Shell script allows input/output operations and manipulation of variables. Executing shell script when you logon to the linux system, you get a copy of the shell to work with. This shell is known as login shell. Default shell is BASH shell. It has the capabilities of the programming languages. Creating a shell: By giving sh command in the command prompt, a new shell is created. This new shell is known a sub shell or child shell of the current shell, which can be used to execute a shell script. You will have read and write privileges but execute permission is not granted immediately. Execute/Run a shell program: $ sh file name $. file name If you want to run a shell script directly at $ prompt, you can change FAP ( File access permission) by granting execute permission. This is done using chmod command $ chmod u + x edufile $ edufile +x with chmod gives the execute permission to any user u + x : Owner of file gets the execute permission Variables: They are place holders to store values. All linux variables are treated as character strings. Mathematical operations can be done using expr and let commands. Rules for creating variables: refer page 173 Syntax for creating variables: <variable _name> = <value> Name = Ezhil Name = Ezhil Name =Ezhil (The quotes are optional) Referencing Variables: $ symbol is need to refer the contents of a variable Page 10 of 12
11 var1=${var2}, var1, var2 are memory locations ${var2} command extracts the value found in that location Concatenation: If you want to concatenate the contents of one variable with another value, the braces are essential $ son1=$ {father} son, where father =john; add son to john. Store the result in son1. Reading a value into variable: echo Please enter your name -> prints string on screen Expressions: expr, let commands $ expr displays 72 on screen $ let <value1><operator><value2> $% let pr = 5*10 echo The product of $pr Output: The product is 50 Command Substitution: $ date - Access current date of the system. echo Today s date is date + %D, mm/dd/yy Command substitution can also be used to store the output of a command in a variable: cfiles= ls*.c\wc-l cfiles Variables contains the no of files in the current directory where names end with.c Output to be stored in variable using command substitution: $ var1=5 $ var1= expr $var assigns 25 to var1 Page 11 of 12
12 . Page 12 of 12
Chapter Two. Lesson A. Objectives. Exploring the UNIX File System and File Security. Understanding Files and Directories
Chapter Two Exploring the UNIX File System and File Security Lesson A Understanding Files and Directories 2 Objectives Discuss and explain the UNIX file system Define a UNIX file system partition Use the
More information5/8/2012. Creating and Changing Directories Chapter 7
Creating and Changing Directories Chapter 7 Types of files File systems concepts Using directories to create order. Managing files in directories. Using pathnames to manage files in directories. Managing
More informationMills HPC Tutorial Series. Linux Basics I
Mills HPC Tutorial Series Linux Basics I Objectives Command Line Window Anatomy Command Structure Command Examples Help Files and Directories Permissions Wildcards and Home (~) Redirection and Pipe Create
More informationIntroduction to UNIX. Logging in. Basic System Architecture 10/7/10. most systems have graphical login on Linux machines
Introduction to UNIX Logging in Basic system architecture Getting help Intro to shell (tcsh) Basic UNIX File Maintenance Intro to emacs I/O Redirection Shell scripts Logging in most systems have graphical
More informationUnix File System. Learning command-line navigation of the file system is essential for efficient system usage
ULI101 Week 02 Week Overview Unix file system File types and file naming Basic file system commands: pwd,cd,ls,mkdir,rmdir,mv,cp,rm man pages Text editing Common file utilities: cat,more,less,touch,file,find
More informationWeek Overview. Unix file system File types and file naming Basic file system commands: pwd,cd,ls,mkdir,rmdir,mv,cp,rm man pages
ULI101 Week 02 Week Overview Unix file system File types and file naming Basic file system commands: pwd,cd,ls,mkdir,rmdir,mv,cp,rm man pages Text editing Common file utilities: cat,more,less,touch,file,find
More informationCSCI 2132 Software Development. Lecture 4: Files and Directories
CSCI 2132 Software Development Lecture 4: Files and Directories Instructor: Vlado Keselj Faculty of Computer Science Dalhousie University 12-Sep-2018 (4) CSCI 2132 1 Previous Lecture Some hardware concepts
More informationIntroduction p. 1 Who Should Read This Book? p. 1 What You Need to Know Before Reading This Book p. 2 How This Book Is Organized p.
Introduction p. 1 Who Should Read This Book? p. 1 What You Need to Know Before Reading This Book p. 2 How This Book Is Organized p. 2 Conventions Used in This Book p. 2 Introduction to UNIX p. 5 An Overview
More informationEssential Unix (and Linux) for the Oracle DBA. Revision no.: PPT/2K403/02
Essential Unix (and Linux) for the Oracle DBA Revision no.: PPT/2K403/02 Architecture of UNIX Systems 2 UNIX System Structure 3 Operating system interacts directly with Hardware Provides common services
More informationTHE HONG KONG POLYTECHNIC UNIVERSITY Department of Electronic and Information Engineering
THE HONG KONG POLYTECHNIC UNIVERSITY Department of Electronic and Information Engineering ENG224 Information Technology Part I: Computers and the Internet Laboratory 2 Linux Shell Commands and vi Editor
More informationGetting Started with UNIX
Getting Started with UNIX What is UNIX? Boston University Information Services & Technology Course Number: 4000 Course Instructor: Kenny Burns Operating System Interface between a user and the computer
More informationh/w m/c Kernel shell Application s/w user
Structure of Unix h/w m/c Kernel shell Application s/w. user While working with unix, several layers of interaction occur b/w the computer h/w & the user. 1. Kernel : It is the first layer which runs on
More informationUnix File System. Class Meeting 2. * Notes adapted by Joy Mukherjee from previous work by other members of the CS faculty at Virginia Tech
Unix File System Class Meeting 2 * Notes adapted by Joy Mukherjee from previous work by other members of the CS faculty at Virginia Tech Unix File System The file system is your interface to: physical
More informationUnix/Linux Basics. Cpt S 223, Fall 2007 Copyright: Washington State University
Unix/Linux Basics 1 Some basics to remember Everything is case sensitive Eg., you can have two different files of the same name but different case in the same folder Console-driven (same as terminal )
More informationGetting Started. Running Utilities. Shells. Special Characters. Special Characters. Chapter 2 Unix Utilities for non-programmers
Chapter 2 Unix Utilities for non-programmers Graham Glass and King Ables, UNIX for Programmers and Users, Third Edition, Pearson Prentice Hall, 2003. Original Notes by Raj Sunderraman Converted to presentation
More informationChapter-3. Introduction to Unix: Fundamental Commands
Chapter-3 Introduction to Unix: Fundamental Commands What You Will Learn The fundamental commands of the Unix operating system. Everything told for Unix here is applicable to the Linux operating system
More informationUNIX System Programming Lecture 3: BASH Programming
UNIX System Programming Outline Filesystems Redirection Shell Programming Reference BLP: Chapter 2 BFAQ: Bash FAQ BMAN: Bash man page BPRI: Bash Programming Introduction BABS: Advanced Bash Scripting Guide
More informationOutline. Structure of a UNIX command
Outline Structure of Unix Commands Command help (man) Log on (terminal vs. graphical) System information (utility) File and directory structure (path) Permission (owner, group, rwx) File and directory
More informationUnix Filesystem. January 26 th, 2004 Class Meeting 2
Unix Filesystem January 26 th, 2004 Class Meeting 2 * Notes adapted by Christian Allgood from previous work by other members of the CS faculty at Virginia Tech Unix Filesystem! The filesystem is your interface
More informationIntroduction to Unix: Fundamental Commands
Introduction to Unix: Fundamental Commands Ricky Patterson UVA Library Based on slides from Turgut Yilmaz Istanbul Teknik University 1 What We Will Learn The fundamental commands of the Unix operating
More information5/20/2007. Touring Essential Programs
Touring Essential Programs Employing fundamental utilities. Managing input and output. Using special characters in the command-line. Managing user environment. Surveying elements of a functioning system.
More informationWeek 2 Lecture 3. Unix
Lecture 3 Unix Terminal and Shell 2 Terminal Prompt Command Argument Result 3 Shell Intro A system program that allows a user to execute: shell functions (e.g., ls -la) other programs (e.g., eclipse) shell
More informationLinux Command Line Primer. By: Scott Marshall
Linux Command Line Primer By: Scott Marshall Draft: 10/21/2007 Table of Contents Topic Page(s) Preface 1 General Filesystem Background Information 2 General Filesystem Commands 2 Working with Files and
More informationLinux Shell Script. J. K. Mandal
Linux Shell Script J. K. Mandal Professor, Department of Computer Science & Engineering, Faculty of Engineering, Technology & Management University of Kalyani Kalyani, Nadia, West Bengal E-mail: jkmandal@klyuniv.ac.in,
More information5/8/2012. Exploring Utilities Chapter 5
Exploring Utilities Chapter 5 Examining the contents of files. Working with the cut and paste feature. Formatting output with the column utility. Searching for lines containing a target string with grep.
More informationCHE3935. Lecture 1. Introduction to Linux
CHE3935 Lecture 1 Introduction to Linux 1 Logging In PuTTY is a free telnet/ssh client that can be run without installing it within Windows. It will only give you a terminal interface, but used with a
More informationA Brief Introduction to the Linux Shell for Data Science
A Brief Introduction to the Linux Shell for Data Science Aris Anagnostopoulos 1 Introduction Here we will see a brief introduction of the Linux command line or shell as it is called. Linux is a Unix-like
More informationcommandname flags arguments
Unix Review, additional Unix commands CS101, Mock Introduction This handout/lecture reviews some basic UNIX commands that you should know how to use. A more detailed description of this and other commands
More informationOverview of the UNIX File System
Overview of the UNIX File System Navigating and Viewing Directories Adapted from Practical Unix and Programming Hunter College Copyright 2006 Stewart Weiss The UNIX file system The most distinguishing
More informationPerl and R Scripting for Biologists
Perl and R Scripting for Biologists Lukas Mueller PLBR 4092 Course overview Linux basics (today) Linux advanced (Aure, next week) Why Linux? Free open source operating system based on UNIX specifications
More informationExamples: Directory pathname: File pathname: /home/username/ics124/assignments/ /home/username/ops224/assignments/assn1.txt
ULI101 Week 03 Week Overview Absolute and relative pathnames File name expansion Shell basics Command execution in detail Recalling and editing previous commands Quoting Pathnames A pathname is a list
More informationOverview of the UNIX File System. Navigating and Viewing Directories
Overview of the UNIX File System Navigating and Viewing Directories Copyright 2006 Stewart Weiss The UNIX file system The most distinguishing characteristic of the UNIX file system is the nature of its
More informationFiles and Directories
CSCI 2132: Software Development Files and Directories Norbert Zeh Faculty of Computer Science Dalhousie University Winter 2019 Files and Directories Much of the operation of Unix and programs running on
More informationIntroduction: What is Unix?
Introduction Introduction: What is Unix? An operating system Developed at AT&T Bell Labs in the 1960 s Command Line Interpreter GUIs (Window systems) are now available Introduction: Unix vs. Linux Unix
More informationGNU/Linux 101. Casey McLaughlin. Research Computing Center Spring Workshop Series 2018
GNU/Linux 101 Casey McLaughlin Research Computing Center Spring Workshop Series 2018 rccworkshop IC;3df4mu bash-2.1~# man workshop Linux101 RCC Workshop L101 OBJECTIVES - Operating system concepts - Linux
More informationLab Working with Linux Command Line
Introduction In this lab, you will use the Linux command line to manage files and folders and perform some basic administrative tasks. Recommended Equipment A computer with a Linux OS, either installed
More informationIntroduction of Linux
Introduction of Linux 阳 oslab2018_class1@163.com 寅 oslab2018_class2@163.com PART I Brief Introduction Basic Conceptions & Environment Install & Configure a Virtual Machine Basic Commands PART II Shell
More informationIntroduction to Linux. Woo-Yeong Jeong Computer Systems Laboratory Sungkyunkwan University
Introduction to Linux Woo-Yeong Jeong (wooyeong@csl.skku.edu) Computer Systems Laboratory Sungkyunkwan University http://csl.skku.edu What is Linux? A Unix-like operating system of a computer What is an
More informationCS4350 Unix Programming. Outline
Outline Unix Management Files and file systems Structure of Unix Commands Command help (man) Log on (terminal vs. graphical) System information (utility) File and directory structure (path) Permission
More informationIntroduction to Unix and Linux. Workshop 1: Directories and Files
Introduction to Unix and Linux Workshop 1: Directories and Files Genomics Core Lab TEXAS A&M UNIVERSITY CORPUS CHRISTI Anvesh Paidipala, Evan Krell, Kelly Pennoyer, Chris Bird Genomics Core Lab Informatics
More informationFiles
http://www.cs.fsu.edu/~langley/cop3353-2013-1/reveal.js-2013-02-11/02.html?print-pdf 02/11/2013 10:55 AM Files A normal "flat" file is a collection of information. It's usually stored somewhere reasonably
More informationCSE 303 Lecture 2. Introduction to bash shell. read Linux Pocket Guide pp , 58-59, 60, 65-70, 71-72, 77-80
CSE 303 Lecture 2 Introduction to bash shell read Linux Pocket Guide pp. 37-46, 58-59, 60, 65-70, 71-72, 77-80 slides created by Marty Stepp http://www.cs.washington.edu/303/ 1 Unix file system structure
More informationLinux/Cygwin Practice Computer Architecture
Linux/Cygwin Practice 2010 Computer Architecture Linux Login Use ssh client applications to connect (Port : 22) SSH Clients zterm ( http://www.brainz.co.kr/products/products4_2.php ) Putty ( http://kldp.net/frs/download.php/3411/hangulputty-0.58.h2.exe
More informationIntroduction to Linux Environment. Yun-Wen Chen
Introduction to Linux Environment Yun-Wen Chen 1 The Text (Command) Mode in Linux Environment 2 The Main Operating Systems We May Meet 1. Windows 2. Mac 3. Linux (Unix) 3 Windows Command Mode and DOS Type
More informationThis is Lab Worksheet 3 - not an Assignment
This is Lab Worksheet 3 - not an Assignment This Lab Worksheet contains some practical examples that will prepare you to complete your Assignments. You do not have to hand in this Lab Worksheet. Make sure
More informationLab 2: Linux/Unix shell
Lab 2: Linux/Unix shell Comp Sci 1585 Data Structures Lab: Tools for Computer Scientists Outline 1 2 3 4 5 6 7 What is a shell? What is a shell? login is a program that logs users in to a computer. When
More informationLinux Essentials. Programming and Data Structures Lab M Tech CS First Year, First Semester
Linux Essentials Programming and Data Structures Lab M Tech CS First Year, First Semester Adapted from PDS Lab 2014 and 2015 Login, Logout, Password $ ssh mtc16xx@192.168.---.--- $ ssh X mtc16xx@192.168.---.---
More informationScripting Languages Course 1. Diana Trandabăț
Scripting Languages Course 1 Diana Trandabăț Master in Computational Linguistics - 1 st year 2017-2018 Today s lecture Introduction to scripting languages What is a script? What is a scripting language
More informationFull file at https://fratstock.eu
Guide to UNIX Using Linux Fourth Edition Chapter 2 Solutions Answers to the Chapter 2 Review Questions 1. Your company is discussing plans to migrate desktop and laptop users to Linux. One concern raised
More informationContents. Note: pay attention to where you are. Note: Plaintext version. Note: pay attention to where you are... 1 Note: Plaintext version...
Contents Note: pay attention to where you are........................................... 1 Note: Plaintext version................................................... 1 Hello World of the Bash shell 2 Accessing
More informationCS246 Spring14 Programming Paradigm Notes on Linux
1 Unix History 1965: Researchers from Bell Labs and other organizations begin work on Multics, a state-of-the-art interactive, multi-user operating system. 1969: Bell Labs researchers, losing hope for
More informationIntroduction to Linux
Introduction to Linux The command-line interface A command-line interface (CLI) is a type of interface, that is, a way to interact with a computer. Window systems, punched cards or a bunch of dials, buttons
More informationIntroduction to Linux Workshop 1
Introduction to Linux Workshop 1 The George Washington University SEAS Computing Facility Created by Jason Hurlburt, Hadi Mohammadi, Marco Suarez hurlburj@gwu.edu Logging In The lab computers will authenticate
More informationIntroduction to the UNIX command line
Introduction to the UNIX command line Steven Abreu Introduction to Computer Science (ICS) Tutorial Jacobs University s.abreu@jacobs-university.de September 19, 2017 Overview What is UNIX? UNIX Shell Commands
More informationFREEENGINEER.ORG. 1 of 6 11/5/15 8:31 PM. Learn UNIX in 10 minutes. Version 1.3. Preface
FREEENGINEER.ORG Learn UNIX in 10 minutes. Version 1.3 Preface This is something that I had given out to students (CAD user training) in years past. The purpose was to have on one page the basics commands
More informationIntroduction to Linux
Introduction to Linux Prof. Jin-Soo Kim( jinsookim@skku.edu) TA - Kisik Jeong (kisik@csl.skku.edu) Computer Systems Laboratory Sungkyunkwan University http://csl.skku.edu What is Linux? A Unix-like operating
More informationUnix tutorial. Thanks to Michael Wood-Vasey (UPitt) and Beth Willman (Haverford) for providing Unix tutorials on which this is based.
Unix tutorial Thanks to Michael Wood-Vasey (UPitt) and Beth Willman (Haverford) for providing Unix tutorials on which this is based. Terminal windows You will use terminal windows to enter and execute
More informationTable of contents. Our goal. Notes. Notes. Notes. Summer June 29, Our goal is to see how we can use Unix as a tool for developing programs
Summer 2010 Department of Computer Science and Engineering York University Toronto June 29, 2010 1 / 36 Table of contents 1 2 3 4 2 / 36 Our goal Our goal is to see how we can use Unix as a tool for developing
More informationUsing the Zoo Workstations
Using the Zoo Workstations Version 1.86: January 16, 2014 If you ve used Linux before, you can probably skip many of these instructions, but skim just in case. Please direct corrections and suggestions
More informationCommands are in black
Starting From the Shell Prompt (Terminal) Commands are in black / +--------+---------+-------+---------+---------+------ +------ +------ +------ +------ +------ +-- Bin boot dev etc home media sbin bin
More informationOperating Systems. Engr. Abdul-Rahman Mahmood MS, PMP, MCP, QMR(ISO9001:2000) alphapeeler.sf.net/pubkeys/pkey.htm
Operating Systems Engr. Abdul-Rahman Mahmood MS, PMP, MCP, QMR(ISO9001:2000) armahmood786@yahoo.com alphasecure@gmail.com alphapeeler.sf.net/pubkeys/pkey.htm http://alphapeeler.sourceforge.net pk.linkedin.com/in/armahmood
More informationBasic UNIX commands. HORT Lab 2 Instructor: Kranthi Varala
Basic UNIX commands HORT 59000 Lab 2 Instructor: Kranthi Varala Client/Server architecture User1 User2 User3 Server (UNIX/ Web/ Database etc..) User4 High Performance Compute (HPC) cluster User1 Compute
More informationThe Unix Shell & Shell Scripts
The Unix Shell & Shell Scripts You should do steps 1 to 7 before going to the lab. Use the Linux system you installed in the previous lab. In the lab do step 8, the TA may give you additional exercises
More informationUnix Introduction to UNIX
Unix Introduction to UNIX Get Started Introduction The UNIX operating system Set of programs that act as a link between the computer and the user. Developed in 1969 by a group of AT&T employees Various
More informationEECS2301. Lab 1 Winter 2016
EECS2301 Lab 1 Winter 2016 Lab Objectives In this lab, you will be introduced to the Linux operating system. The basic commands will be presented in this lab. By the end of you alb, you will be asked to
More informationEmbedded Linux Systems. Bin Li Assistant Professor Dept. of Electrical, Computer and Biomedical Engineering University of Rhode Island
Embedded Linux Systems Bin Li Assistant Professor Dept. of Electrical, Computer and Biomedical Engineering University of Rhode Island Generic Embedded Systems Structure User Sensors ADC microcontroller
More informationPractical Session 0 Introduction to Linux
School of Computer Science and Software Engineering Clayton Campus, Monash University CSE2303 and CSE2304 Semester I, 2001 Practical Session 0 Introduction to Linux Novell accounts. Every Monash student
More informationIntroduction to Linux
Introduction to Linux Prof. Jin-Soo Kim( jinsookim@skku.edu) TA - Dong-Yun Lee (dylee@csl.skku.edu) Computer Systems Laboratory Sungkyunkwan University http://csl.skku.edu What is Linux? A Unix-like operating
More informationUseful Unix Commands Cheat Sheet
Useful Unix Commands Cheat Sheet The Chinese University of Hong Kong SIGSC Training (Fall 2016) FILE AND DIRECTORY pwd Return path to current directory. ls List directories and files here. ls dir List
More informationProcesses. Shell Commands. a Command Line Interface accepts typed (textual) inputs and provides textual outputs. Synonyms:
Processes The Operating System, Shells, and Python Shell Commands a Command Line Interface accepts typed (textual) inputs and provides textual outputs. Synonyms: - Command prompt - Shell - CLI Shell commands
More informationUsing the Unix system. UNIX Introduction
Using the Unix system Navigating the Unix file system Editing with emacs Compiling with gcc UNIX Introduction The UNIX operating system is made up of three parts: the kernel, the shell and the programs
More informationUNIX Quick Reference
UNIX Quick Reference This card represents a brief summary of some of the more frequently used UNIX commands that all users should be at least somewhat familiar with. Some commands listed have much more
More informationOperating Systems and Using Linux. Topics What is an Operating System? Linux Overview Frequently Used Linux Commands
Operating Systems and Using Linux Topics What is an Operating System? Linux Overview Frequently Used Linux Commands 1 What is an Operating System? A computer program that: Controls how the CPU, memory
More informationCS Unix Tools. Lecture 2 Fall Hussam Abu-Libdeh based on slides by David Slater. September 10, 2010
Lecture 2 Fall 2010 Hussam Abu-Libdeh based on slides by David Slater September 10, 2010 Last Time We had a brief discussion On The Origin of Species *nix systems Today We roll our sleeves and get our
More informationChapter 6. Linux File System
Chapter 6 Linux File System 1 File System File System management how to store informations on storage devices The Hierarchical Structure Types of file Common File system Tasks 2 The Hierarchical Structure
More informationBioinformatics? Reads, assembly, annotation, comparative genomics and a bit of phylogeny.
Bioinformatics? Reads, assembly, annotation, comparative genomics and a bit of phylogeny stefano.gaiarsa@unimi.it Linux and the command line PART 1 Survival kit for the bash environment Purpose of the
More informationBasic UNIX Commands BASIC UNIX COMMANDS. 1. cat command. This command is used to create a file in unix. Syntax: $ cat filename
Basic UNIX Commands BASIC UNIX COMMANDS 1. cat This is used to create a file in unix. $ cat >filename This is also used for displaying contents in a file. $ cat filename 2. ls It displays the list of files
More informationOxford University Computing Services. Getting Started with Unix
Oxford University Computing Services Getting Started with Unix Unix c3.1/2 Typographical Conventions Listed below are the typographical conventions used in this guide. Names of keys on the keyboard are
More informationLezione 8. Shell command language Introduction. Sommario. Bioinformatica. Mauro Ceccanti e Alberto Paoluzzi
Lezione 8 Bioinformatica Mauro Ceccanti e Alberto Paoluzzi Dip. Informatica e Automazione Università Roma Tre Dip. Medicina Clinica Università La Sapienza Sommario Shell command language Introduction A
More informationLinux & Shell Programming 2014
Unit -1: Introduction to UNIX/LINUX Operating System Practical Practice Questions: Find errors (if any) otherwise write output or interpretation of following commands. (Consider default shell is bash shell.)
More informationLinux Training. for New Users of Cluster. Georgia Advanced Computing Resource Center University of Georgia Suchitra Pakala
Linux Training for New Users of Cluster Georgia Advanced Computing Resource Center University of Georgia Suchitra Pakala pakala@uga.edu 1 Overview GACRC Linux Operating System Shell, Filesystem, and Common
More informationCS Fundamentals of Programming II Fall Very Basic UNIX
CS 215 - Fundamentals of Programming II Fall 2012 - Very Basic UNIX This handout very briefly describes how to use Unix and how to use the Linux server and client machines in the CS (Project) Lab (KC-265)
More informationRead the relevant material in Sobell! If you want to follow along with the examples that follow, and you do, open a Linux terminal.
Warnings 1 First of all, these notes will cover only a small subset of the available commands and utilities, and will cover most of those in a shallow fashion. Read the relevant material in Sobell! If
More informationDATA 301 Introduction to Data Analytics Command Line. Dr. Ramon Lawrence University of British Columbia Okanagan
DATA 301 Introduction to Data Analytics Command Line Dr. Ramon Lawrence University of British Columbia Okanagan ramon.lawrence@ubc.ca Why learn the Command Line? The command line is the text interface
More informationWhy learn the Command Line? The command line is the text interface to the computer. DATA 301 Introduction to Data Analytics Command Line
DATA 301 Introduction to Data Analytics Command Line Why learn the Command Line? The command line is the text interface to the computer. DATA 301: Data Analytics (2) Understanding the command line allows
More information(MCQZ-CS604 Operating Systems)
command to resume the execution of a suspended job in the foreground fg (Page 68) bg jobs kill commands in Linux is used to copy file is cp (Page 30) mv mkdir The process id returned to the child process
More informationOverview LEARN. History of Linux Linux Architecture Linux File System Linux Access Linux Commands File Permission Editors Conclusion and Questions
Lanka Education and Research Network Linux Architecture, Linux File System, Linux Basic Commands 28 th November 2016 Dilum Samarasinhe () Overview History of Linux Linux Architecture Linux File System
More informationLinux environment. Graphical interface X-window + window manager. Text interface terminal + shell
Linux environment Graphical interface X-window + window manager Text interface terminal + shell ctrl-z put running command to background (come back via command fg) Terminal basics Two basic shells - slightly
More informationCrash Course in Unix. For more info check out the Unix man pages -orhttp://www.cs.rpi.edu/~hollingd/unix. -or- Unix in a Nutshell (an O Reilly book).
Crash Course in Unix For more info check out the Unix man pages -orhttp://www.cs.rpi.edu/~hollingd/unix -or- Unix in a Nutshell (an O Reilly book). 1 Unix Accounts To access a Unix system you need to have
More informationLING 408/508: Computational Techniques for Linguists. Lecture 5
LING 408/508: Computational Techniques for Linguists Lecture 5 Last Time Installing Ubuntu 18.04 LTS on top of VirtualBox Your Homework 2: did everyone succeed? Ubuntu VirtualBox Host OS: MacOS or Windows
More informationRH033 Red Hat Linux Essentials
RH033 Red Hat Linux Essentials Version 3.5 QUESTION NO: 1 You work as a Network Administrator for McNeil Inc. The company has a Linux-based network. A printer is configured on the network. You want to
More informationA Brief Introduction to Unix
A Brief Introduction to Unix Sean Barag Drexel University March 30, 2011 Sean Barag (Drexel University) CS 265 - A Brief Introduction to Unix March 30, 2011 1 / 17 Outline 1 Directories
More informationBasic File Attributes
Basic File Attributes The UNIX file system allows the user to access other files not belonging to them and without infringing on security. A file has a number of attributes (properties) that are stored
More informationSet 1 MCQ Which command is used to sort the lines of data in a file in reverse order A) sort B) sh C) st D) sort -r
1. Which symbol will be used with grep command to match the pattern pat at the beginning of a line? A) ^pat B) $pat C) pat$ D) pat^ 2. Which command is used to sort the lines of data in a file in reverse
More information(a) About Unix. History
Part 1: The Unix Operating System (a) About Unix History First roots in the Bell Laboratories, early 60s Kernel rewrite in C by Ritchie / Thompson in the early 70s Source code licenses for Universities
More informationThe Unix Shell. Pipes and Filters
The Unix Shell Copyright Software Carpentry 2010 This work is licensed under the Creative Commons Attribution License See http://software-carpentry.org/license.html for more information. shell shell pwd
More informationGetting your department account
02/11/2013 11:35 AM Getting your department account The instructions are at Creating a CS account 02/11/2013 11:36 AM Getting help Vijay Adusumalli will be in the CS majors lab in the basement of the Love
More informationIntroduction. File System. Note. Achtung!
3 Unix Shell 1: Introduction Lab Objective: Explore the basics of the Unix Shell. Understand how to navigate and manipulate file directories. Introduce the Vim text editor for easy writing and editing
More informationCHAPTER 1 UNIX FOR NONPROGRAMMERS
CHAPTER 1 UNIX FOR NONPROGRAMMERS The man command is used to display the manual entry associated with word entered as argument. The -k option is used displays a list of manual entries that contain entered
More informationLezione 8. Shell command language Introduction. Sommario. Bioinformatica. Esercitazione Introduzione al linguaggio di shell
Lezione 8 Bioinformatica Mauro Ceccanti e Alberto Paoluzzi Esercitazione Introduzione al linguaggio di shell Dip. Informatica e Automazione Università Roma Tre Dip. Medicina Clinica Università La Sapienza
More information