Session 2: More File Management and Text Editing
|
|
- Justin Chapman
- 5 years ago
- Views:
Transcription
1 1 of 11 1st Year Computing for Engineering Session 2: More File Management and Text Editing Michaelmas Term 1999 Lab Organizer: Prof D W Murray In the first session you became familiar with Openwindows, and the organization of a filestore into directories and files. In this session, you will gain more practice with Unix commands, especially ones that move, copy and delete files in the filestore. You will then practice using a text editor. You will find it useful to keep a running sketch of the filestore when running through the notes on copy, remove, rename. This should be a sketch and not an engineering drawing, but nonetheless your logbook, not the back of an envelope, is the natural place for such work. You are (probably) working in pairs. As last time, make sure both of you get a fair go at the keyboard. There is no need though to logout and login half way through as in Session 1. Upfront apology! Moving files around is definitely NOT the most interesting thing in the world, but it is important that you become confident and competent, so that the Suns become useful tools for you later on. Bear with it please. Summary of what you have to do this session More Unix Spend about 40 minutes working through. There is no need to record this. Exercise 2 Spend about 40 minutes on this. Record your work in your logbook. Text Editing Spend about 35 minutes on this. There is no need to record this. Document conventions this typeface indicates something the machine should present,
2 2 of 11 this typeface indicates something you should type. In places, only the short prompt % will be given. 1. Getting Started Partner 1 log in and start up Openwindows. Change directory into session2, then make four directories, called spring, summer, autumn and winter. booth42.ecs:/blah/u98xxx% cd session2 booth42.ecs:/blah/u98xxx/session2% mkdir spring summer autumn winter Now generate the following files using redirection and then cat. (Don't worry about typing the poems completely or accurately!) Type % cal > sep % cal > oct % cal > nov % cal > dec % cat > poem1 What is this thing called enthalpy, or H, or U plus P times V? I've not a clue --- but joy! I see Its all explained in HLT. ctrl-d (Press ctrl key and the d key) 2. Deleting, Copying and Moving Three of the most commonly used commands are those to copy, delete and move (that is, rename) files. Type `ls -F' to remind you of the directory contents. You should have autumn/ nov poem1 spring/ winter/ dec oct sep summer/ though some of the files may have * by them -- no need to worry about this. As suggested at the start, make a sketch of this to help keep track. Now try copying the file poem1 to the file newpoem: % cp poem1 newpoem Remember these files have the same contents, but are distinct. Try ls -l to check that they are the same size, but have different times of creation. There is incidentally a command that looks for differences between contents of files. Type % diff poem1 newpoem % diff poem1 dec and see what happens.
3 3 of 11 If you delete ``poem1'', the ``newpoem'' file still exists. Try it. % rm poem1 Note that it asks for confirmation. Now rename the file newpoem using the following % mv newpoem poem2 Now `ls -l ' indicates that there is no file called newpoem, but there is one called poem2. Same contents, different name. Each disk holds a table of contents as well as files. When you copy a file, a new file is created, and a new entry in the table. When you move or rename a file, only the name in the table of contents is changed. 2.1 Copying files into different directories All the examples above took place in the session2 directory. Now you are to explore copying etc between directories. For this exercise you will make calendars for the various months, and then play with them. Remember that it will help you if you keep a running sketch. Now let us copy sep to the autumn directory. Relative to where we are now the new file name is autumn/sep, so: % cp sep autumn/sep The cp and mv commands can be used in a variety of ways however. So far we have used cp filename1 filename2, but copy can also perform cp filename directoryname. The program detects that the last argument is a directory and performs cp ~filename ~directoryname/filename That is, the file is copied into the new directory with the same name. Type % cp oct ~autumn % cd autumn % ls % cd.. to check that this works. Move works in just the same way: % mv nov autumn Now make a deliberate mistake: % mv dec autumn To recover, ``cd'' into autumn, and check dec is there: % cd autumn % ls You wish to ``mv'' dec into winter. But you cannot just say % mv dec winter Why not?
4 4 of 11 The reason is that winter is not a subdirectory of autumn --- it is a subdirectory of session2 which lies above autumn. In fact if you typed the above, because winter is not a valid subdirectory of autumn, Unix would think that winter must be a filename, and it would rename the file to winter. Try it now, then repair the damage immediately! % mv dec winter (oops) % ls (check what has happened) % mv winter dec (repair) Now back to what we were trying to do. Directory winter is a subdirectory of the directory above us. The directory above has the shorthand dot-dot "..", so the following should work. Type: % mv dec../winter There are actually many ways of specifying the target directory. Let's generate a new file in the wrong place now by typing % cal > jan Winter is a subdirectory of session2; but session2 is a subdirectory of your home directory; so that you could move file jan to directory winter by typing % mv jan ~/session2/winter Now make another mistake by typing fab: % cal > fab This time to move we need to change the file name when we move, as in EITHER OR % mv fab../winter/feb % mv fab ~/session2/winter/feb Now change directory into winter to check that dec, jan and feb are there. If you are about to type cd winter stop right now, and think!! 3. Copying, moving and deleting directories and their contents Suppose that there are two subdirectories in your current directory. Typing % mv directory1 directory2 will move directory1 so that it becomes a subdirectory of directory2. You must be careful of course to ensure that the directory names are valid given the directory in which you are sitting. For example sitting in autumn and typing % mv summer autumn does not make sense, but it would when sitting in session2. Also when sitting in autumn % mv../summer autumn
5 5 of 11 does NOT make sense. The directory autumn is not a subdirectory of autumn. Several ways of doing the same thing while sitting in autumn are % mv../summer ~/session2/autumn % mv../summer../autumn % mv../summer. Note: just as dot-dot ``..'' stands for the parent directory, the dot ``.'' stands for the current working directory. Another example of using the dot. is when you wish to copy a distant file to your current working directory: Eg % cp ~/datefile. Copy directories and their contents is a little more tricky. Suppose summer contained jun,jul,aug. Sitting in autumn we would do a recursive copy: % cp -r../summer. This says to copy the summer, and the entire tree branching from summer, to autumn. If, however, you just wanted to copy the files from summer: % cp../summer/*. would do the trick. If the copy program came across a directory name in summer, it would tell you that the directory was not a regular file, and that it was not copying. 4. Protecting your files Change directory to your home directory and type ls -l. You will see lines similar to something like: drwx--x--x 2 u99xxx -rw u99xxx 512 Oct 19 17:32 session2 29 Oct 19 17:32 datefile The zeroth column in rwxrwxrwx <--- Read Write execute uuugggooo <--- User Group Others indicates whether the file is a directory (d), a standard file (-) or something more esoteric. Columns 1-9 indicate the read, write, and execute permissions for the files and directories. The ``user'' is you, ie u99xxx, the ``group'' includes all u96'ers, and ``others'' embraces all other people. Permissions can be changed using chmod. For example, to give others permission to read file datefile, and remove execute permission from others and group on session1: booth42.ecs:/blah/u98xxx% chmod o+r datefile booth42.ecs:/blah/u98xxx% chmod og-x session1 One way of giving yourself blanket protection from others is to type
6 6 of 11 booth42.ecs:/blah/u98xxx% chmod og-rwx ~ This prevents anyone from doing anything to your home directory and any directory beneath your home --- ie your entire filestore. Play with changing the permissions on datefile, and each time, do ls -l datefile to check that what you think should happen has happened. Then type booth42.ecs:/blah/u98xxx% chmod u-x session2 booth42.ecs:/blah/u98xxx% cd session2 Surprised? Yes, you need execute permission to cd into a directory. This facility prevents snooping of your filestore by others. They can't read, write and can't see what is there to read either! You should restore your permission to cd into your own session2 directory. EXERCISE 2 You must record your results for the exercise in your logbook. Preamble Are you in your home directory? If not, get there. From your home directory type booth42.ecs:/blah/u98xxx% /mclab/demo/yr1/script2 [return] This shell program makes a new directory called exercise2 with subdirectories in the tree shown in Figure 2.1.
7 7 of 11 Fig 2.1: The filestore created by script2 The tasks Sort out the mess! cd into directory ``others'' and move any files and directories not associated with the seasons and months into it. (By convention Spring runs from Mar-May, Summer from Jun-Aug and Autumn from Sep-Nov.) sort out the summer directory so that it is sitting in exercise2, not in autumn. Rename jeb to feb, and move files to their proper seasons. change the permissions on the files in spring, so that all can write to them. change directory to exercise2, and in one command copy all the files in ``others'' into exercise2. delete the directory ``others'' and its contents. call a demonstrator to check your work, then cd into your home directory, and delete recursively exercise2, and all that therein is.
8 8 of Text Editting 5.1 Basic use of TextEdit Earlier in this session you used the cat command to create a text file containing a poem. This is not very convenient, because once you press return after a line, you cannot correct it at all. Obviously, much better to use a text editor. When you start up Openwindows, a TextEdit window appears at the top right of the screen. The window appears similar to that of a cmdtool window, but notice that there is no prompt --- typing into a Text Editor does not talk to Unix. Follow these points to see how the editor works. Type the following into the text editor, adding in the mishtakes and bludners. That is, type the following text exactly as you see it Delete this as a block Delete this as a block Delete this as a block X To save this, use the Menu mouse button (RIGHT BUTTON) on the File menu selector at the top. Now choose Store as a New File. A panel appears on the screen asking for a file name. But wait! The Directory line indicates that Textedit is ``sitting in'' /whatever/u99xxx but you want the file to go into the session2 directory. To change the current directory, simply click the Select (LEFT) button at the end of u99xxx, and add /session2, so that Textedit is ``sitting in'' /whatever/u99xxx/session2. Now select the File line, and type the file name --- some.dat --- then press the ``Store as a New File'' button. The panel vanishes, and the file is saved. Notice that the textedit copy of the file remains in the window, and one could continue editing. Indeed, it is good practice when typing a long document to save every five minutes or so. Having saved the file, move the pointer to the cmdtool, and cd into session3. You should see the file --- type it out using cat some.dat Now pretend you have just noticed the errors. You need to edit the file! There are two common operations in editing:
9 9 of Point and click to a position in the text, then type or delete text/ This is useful when you have put in or missed out a few characters or words. Move the mouse to the point in the text and click. The caret indicates the current typing point. Cut and paste This is where you select a region and cut it out, and then possibly move to a new position and reinsert it. Fix the mistakes in your text using both these methods. For example, you could 1. delete the "Delete this etc" lines by selecting and cutting 2. replace the "X" with "0" using point and click, and so on. Once finished, save the edited file. Point the mouse up at the File menu and choose ``Save Current File''. The editor saves the file using the name you gave previously. It also moves the previous version to some.dat\% as a backup. Go back to the cmdtool and % ls -l % cat some.dat\% % cat some.dat to check that the contents of the files are as you expect. Now practice reloading a file into the editor after editing some other file. 1. Press empty document in the textexitor. 2. Load the file ``dec'' to the textedit window, replacing the some.dat file completely. 3. Make a few changes and then save it. 4. Now get some.dat back into the texteditor, add and extra data line and save it. 5.2 Other Menu options in TextEdit Read the following and if you have time check out what it tells you by selecting the various options. The other options on the File Menu are "Load file", "Include File" and "Empty Document" --- all are self explanatory. The other menus under "Edit", "Find" and "View". are also quite obvious, and here we only give the briefest remarks. [Edit] If you select a point in the text using the Select (LEFT) button and drag the mouse, you will highlight a block of text. When you use Cut, the block is removed and placed in the Cut-Buffer. You can then move the cursor to another place in the document and use Paste to insert at that point. Copy also puts the text in the Cut-Buffer, but leaves the original where it is. Undo is also useful: it has two options, one to undo the last edit, one to restore the text to its condition when you loaded it. [Find] The Find menu has a variety of ways of searching for specific bits of text and replacing bits of text. [View] Amongst other things, this menu enables one to go a specific line in a document. This is often useful when programming: the compiler might indicate an error in line 576, say in the cmdtool window.
10 10 of 11 If you highlight the number by dragging mouse with the select button down (yes, from the cmdtool window) then choose Select Line at Number, the text caret will jump there immediately. 6. Printing Text files created by an editor or program can be printed out using the lp command. There are both dot matrix and laser printers available to you: they reside in ``the small room'' on Level 6. As you face the walls with the doors, go out of the right hand door, turn right down the stairs and the room is straight ahead. A default printer will have been set up for you. Type % lpstat -s scheduler is running system default destination: ew system for ep: heath.ecs system for ew: robinson.ecs To print on the default printer, (here ew, a dot matrix) type % lp yourfilename but to print on the laser printer called ep % lp -d ep yourfilename In each case the printer job is put in the printer queue, and the machine will return a ``request id'' such as ``ew-10'' Typing % lpstat will show you the jobs on the queue You might see something like ew-5 bert 720 Oct 12 17:34 on booth31.ecs ew-10 u99xxx 1261 Oct 12 17:36 on booth41.ecs If you want to withdraw your job from a queue --- either because you have sent the wrong file or there are 37 huge jobs ahead of you and you don't have time to wait --- try % cancel ew-10 There are many options that you can apply to lp. Perhaps one of the most useful is % lp -w yourfilename which will write a message to the screen when the printing is finished. 6.1 Print sparingly! There are quotas You should print sparingly. The window environment and text previewers and interactive debuggers make it an easy job to check for typographical or programming errors on the screen. To deter you, there are limits on the amount of paper and disk store you are allow to fill up. To obtain information about your quota and usage, type % quota -v
11 11 of Clearing up and Logging Out Once the session has been signed off, you may remove all the files in the directories session2 and exercise2, and the directories themselves using % cd ~ % rm -r session2 % rm -r exercise2 Now Log Out! First Exit Openwindows Then Logout from the console Don't forget this! Summary of sessions 1 and 2 After these sessions, you should: Be able to log on, to open and manipulate windows, and to log out. Understand the structure of a file system, and the notions of home directory, current working directory, parent directory, and subdirectory. You should be able to change your current working directory. Be able to remove, copy and move files around the filesystem. Be able to generate text files, store and re-edit files using the text editor. If you don't yet feel comfortable, you may need extra practice. Remember that the Solarium is available to you outside of laboratory sessions. Lab devised by: David Murray Lab Organizer: David Murray Last changed June 15th, 1999
Session 1: The Machines, Openwindows and Unix
1 of 18 1st Year Computing for Engineering Session 1: The Machines, Openwindows and Unix Michaelmas Term 1999 Lab Organizer: Prof D W Murray This session provides introductory material which you and your
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 informationLab Assignment #1. University of Pittsburgh Department of Electrical and Computer Engineering
Fall 2017 ECE1192/2192 Lab Assignment #1 University of Pittsburgh Department of Electrical and Computer Engineering 1 Objective The objective of this handout is to help you get familiar with the UNIX/Linux
More informationThis lab exercise is to be submitted at the end of the lab session! passwd [That is the command to change your current password to a new one]
Data and Computer Security (CMPD414) Lab II Topics: secure login, moving into HOME-directory, navigation on Unix, basic commands for vi, Message Digest This lab exercise is to be submitted at the end of
More informationTutorial 1: Unix Basics
Tutorial 1: Unix Basics To log in to your ece account, enter your ece username and password in the space provided in the login screen. Note that when you type your password, nothing will show up in the
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 informationSome Linux (Unix) Commands that might help you in ENSC351
Some Linux (Unix) Commands that might help you in ENSC351 First, like Windows, Linux and Unix (for our purposes, they are the basically the same) use a hierarchical directory structure. What would be called
More informationUsing LINUX a BCMB/CHEM 8190 Tutorial Updated (1/17/12)
Using LINUX a BCMB/CHEM 8190 Tutorial Updated (1/17/12) Objective: Learn some basic aspects of the UNIX operating system and how to use it. What is UNIX? UNIX is the operating system used by most computers
More informationTiny Instruction Manual for the Undergraduate Mathematics Unix Laboratory
Tiny Instruction Manual for the Undergraduate Mathematics Unix Laboratory 1 Logging In When you sit down at a terminal and jiggle the mouse to turn off the screen saver, you will be confronted with a window
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 informationPart I. Introduction to Linux
Part I Introduction to Linux 7 Chapter 1 Linux operating system Goal-of-the-Day Familiarisation with basic Linux commands and creation of data plots. 1.1 What is Linux? All astronomical data processing
More informationGetting Started With UNIX Lab Exercises
Getting Started With UNIX Lab Exercises This is the lab exercise handout for the Getting Started with UNIX tutorial. The exercises provide hands-on experience with the topics discussed in the tutorial.
More informationUNIX Quick Reference
UNIX Quick Reference Charles Duan FAS Computer Services August 26, 2002 1 Command Reference Many of these commands have many more options than the ones displayed here. Most also take the option h or help,
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 informationCSC209. Software Tools and Systems Programming. https://mcs.utm.utoronto.ca/~209
CSC209 Software Tools and Systems Programming https://mcs.utm.utoronto.ca/~209 What is this Course About? Software Tools Using them Building them Systems Programming Quirks of C The file system System
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 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 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 informationCSE115 Lab exercises for week 1 of recitations Spring 2011
Introduction In this first lab you will be introduced to the computing environment in the Baldy 21 lab. If you are familiar with Unix or Linux you may know how to do some or all of the following tasks.
More informationINSE Lab 1 Introduction to UNIX Fall 2017
INSE 6130 - Lab 1 Introduction to UNIX Fall 2017 Updated by: Paria Shirani Overview In this lab session, students will learn the basics of UNIX /Linux commands. They will be able to perform the basic operations:
More informationCS 2400 Laboratory Assignment #1: Exercises in Compilation and the UNIX Programming Environment (100 pts.)
1 Introduction 1 CS 2400 Laboratory Assignment #1: Exercises in Compilation and the UNIX Programming Environment (100 pts.) This laboratory is intended to give you some brief experience using the editing/compiling/file
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 informationIntro to Linux. this will open up a new terminal window for you is super convenient on the computers in the lab
Basic Terminal Intro to Linux ssh short for s ecure sh ell usage: ssh [host]@[computer].[otheripstuff] for lab computers: ssh [CSID]@[comp].cs.utexas.edu can get a list of active computers from the UTCS
More information: the User (owner) for this file (your cruzid, when you do it) Position: directory flag. read Group.
CMPS 12L Introduction to Programming Lab Assignment 2 We have three goals in this assignment: to learn about file permissions in Unix, to get a basic introduction to the Andrew File System and it s directory
More informationUNIX File Hierarchy: Structure and Commands
UNIX File Hierarchy: Structure and Commands The UNIX operating system organizes files into a tree structure with a root named by the character /. An example of the directory tree is shown below. / bin
More informationEssential Linux Shell Commands
Essential Linux Shell Commands Special Characters Quoting and Escaping Change Directory Show Current Directory List Directory Contents Working with Files Working with Directories Special Characters There
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 informationWorking with Basic Linux. Daniel Balagué
Working with Basic Linux Daniel Balagué How Linux Works? Everything in Linux is either a file or a process. A process is an executing program identified with a PID number. It runs in short or long duration
More informationThe Unix Environment for Programming (COMP433)
The Unix Environment for Programming (COMP433) Student's Practical Manual Dr. Mohamed Ben Laroussi Aissa m.issa@unizwa.edu.om Room 11 I- 13 Spring 2017 1 Textbook Topic # Topic Page 1 Introduction 2 3
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 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 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 to Linux
Introduction to Linux M Tech CS I 2015-16 Arijit Bishnu Debapriyo Majumdar Sourav Sengupta Mandar Mitra Login, Logout, Change password $ ssh, ssh X secure shell $ ssh www.isical.ac.in $ ssh 192.168 $ logout,
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 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 informationCMSC 201 Spring 2017 Lab 01 Hello World
CMSC 201 Spring 2017 Lab 01 Hello World Assignment: Lab 01 Hello World Due Date: Sunday, February 5th by 8:59:59 PM Value: 10 points At UMBC, our General Lab (GL) system is designed to grant students the
More informationFILE MAINTENANCE COMMANDS
Birla Institute of Technology & Science, Pilani Computer Programming (CS F111) Lab-2 ----------------------------------------------------------------------------------------------------------------------
More informationIntroduction to Unix CHAPTER 6. File Systems. Permissions
CHAPTER 6 Introduction to Unix The Unix operating system is an incredibly powerful and complex system that is ideal for running a distributed system such as ours, particularly since we use computers primarily
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 informationExploring UNIX: Session 3
Exploring UNIX: Session 3 UNIX file system permissions UNIX is a multi user operating system. This means several users can be logged in simultaneously. For obvious reasons UNIX makes sure users cannot
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 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 informationCENG393 Computer Networks Labwork 1
CENG393 Computer Networks Labwork 1 Linux is the common name given to a large family of operating systems. All Linux-based operating systems are essentially a large set of computer software that are bound
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 informationIntroduction to Unix - Lab Exercise 0
Introduction to Unix - Lab Exercise 0 Along with this document you should also receive a printout entitled First Year Survival Guide which is a (very) basic introduction to Unix and your life in the CSE
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 informationWhen talking about how to launch commands and other things that is to be typed into the terminal, the following syntax is used:
Linux Tutorial How to read the examples When talking about how to launch commands and other things that is to be typed into the terminal, the following syntax is used: $ application file.txt
More informationLab 1 1 Due Wed., 2 Sept. 2015
Lab 1 1 Due Wed., 2 Sept. 2015 CMPSC 112 Introduction to Computer Science II (Fall 2015) Prof. John Wenskovitch http://cs.allegheny.edu/~jwenskovitch/teaching/cmpsc112 Lab 1 - Version Control with Git
More informationPhysics REU Unix Tutorial
Physics REU Unix Tutorial What is unix? Unix is an operating system. In simple terms, its the set of programs that makes a computer work. It can be broken down into three parts. (1) kernel: The component
More informationCENG 334 Computer Networks. Laboratory I Linux Tutorial
CENG 334 Computer Networks Laboratory I Linux Tutorial Contents 1. Logging In and Starting Session 2. Using Commands 1. Basic Commands 2. Working With Files and Directories 3. Permission Bits 3. Introduction
More informationLAB 8 (Aug 4/5) Unix Utilities
Aug 4/5 Due: Aug 11 in class Name: CSE number: LAB 8 (Aug 4/5) Unix Utilities The purpose of this lab exercise is for you to get some hands-on experience on using some fundamental Unix utilities (commands).
More informationLOG ON TO LINUX AND LOG OFF
EXPNO:1A LOG ON TO LINUX AND LOG OFF AIM: To know how to logon to Linux and logoff. PROCEDURE: Logon: To logon to the Linux system, we have to enter the correct username and password details, when asked,
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 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 informationCMSC 201 Spring 2018 Lab 01 Hello World
CMSC 201 Spring 2018 Lab 01 Hello World Assignment: Lab 01 Hello World Due Date: Sunday, February 4th by 8:59:59 PM Value: 10 points At UMBC, the GL system is designed to grant students the privileges
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 informationAn Introduction to Using the Command Line Interface (CLI) to Work with Files and Directories
An Introduction to Using the Command Line Interface (CLI) to Work with Files and Directories Mac OS by bertram lyons senior consultant avpreserve AVPreserve Media Archiving & Data Management Consultants
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 informationUnix background. COMP9021, Session 2, Using the Terminal application, open an x-term window. You type your commands in an x-term window.
Unix background COMP9021, Session 2, 2016 1 Introduction Using the Terminal application, open an x-term window. You type your commands in an x-term window. Many commands take one or more arguments. Many
More informationIntroduction. SSH Secure Shell Client 1
SSH Secure Shell Client 1 Introduction An SSH Secure Shell Client is a piece of software that allows a user to do a number of functions. Some of these functions are: file transferring, setting permissions,
More informationCS 215 Fundamentals of Programming II Spring 2019 Very Basic UNIX
CS 215 Fundamentals of Programming II Spring 2019 Very Basic UNIX This handout very briefly describes how to use Unix and how to use the Linux server and client machines in the EECS labs that dual boot
More informationUnix as a Platform Exercises. Course Code: OS-01-UNXPLAT
Unix as a Platform Exercises Course Code: OS-01-UNXPLAT Working with Unix 1. Use the on-line manual page to determine the option for cat, which causes nonprintable characters to be displayed. Run the command
More informationLAB 8 (Aug 4/5) Unix Utilities
Aug 4/5 Due: Aug 11 in class Name: CSE number: LAB 8 (Aug 4/5) Unix Utilities The purpose of this lab exercise is for you to get some hands-on experience on using some fundamental Unix utilities (commands).
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 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 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 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 information~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
(( )) (( )) [ x x ] cdc communications, inc. [ x x ] \ / presents... \ / (` ') (` ') (U) (U) Gibe's UNIX COMMAND Bible ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The latest file from the Cow's
More informationCSCE 212H, Spring 2008, Matthews Lab Assignment 1: Representation of Integers Assigned: January 17 Due: January 22
CSCE 212H, Spring 2008, Matthews Lab Assignment 1: Representation of Integers Assigned: January 17 Due: January 22 Manton Matthews January 29, 2008 1 Overview The purpose of this assignment is to become
More informationUnix Workshop Aug 2014
Unix Workshop 2014 5 Aug 2014 What is Unix Multitasking, multiuser operating system Often the OS of choice for large servers, large clusters Unix Around You You re probably familiar with these: Linux Solaris
More informationSession 1: Accessing MUGrid and Command Line Basics
Session 1: Accessing MUGrid and Command Line Basics Craig A. Struble, Ph.D. July 14, 2010 1 Introduction The Marquette University Grid (MUGrid) is a collection of dedicated and opportunistic resources
More informationOperating Systems. Copyleft 2005, Binnur Kurt
3 Operating Systems Copyleft 2005, Binnur Kurt Content The concept of an operating system. The internal architecture of an operating system. The architecture of the Linux operating system in more detail.
More informationUsing UNIX. -rwxr--r-- 1 root sys Sep 5 14:15 good_program
Using UNIX. UNIX is mainly a command line interface. This means that you write the commands you want executed. In the beginning that will seem inferior to windows point-and-click, but in the long run the
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 informationOperating Systems 3. Operating Systems. Content. What is an Operating System? What is an Operating System? Resource Abstraction and Sharing
Content 3 Operating Systems The concept of an operating system. The internal architecture of an operating system. The architecture of the Linux operating system in more detail. How to log into (and out
More informationBasic Survival UNIX.
Basic Survival UNIX Many Unix based operating systems make available a Graphical User Interface for the sake of providing an easy way for less experienced users to work with the system. Some examples are
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 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 informationOn successful completion of the course, the students will be able to attain CO: Experiment linked. 2 to 4. 5 to 8. 9 to 12.
CIE- 25 Marks Government of Karnataka Department of Technical Education Bengaluru Course Title: Linux Lab Scheme (L:T:P) : 0:2:4 Total Contact Hours: 78 Type of Course: Tutorial, Practical s & Student
More informationENCM 339 Fall 2017: Editing and Running Programs in the Lab
page 1 of 8 ENCM 339 Fall 2017: Editing and Running Programs in the Lab Steve Norman Department of Electrical & Computer Engineering University of Calgary September 2017 Introduction This document is a
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 informationLab 1: Accessing the Linux Operating System Spring 2009
CIS 90 Linux Lab Exercise Lab 1: Accessing the Linux Operating System Spring 2009 Lab 1: Accessing the Linux Operating System This lab takes a look at UNIX through an online experience on an Ubuntu Linux
More informationSoftware I: Utilities and Internals. What is UNIX?
Software I: Utilities and Internals Lecture 1 UNIX for Beginners What is UNIX? UNIX is a time-sharing operating system with userchosen shells (user interfaces) and one kernel (operating system core, which
More informationAN INTRODUCTION TO UNIX
AN INTRODUCTION TO UNIX Paul Johnson School of Mathematics September 18, 2011 OUTLINE 1 INTRODUTION Unix Common Tasks 2 THE UNIX FILESYSTEM Moving around Copying, deleting File Permissions 3 SUMMARY OUTLINE
More informationIMPORTANT: Logging Off LOGGING IN
These are a few basic Unix commands compiled from Unix web sites, and printed materials. The main purpose is to help a beginner to go around with fewer difficulties. Therefore, I will be adding to this
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 informationCST8207: GNU/Linux Operating Systems I Lab Six Linux File System Permissions. Linux File System Permissions (modes) - Part 1
Student Name: Lab Section: Linux File System Permissions (modes) - Part 1 Due Date - Upload to Blackboard by 8:30am Monday March 12, 2012 Submit the completed lab to Blackboard following the Rules for
More informationUnix and C Program Development SEEM
Unix and C Program Development SEEM 3460 1 Operating Systems A computer system cannot function without an operating system (OS). There are many different operating systems available for PCs, minicomputers,
More informationA Big Step. Shell Scripts, I/O Redirection, Ownership and Permission Concepts, and Binary Numbers
A Big Step Shell Scripts, I/O Redirection, Ownership and Permission Concepts, and Binary Numbers Copyright 2006 2009 Stewart Weiss What a shell really does Here is the scoop on shells. A shell is a program
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 informationEE261 Computer Project 1: Using Mentor Graphics for Digital Simulation
EE261 Computer Project 1: Using Mentor Graphics for Digital Simulation Introduction In this project, you will begin to explore the digital simulation tools of the Mentor Graphics package available on the
More informationLab #12: Shell Scripting
Lab #12 Page 1 of 11 Lab #12: Shell Scripting Students will familiarize themselves with UNIX shell scripting using basic commands to manipulate the le system. Part A Instructions: This part will be demonstrated
More informationUnix System Architecture, File System, and Shell Commands
Unix System Architecture, File System, and Shell Commands Prof. (Dr.) K.R. Chowdhary, Director COE Email: kr.chowdhary@iitj.ac.in webpage: http://www.krchowdhary.com JIET College of Engineering August
More informationCISC 220 fall 2011, set 1: Linux basics
CISC 220: System-Level Programming instructor: Margaret Lamb e-mail: malamb@cs.queensu.ca office: Goodwin 554 office phone: 533-6059 (internal extension 36059) office hours: Tues/Wed/Thurs 2-3 (this week
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 information18-Sep CSCI 2132 Software Development Lecture 6: Links and Inodes. Faculty of Computer Science, Dalhousie University. Lecture 6 p.
Lecture 6 p.1 Faculty of Computer Science, Dalhousie University CSCI 2132 Software Development Lecture 6: Links and s 18-Sep-2017 Location: Goldberg CS 127 Time: 14:35 15:25 Instructor: Vlado Keselj Previous
More informationWeek 2. Exp 2 (a) (b): Introduction to LINUX OS, Installation of LINUX OS, Basic DOS commands
Week 2 Exp 2 (a) (b): Introduction to LINUX OS, Installation of LINUX OS, Basic DOS commands mkdir, cd, cls, del, copy, attrib, date, path, type, format, exit. Basic commands in LINUX - cat, ls, pwd,,
More informationWeek - 01 Lecture - 04 Downloading and installing Python
Programming, Data Structures and Algorithms in Python Prof. Madhavan Mukund Department of Computer Science and Engineering Indian Institute of Technology, Madras Week - 01 Lecture - 04 Downloading and
More informationCS : Computer Programming, Spring 2000 Programming Project #1: Thinking of a Number Due in class Thursday 27 January 2000
CS 1313 010: Computer Programming, Spring 2000 Programming Project #1: Thinking of a Number Due in class Thursday 27 January 2000 For online help check the class website http://www.ecn.ou.edu/cs1313010/
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 information