Please note that CNE 216 is a brand new course that has never been taught on the George campus; it will be taught for the first time in the fall of
|
|
- Garey Cannon
- 5 years ago
- Views:
Transcription
1 Please note that CNE 216 is a brand new course that has never been taught on the George campus; it will be taught for the first time in the fall of The materials for this course are still being developed. Draft versions of approximately a quarter to a third of the course materials have been created thus far; they are being included here. Please keep in mind that these are works in progress and very well may change before the class is actually taught. No tests have been created yet, but there have been test banks created for the first six chapters. All questions in these test banks were created at the Delaware Technical Community College George campus.
2 Chapter 2 Review Exercises You were asked to read pages in your textbook. These pages cover a lot of ground, some of which should be familiar to you and some of which is probably new. These exercises are intended to dust off any mental cobwebs you may have with the old material and to give you a little practice with the new material. In order to complete these exercises, you may use whatever resources you choose. You are encouraged to refer to your book or to Linux s man pages, to open a VM and play with the commands, to use Google to search for additional information, or to consult with a willing neighbor. You are always welcome to use any of these resources for any labs. (Note, however, that you will have access to fewer resources on exam days. On those days, you may still refer to your textbooks and to the man pages, and you may still interact with the OS, but you may not refer to any other online resources or to your neighbors.) 1) What is the difference in meaning between the following four commands? ls / more ls / > more ls / >> more ls / more 2) What is the difference in meaning between the following three pairs of commands? cat temp ; cal cat temp && cal cat temp cal 3) Suppose you wished to include a line in a script that will display on the screen the password and shadow file lines for the user currently logged in. What line could you include in the script that will do this via the use of an environment variable? What line could you include in the script that will do this via the use of a command enclosed in backticks? 4) Explain briefly the differences among single quotes, double quotes, and back quotes (also called back ticks ). 5) Examine the contents of the /etc/passwd file, and then execute the following command and describe in English what it does: cut f1,5 d: /etc/passwd 6) Suppose you wished to see output only the location of the home directory for the account named student. What could you type at the command line to accomplish this? 7) Suppose you wished to list the contents of the current directory along with the permissions; for example, suppose you wished as a sample output: -rwx addresses drwx bin drwxr-xr-x cis141 drwxr-xr-x cis210
3 What would you type at the command line to achieve this? Hint: You will need to use the cut command with the option to extract specific characters in each line. You may need to experiment to determine the precise numbers to use, and the numbers may vary. 8) What could you type at the command line to determine how many accounts there are on your system? What could you type to determine how many accounts have root as part of their username? 9) You have a file called names that contains a list of names in no particular order; some names may be duplicated, and the duplicate names may be anywhere in the file. What could you type at the command line in order to display a list of the names in alphabetical order; each name should appear only once. How would your command change if you wished to see ONLY names that had been duplicated? What if you wanted to see only names that appeared exactly once in the file? 10) What could you type at the command line to display the names and word counts for the three files in the current directory that have the most words in them? Hints: The wc command does permit the use of wild cards. If you use a wild card to represent everything in the current directory, you will get, amidst the useful information, a lot of error messages indicating that you are trying to count the words in a directory. You will find it necessary to discard the error messages; see page 31 in the book for a discussion of how to do so. Once you have the information displayed, you will need to do a numeric sort on the output and to display only the relevant three lines. This exercise requires you to combine many different skills to accomplish. You will NOT be submitting these exercises for a grade; instead, when you have completed them, check the answer key which will be made available in the second hour of the class. (If for some reason it is not visible in BlackBoard, please let me know and I will troubleshoot.) If you do not understand why the answers are the way they are, please ask me.
4 Chapter 3 - Startup and Shutdown Create a new folder called Debian GUI in our class folder on the D: drive. Copy your Debian ISO into the new folder. Create a new VM from the ISO, but this time be sure to install the Debian desktop environment. (If you get a warning message about GNOME 3 failing to install, you can safely ignore it for the purposes of this lab.) Use the notes on the earlier Debian installation, if necessary. When the install is complete, log into the OS in the new VM and su to root. 1) What run level are you in now? (Hint: You may need to do some online research to determine the answer.) 2) What are three ways you could reboot the system? 3) What are two ways you could change to run level zero? 4) List the six phases of the boot process. 5) A file in the /etc/rc1.d directory is named K01apache2. What can you deduce about the file based on its name, and what about the file name or location leads you to your deductions? 6) The following is part of a sample grub configuration file (grub.conf). Examine the file and then answer the questions below. default=1 timeout=10 title GNU/Hurd root (hd0,0) kernel /boot/gnumach.gz root=hd0s1 module /boot/serverboot.gz title GNU/Linux kernel (hd0,1)/vmlinuz root=/dev/hdb1 title Windows 7 boot menu root(hd1,0) makeactive chainloader +1 a) Which operating system would be booted if the user did not choose an OS? b) How long does the user have to choose an OS? c) Where is the Windows OS located? This lab will not be submitted for a grade, but please check your answers against the answer key provided. If you have any questions, please be sure to ask your teacher.
5 Chapter 5 ps Open an OpenSUSE VM and bring up a terminal window. su - to root. Open Firefox and a word processor, then issue the command: ps -ef. You will see quite a number of processes listed, many of which have command names listed in square brackets. 1) What is the significance of the square brackets around certain command names? There may be several screens worth of processes. In real life, if you were the working with a server that had tens or even of hundreds of people connecting to it, working with a complete listing would be infeasible. Suppose you were interested in seeing information about your web browser. 2) What could you type at the command line to see only processes that have firefox in their commands? From the output of your previous command, you should be able to discern where the Firefox app is located. 3) Include a screen capture showing the output of your previous command here: 4) There will be at least two lines of output to your previous command. Since you are only running one instance of Firefox, why is a second line listed? 5) In what directory is the Firefox program located? Now suppose that many people had Firefox open. 6) How could you further narrow down what is displayed to include only the instance(s) opened by the user student? 7) What are the process ID's for Firefox and for Firefox's parent process? 8) Has the Firefox process spawned any children? What could you type to find out? 9) What is the command that generated Firefox's parent? What could you type to find out? Did that parent spawn any other processes? 10) What could you type to show only lines that do not have brackets in them? (Hint: You will need to escape the square bracket. You may need to "play" with the operating system a bit to determine precisely how to do this.)
6 11) What could you type to increase the priority number of the Firefox process by 15? Research the STOP signal. What could you type at the command line to pause Firefox? Execute that command and then try interacting with Firefox. Firefox should be unresponsive. Execute the following command: ps l (Note that the option is a lowercase L.) Examine the second field of the output the field with the field header of a capital "S". The letter in each row represents the process state. Note that the Firefox process should have a "T" as its state, since it is currently suspended. What other states do you see listed? You should see at least one runnable process and some sleeping processes. 12) What could you type at the command line to have Firefox continue from its paused state? Execute that command and verify that Firefox responds once more. 13) What could you type at the command line to terminate the Firefox process, using a command that will ensure that it ends? (Do NOT actually issue the command.) Exit Firefox gracefully (e.g., by clicking on its close button.) Now try running the top command and notice what the top processes are. Open an application (such as Firefox) and see how the top processes change. Note the PID for the Firefox process. Now enter the directory /proc and look at its contents. Note that one of the directories inside it should have the same name as Firefox's PID. Change into that directory and list its contents using ls -l. Examine the contents of cmdline. Also, note that some items listed are actually symbolic links. Refer to Table 5.7 on page 135 of the book for an explanation of some of the directory's contents. Feel free to explore the contents of the directory.
7 Chapter 6 filesystem In an OpenSuse VM, pull up a command terminal and examine the /etc/fstab file. Note the different mount points. The locations of the file systems to mount may be relatively straightforward (e.g., /dev/sda1) or it may appear as a UUID a 128 bit universally unique identifier. Note the different mount points; one of them should be /home. In the same command terminal, issue the command: fuser /home There may be no output other than a new prompt. That is OK. Now open a second command terminal (while keeping the first one open). In the second command terminal, cd into the /home directory. Back in the first command terminal, reissue the fuser /home command. 1) What is the output? What is the meaning of the output? Answer: The output is a PID followed by the letter "c" which indicates that the process is currently executing a file. In the first command terminal, issue the command ps el. Look for the number portion of the output from the previous command. 2) What command is associated with the number? Answer: bash Now try issuing the fuser c /home command. There should be additional output. Why? Try using ps el in conjunction with the grep command to see what some of the other processes are. After you have examined a few such processes, make note of the highest PID listed. Go into the /home/student directory and write a bash script that will sleep for ten minutes and then echo "done". Try running it from /home/student and issue the commands fuser /home and fuser c home. Do you see any new PIDs as a result of the fuser command? Of the fuser c command? Now in the second command terminal, CTRL^C out of the sleep script you wrote, cd into the /home directory, and once again issue the commands fuser /home and fuser c home. Do you see any new PIDs as a result of the fuser command? Of the fuser c command? As you can see, if you wish to determine not only what processes are running from the /home directory itself, but also for any subdirectories therein, you will need to use the c option of fuser. Pretend that you didn't know who was running the sleep script and you needed to determine the individual.
8 3) What could you do to determine who owned the sleep script process(es)? Keep in mind that the output of the relevant command might be quite sizable; you will want to run it through a filter to display only the information for the relevant process. Answer: You could run ps aux grep <PID> Another way you could get the same information would be to use the v flag with fuser. Try it now: fuser cv /home Examine the output and note that the first line of the output after the field headings line gives you the additional information that root has a kernel process that has mounted /home. --- Now go into the /dev directory and look at its contents with ls -l. 4) Do hard drives use character or block device files? Answer: Block 5) Do serial ports use character or block device files? Answer: Character When you look at the output of the ls -l command, you should notice that there are several files beginning with vcs or vcsa. Do some research to be able to answer the following question: 6) What are the vcs and vcsa files for? What are their major numbers? Answer: Memory for virtual console sessions. Their major number is 7. Try using cat to see the contents of a few of the vcs or vcsa files. 7) What do you see for most of them? Why do you think the contents of the file are what they are? Answer: You see a login screen, since no one has logged into the virtual consoles. Now notice the ls -l output for stdin. Note that it is a symbolic link pointing to fd/0. Also note that the permissions for this file appear to give everyone (user, group, other) read, write, and execute permissions. In actuality, symbolic links have "dummy" permissions and the real ones are associated with the file to which they point. To determine the actual permissions for stdin, you will need to track down the file being pointed to. (Hint: Symbolic links can point to other symbolic links.) 8) What is the actual file referred to by the symbolic link? What are its major and minor numbers, and what are its real permissions?
9 Answer: The actual file is /dev/pts/#, where # refers to the number associated with the console window. its major number is 136 and its minor number is #. User may read and write, and group may write. (Group is given write permission so that they may use the mesg command to communicate with the user.) Now for something fun. First, log into navajo and research the mesg and write commands and then use them to communicate with a partner. Then both of you should issue the tty command to see the file name representing each console. Suppose your console is /dev/pts/x and your partner's console is /dev/pts/y (where X and Y represent numbers.) Now in your window, type: cat > /dev/pts/y and have your partner type: cat > /dev/pts/x. You can now have a conversation with each other. To bring back the prompt, enter CTRL^C in each window. 9) Insert here a screen capture of your half of the conversations (both the one using write and the one using cat): Sample answer: --- Go to your home directory and create a new file temp and a new directory tempdir. Observe the permissions they were assigned. Now from those permissions, calculate what your current umask value is. Then issue the command umask with no arguments to see whether your calculation was correct. If it was not, then call over the instructor. 10) What umask would you need to make sure that by default, a directory would have the following permissions: rwxr-----? Answer: 037 Verify your answer by changing your umask value and creating a new directory, then change it back to its original value. Delete any files or directories you have created.
CST8207: GNU/Linux Operating Systems I Lab Ten Boot Process and GRUB. Boot Process and GRUB
Student Name: Lab Section: Boot Process and GRUB 1 Due Date - Upload to Blackboard by 8:30am Monday April 16, 2012 Submit the completed lab to Blackboard following the Rules for submitting Online Labs
More information. Fill in the Blank: A directory named mydir has just been... Points:10. Add Question Success: 64 questions added as a copy.
. Fill in the Blank: A directory named mydir has just been... Success: 64 questions added as a copy. A directory named mydir has just been created with the touch command. Nochmod commands have been issued
More informationWeek 5 Lesson 5 02/28/18
Week 5 Lesson 5 02/28/18 Important Announcements Extra Credits If you haven t done so, send your pictures to risimms@cabrillo.edu for 3 points EXTRA CREDIT. Join LinkedIn for 3 points Perkins/VTEA Survey
More informationThis is Lab Worksheet 13 - not an Assignment. Boot Process and GRUB
This is Lab Worksheet 13 - 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
More informationExercise Sheet 2. (Classifications of Operating Systems)
Exercise Sheet 2 Exercise 1 (Classifications of Operating Systems) 1. At any given moment, only a single program can be executed. What is the technical term for this operation mode? 2. What are half multi-user
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 informationCIS 191A Final Exam. Fall CIS 191 Final Exam
CIS 191A Final Exam Fall 2008 CIS 191 Final Exam The final for CIS 191A is composed several parts: A. (10 points) Questions B. (5 points) Checklist C. (10 points) Troubleshooting D. (35 points) Building
More informationGetting Started with Linux
Getting Started with Linux For those with experience using Microsoft Windows there will be many familiar ways of operating in a Linux environment. There are also a few key differences. The main differences
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 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 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 informationPlease choose the best answer. More than one answer might be true, but choose the one that is best.
Introduction to Linux and Unix - endterm Please choose the best answer. More than one answer might be true, but choose the one that is best. SYSTEM STARTUP 1. A hard disk master boot record is located:
More informationThis is Worksheet and Assignment 12. Disks, Partitions, and File Systems
This is Worksheet and Assignment 12 This is a combined Worksheet and Assignment.. Quizzes and tests may refer to work done in this Worksheet and Assignment; save your answers. You will use a checking program
More informationLinux File System and Basic Commands
Linux File System and Basic Commands 0.1 Files, directories, and pwd The GNU/Linux operating system is much different from your typical Microsoft Windows PC, and probably looks different from Apple OS
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 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 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 files searching, and other interrogation techniques
UNIX files searching, and other interrogation techniques Ways to examine the contents of files. How to find files when you don't know how their exact location. Ways of searching files for text patterns.
More information1. Open VirtualBox and start your linux VM. Boot the machine and log in with the user account you created in Lab #1. Open the Terminal application.
CIT 210L Name: Lab #2 1. Open VirtualBox and start your linux VM. Boot the machine and log in with the user account you created in Lab #1. Open the Terminal application. 2. Listing installed packages -
More informationReview of Fundamentals
Review of Fundamentals 1 The shell vi General shell review 2 http://teaching.idallen.com/cst8207/14f/notes/120_shell_basics.html The shell is a program that is executed for us automatically when we log
More informationINTRODUCTION TO LINUX
INTRODUCTION TO LINUX REALLY SHORT HISTORY Before GNU/Linux there were DOS, MAC and UNIX. All systems were proprietary. The GNU project started in the early 80s by Richard Stallman Goal to make a free
More information1 Installation (briefly)
Jumpstart Linux Bo Waggoner Updated: 2014-09-15 Abstract A basic, rapid tutorial on Linux and its command line for the absolute beginner. Prerequisites: a computer on which to install, a DVD and/or USB
More informationExploring UNIX: Session 5 (optional)
Exploring UNIX: Session 5 (optional) Job Control UNIX is a multi- tasking operating system, meaning you can be running many programs simultaneously. In this session we will discuss the UNIX commands for
More informationHands-on Keyboard: Cyber Experiments for Strategists and Policy Makers
Hands-on Keyboard: Cyber Experiments for Strategists and Policy Makers Review of the Linux File System and Linux Commands 1. Introduction Becoming adept at using the Linux OS requires gaining familiarity
More informationCmpt 101 Lab 1 - Outline
Cmpt 101 Lab 1 - Outline Instructions: Work through this outline completely once directed to by your Lab Instructor and fill in the Lab 1 Worksheet as indicated. Contents PART 1: GETTING STARTED... 2 PART
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 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 informationChapter 4. Unix Tutorial. Unix Shell
Chapter 4 Unix Tutorial Users and applications interact with hardware through an operating system (OS). Unix is a very basic operating system in that it has just the essentials. Many operating systems,
More informationCSC 101 Spring 2010 Lab #8 Report Gradesheet
CSC 101 Spring 2010 Lab #8 Report Gradesheet Name WFU Username Lab Section: A B C D Partner s Name (if you had one): Topic Points Notes Pre-lab questions 20 total - 5 at 4 points each Lab report questions
More informationLinux Tutorial #6. -rw-r csce_user csce_user 20 Jan 4 09:15 list1.txt -rw-r csce_user csce_user 26 Jan 4 09:16 list2.
File system access rights Linux Tutorial #6 Linux provides file system security using a three- level system of access rights. These special codes control who can read/write/execute every file and directory
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 informationThe Ip address / Name value should be: srvvcenter-cis
CIS133 Installation Lab #1 - DESKTOP CLIENT OpenSUSE Install. Before beginning the installation, create a virtual machine in which you will install the operating system. 1) Open the VMware vsphere Client.
More informationCS/CIS 249 SP18 - Intro to Information Security
Lab assignment CS/CIS 249 SP18 - Intro to Information Security Lab #2 - UNIX/Linux Access Controls, version 1.2 A typed document is required for this assignment. You must type the questions and your responses
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 informationOptional Labs. 0Handouts: 2002 ProsoftTraining All Rights Reserved. Version 3.07
0Handouts: Optional Lab 1-1: Understanding the /etc/securetty file In this lab, you will examine a PAM component, the /etc/securetty file. 1. Boot into Linux as root. Open a Telnet client and attempt to
More informationIntroduction to Linux
Introduction to Linux Mukesh Pund Principal Scientist, NISCAIR, New Delhi, India History In 1969, a team of developers developed a new operating system called Unix which was written using C Linus Torvalds,
More informationCommands are in black
Starting From the Shell Prompt (Terminal) Commands are in black / +--------+---------+-------+---------+---------+------ +------ +------ +------ +------ +------ +-- Bin boot dev etc home media sbin bin
More informationLinux basics U3A in Bath. Linux Principles. by Andy Pepperdine
Linux Principles by Andy Pepperdine This paper is intended to provide the reader with an understanding of the principles on which a Linux system operates and can be maintained. There is so much in the
More informationCOMS 6100 Class Notes 3
COMS 6100 Class Notes 3 Daniel Solus September 1, 2016 1 General Remarks The class was split into two main sections. We finished our introduction to Linux commands by reviewing Linux commands I and II
More informationChapter 1 An Introduction to C++, Unix, SSH and Komodo Edit
Chapter 1 An Introduction to C++, Unix, SSH and Komodo Edit Contents 1 An Introduction to C++, Unix, SSH and Komodo Edit 1.1 Introduction 1.2 The C++ Language 1.2.1 A Brief Introduction 1.2.1.1 Recommended
More informationLinux Essentials Objectives Topics:
Linux Essentials Linux Essentials is a professional development certificate program that covers basic knowledge for those working and studying Open Source and various distributions of Linux. Exam Objectives
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 informationChapter 1 An Introduction to C++, Unix, SSH and Komodo Edit
Chapter 1 An Introduction to C++, Unix, SSH and Komodo Edit A portion of this lab is to be done during the scheduled lab time. The take-home programming assignment is to be turned in before the next lab;
More informationCS197U: A Hands on Introduction to Unix
CS197U: A Hands on Introduction to Unix Lecture 3: UNIX Operating System Organization Tian Guo CICS, Umass Amherst 1 Reminders Assignment 2 is due THURSDAY 09/24 at 3:45 pm Directions are on the website
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 informationBrief Linux Presentation. July 10th, 2006 Elan Borenstein
Brief Linux Presentation July 10th, 2006 Elan Borenstein History 1965 - Bell Labs (AT&T), GE and MIT Project to develop a new (multiuser, multitasking) operating system - MULTICS. (not successful) History
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 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 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 informationThe Ip address / Name value should be: srvvcenter-cis
CIS133 Installation Lab #1 - DESKTOP CLIENT OpenSUSE Install. Before beginning the installation, create a virtual machine in which you will install the operating system. 1) Open the VMware vsphere Client.
More informationLab 3a Using the vi editor
Lab 3a Using the vi editor Objectives: Become familiar with the vi Editor Review the three vi Modes Review keystrokes to move between vi modes Create a new file with vi Editor Invoke vi with show mode
More informationEECS 2031E. Software Tools Prof. Mokhtar Aboelaze
EECS 2031 Software Tools Prof. Mokhtar Aboelaze Footer Text 1 EECS 2031E Instructor: Mokhtar Aboelaze Room 2026 CSEB lastname@cse.yorku.ca x40607 Office hours TTH 12:00-3:00 or by appointment 1 Grading
More informationReview of Fundamentals. Todd Kelley CST8207 Todd Kelley 1
Review of Fundamentals Todd Kelley kelleyt@algonquincollege.com CST8207 Todd Kelley 1 GPL the shell SSH (secure shell) the Course Linux Server RTFM vi general shell review 2 These notes are available on
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 informationCSE 101 Introduction to Computers Development / Tutorial / Lab Environment Setup
CSE 101 Introduction to Computers Development / Tutorial / Lab Environment Setup Purpose: The purpose of this lab is to setup software that you will be using throughout the term for learning about Python
More informationHitchhiker s Guide to VLSI Design with Cadence & Synopsys
Hitchhiker s Guide to VLSI Design with Cadence & Synopsys David Money Harris 17 January 2009 The VLSI design tools at Harvey Mudd College are hosted on a Linux server named chips. This document introduces
More informationThis is Lab Worksheet/Installation 7
This is Lab Worksheet/Installation 7 This Lab Worksheet/Installation contains essential installation work needed for your upcoming Assignments. You do not have to hand in this Lab Worksheet, but there
More informationA shell can be used in one of two ways:
Shell Scripting 1 A shell can be used in one of two ways: A command interpreter, used interactively A programming language, to write shell scripts (your own custom commands) 2 If we have a set of commands
More informationCS 460 Linux Tutorial
CS 460 Linux Tutorial http://ryanstutorials.net/linuxtutorial/cheatsheet.php # Change directory to your home directory. # Remember, ~ means your home directory cd ~ # Check to see your current working
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 informationShell Scripting. Todd Kelley CST8207 Todd Kelley 1
Shell Scripting Todd Kelley kelleyt@algonquincollege.com CST8207 Todd Kelley 1 If we have a set of commands that we want to run on a regular basis, we could write a script A script acts as a Linux command,
More informationConfiguring Your Account (40 points)
This assignment assumes you have read Chapters 2, 3, 4 and 5 of Sobell. Some specific cross-references may also be given in the questions below. Part I Configuring Your Account (40 points) For this part
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 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 informationCSE 390a Lecture 2. Exploring Shell Commands, Streams, Redirection, and Processes
CSE 390a Lecture 2 Exploring Shell Commands, Streams, Redirection, and Processes slides created by Marty Stepp, modified by Jessica Miller & Ruth Anderson http://www.cs.washington.edu/390a/ 1 2 Lecture
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 informationOperating Systems Lab 1 (Users, Groups, and Security)
Operating Systems Lab 1 (Users, Groups, and Security) Overview This chapter covers the most common commands related to users, groups, and security. It will also discuss topics like account creation/deletion,
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 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 informationLinux Operating System Environment Computadors Grau en Ciència i Enginyeria de Dades Q2
Linux Operating System Environment Computadors Grau en Ciència i Enginyeria de Dades 2017-2018 Q2 Facultat d Informàtica de Barcelona This first lab session is focused on getting experience in working
More informationCST Lab #5. Student Name: Student Number: Lab section:
CST8177 - Lab #5 Student Name: Student Number: Lab section: Working with Regular Expressions (aka regex or RE) In-Lab Demo - List all the non-user accounts in /etc/passwd that use /sbin as their home directory.
More informationTable Of Contents. 1. Zoo Information a. Logging in b. Transferring files 2. Unix Basics 3. Homework Commands
Table Of Contents 1. Zoo Information a. Logging in b. Transferring files 2. Unix Basics 3. Homework Commands Getting onto the Zoo Type ssh @node.zoo.cs.yale.edu, and enter your netid pass when prompted.
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 informationThis is Lab Worksheet 7 - not an Assignment
This is Lab Worksheet 7 - 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 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 informationRemote Access to the CIS VLab (308)
Remote Access to the CIS VLab (308) This Howto shows to remotely access the CIS 90 Arya VMs (virtual machines) in the CIS Virtual Lab (VLab). The CIS VLab was developed to remotely provide Distance Education
More informationCTEC1863/2018F Bonus Lab Page 1 of 5
CTEC1863/2018F Bonus Lab Page 1 of 5 Bonus Lab: OpenSUSE Linux Rescue In this lab, we will install an OpenSUSE virtual machine. However, both the non-root user and the root passwords are unknown. To fix
More informationUNIX Essentials Featuring Solaris 10 Op System
A Active Window... 7:11 Application Development Tools... 7:7 Application Manager... 7:4 Architectures - Supported - UNIX... 1:13 Arithmetic Expansion... 9:10 B Background Processing... 3:14 Background
More informationD. Delete the /var/lib/slocate/slocate.db file because it buffers all search results.
Volume: 230 Questions Question No: 1 You located a file created in /home successfully by using the slocate command. You found that the slocate command could locate that file even after deletion. What could
More informationCSC UNIX System, Spring 2015
CSC 352 - UNIX System, Spring 2015 Study guide for the CSC352 midterm exam (20% of grade). Dr. Dale E. Parson, http://faculty.kutztown.edu/parson We will have a midterm on March 19 on material we have
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 informationChapter 6. Boot time configuration. Chapter 6 Boot time configuration
Chapter 6. Boot time configuration Chapter 6 Boot time configuration Last revised: 20/6/2004 Chapter 6 Outline In this chapter we will learn about: How the system boots How to configure the boot loaders
More informationUNIX, GNU/Linux and simple tools for data manipulation
UNIX, GNU/Linux and simple tools for data manipulation Dr Jean-Baka DOMELEVO ENTFELLNER BecA-ILRI Hub Basic Bioinformatics Training Workshop @ILRI Addis Ababa Wednesday December 13 th 2017 Dr Jean-Baka
More informationcommands exercises Linux System Administration and IP Services AfNOG 2015 Linux Commands # Notes
Linux System Administration and IP Services AfNOG 2015 Linux Commands # Notes * Commands preceded with "$" imply that you should execute the command as a general user not as root. * Commands preceded with
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 informationCS 307: UNIX PROGRAMMING ENVIRONMENT FIND COMMAND
CS 307: UNIX PROGRAMMING ENVIRONMENT FIND COMMAND Prof. Michael J. Reale Fall 2014 Finding Files in a Directory Tree Suppose you want to find a file with a certain filename (or with a filename matching
More information1. What statistic did the wc -l command show? (do man wc to get the answer) A. The number of bytes B. The number of lines C. The number of words
More Linux Commands 1 wc The Linux command for acquiring size statistics on a file is wc. This command provides the line count, word count and number of bytes in a file. Open up a terminal, make sure you
More informationCSC209H Lecture 1. Dan Zingaro. January 7, 2015
CSC209H Lecture 1 Dan Zingaro January 7, 2015 Welcome! Welcome to CSC209 Comments or questions during class? Let me know! Topics: shell and Unix, pipes and filters, C programming, processes, system calls,
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 informationScripting. Shell Scripts, I/O Redirection, Ownership and Permission Concepts, and Binary Numbers
Scripting Shell Scripts, I/O Redirection, Ownership and Permission Concepts, and Binary Numbers Adapted from Practical Unix and Programming Hunter College Copyright 2006 2009 Stewart Weiss What a shell
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 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 informationCSE 265: System and Network Administration
CSE 265: System and Network Administration System startup and shutdown Bootstrapping Booting PCs Boot loaders Booting into single user mode Startup scripts Rebooting and shutting down Bootstrapping i.e.,
More informationCSE 265: System and Network Administration
CSE 265: System and Network Administration System startup and shutdown Bootstrapping Booting PCs Boot loaders Booting into single user mode Startup scripts Rebooting and shutting down Bootstrapping i.e.,
More informationCS 143A. Principles of Operating Systems. Instructor : Prof. Anton Burtsev
CS 143A Principles of Operating Systems Instructor : Prof. Anton Burtsev (aburtsev@uci.edu) Assistants : Junjie Shen junjies1@uci.edu Vikram Narayanan narayav1@uci.edu Biswadip Maity (Deep) Email : maityb@uci.edu
More informationOpen up a terminal, make sure you are in your home directory, and run the command.
More Linux Commands 0.1 wc The Linux command for acquiring size statistics on a file is wc. This command can provide information from line count, to bytes in a file. Open up a terminal, make sure you are
More informationIntroduction to Unix May 24, 2008
Introduction to Unix May 24, 2008 Exercises: Privileges REFERENCE Reference: Shah, Steve, "Linux Administration: A Beginner's Guide", 2nd. ed., Osborne press, New York, NY. If you look at files in a directory
More informationEach student will work independently on several tasks. This assignment will demonstrate the student's ability to:
ULI101 Assignment 2 - Summer 2009 Due: Saturday, August 8, 2009, Midnight Worth: 10% of final mark Each student will work independently on several tasks. This assignment will demonstrate the student's
More informationCS 300. Data Structures
CS 300 Data Structures Start VirtualBox Search or Windows Run C:\CS300 Launches CS 300/360 Virtual Machine (Eventually) Logon with Zeus password Syllabus http://zeus.cs.pacificu.edu/chadd/cs300f18/syllabus.html
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 information