CEG 333 Introduction to UNIX Wright State University Midterm Examination #1
|
|
- Gabriel Manning
- 6 years ago
- Views:
Transcription
1 CEG 333 Introduction to UNIX Wright State University Midterm Examination #1 Fall Quarter, 2005 Name: Student Number: READ THESE INSTRUCTIONS This is an open-book exam. The use of the notes contained in your class portfolio is permitted. The questions on this examination require you to provide answers similar to those you have seen in lecture, used in the course homework assignments, or presented in the course textbook. Answer all questions in the spaces indicated and only in the spaces indicated. Read each question carefully and work as rapidly as you can without being careless. Academic Honesty At the end of the examination, please sign: In recognition of and in the spirit of the Wright State University policies of academic honesty, I certify that I have neither given nor received unpermitted aid in this examination. Signature: Only questions about these instructions, typing, or copying errors will be answered during the exam. If you are not sure what a question means, state your interpretation and proceed. Use the most direct interpretation and select the best answer for that interpretation. DO NOT BEGIN UNTIL INSTRUCTED TO DO SO
2 Dr. Doom Page 2 of 6 Consider the following typescript when answering the questions on this page. Do not assume that any other commands are executed between the creation of this typescript and the command answering the question. <w001ted@unixapps1:~ > echo $HOME /common/users2/cse/w001ted <w001ted@unixapps1:~ > pwd /common/users2/cse/w001ted <w001ted@unixapps1:~ > ls l drwx w001ted users 512 Sep bin drwx w001ted users 512 Sep 25 21:34 reddwarf drwx w001ted users 512 Sep 25 21:34 tmp <w001ted@unixapps1:~ > ls l reddwarf/ drwx w001ted users 512 Sep 25 21:34 starbug1 drwx w001ted users 512 Sep 25 21:33 starbug2 <w001ted@unixapps1:~ > ls l reddwarf/starbug1 -rw w001ted users 0 Sep 25 21:10 lister -rw w001ted users 0 Sep 25 21:10 thecat <w001ted@unixapps1:~ > ls l reddwarf/starbug2 -rw w001ted users 0 Sep 25 21:33 holly -rw w001ted users 0 Sep 25 21:30 kryten -rw w001ted users 0 Sep 25 21:30 rimmer 1. Which of the following will move kryten from starbug2 into starbug1? a. mv ~/reddwarf/starbug2/kryten reddwarf/starbug1 b. mv reddwarf/starbug2/kryten ~/reddwarf/starbug1/kryten c. mv starbug2/kryten starbug1/kryten e. a. b. and c. 2. Which of the following commands would change your current directory to starbug2? a. cd starbug2 b. cd ~/reddwarf/starbug2 c. cd /common/users2/cse/w001ted/reddwarf/starbug2 3. Which of the following are absolute paths to the file holly? a. /reddwarf/starbug2/holly b. ~/reddwarf/starbug2/holly c. /common/users2/cse/w001ted/reddwarf/starbug2/holly 4. Which of the following commands will create a directory named ace in reddwarf? a. makedir reddwarf/ace b. newdir ace c. nwdir reddwarf/ace d. nwdir ace e. mkdir reddwarf/ace 5. Which of the following commands would remove the file named rimmer? a. rm rimmer b. rm starbug2/rimmer c. rm reddwarf/starbug2/rimmer d. none of the above e. all of the above
3 Dr. Doom Page 3 of 6 Consider the following typescript when answering questions 6-10 on this page. <w001ted@unixapps1:~ > /bin/pwd /common/users2/cse/w001ted <w001ted@unixapps1:~ > echo $PATH /bin:/usr/bin:/usr/ucb:/usr/xpg4/bin:. <w001ted@unixapps1:~ > alias script /bin/who <w001ted@unixapps1:~ > 6. If an executable shell script called runme exists in all of the directories of the path, which command will be executed by this command: $ runme a. /bin/runme b. /usr/bin/runme c. /usr/ucb/runme d. /usr/xpg4/runme e. runme in your current directory 7. If an executable shell script called script exists in all of the directories of the path, which command will be executed by this command: $ script a. /bin/script b. /usr/bin/script c. script in your current directory d. /bin/who e. /bin/ls 8. For the questions above, which of the following commands could you have used to determine which command would be executed? a. findcommand b. ls c. path d. which 9. If you d like to execute the command poweroff that is only available in /usr/sbin/, which of the following commands would work (assuming that you have appropriate permissions)? a. poweroff b. /usr/sbin/poweroff c. ~/poweroff e. none of the above 10. Which command would remove an alias that you had previously defined for who? a. rmalias who b. delalias who c. alias who d. unalias who e. c. and d. 11. Which of the following commands would list ALL of the files in a directory, including dot files? a. ls a b. ls d c. ls l d. ls x e. ls F 12. The pwd command will return the name of your current directory. What is pwd an acronym for? a. print which directory b. push working directory c. print working directory d. path of which directory e. process which directory
4 Dr. Doom Page 4 of 6 Consider the following typescript when answering questions on this page. heartofgold@gandalf:~/hitchhikers> /bin/ls -l total 64 dr-xr--r-- 2 heartofgold hitchhikers 24 Sep 24 13:11 dir1 -rw----r-- 1 heartofgold hitchhikers 2938 Sep 24 13:51 arthur drwxr--r-- 2 heartofgold hitchhikers 8216 Sep 24 13:59 marvin -r heartofgold hitchhikers 18 Sep 24 13:37 trillian -rwxr-xr-x 1 heartofgold hitchhikers 176 Sep 24 13:51 zaphod 13. Which elements of the file listing above are directories? a. arthur b. marvin c. trillian d. zaphod e. a. and b. 14. Who is able to read the contents of the file arthur? a. user heartofgold b. anyone in group hitchhikers c. everyone (all) d. a. and c. e. a. and b. 15. What actions could you execute if you were currently in the directory dir1? a. create a new file b. read an existing file c. delete an existing file d. b. and c. 16. Currently, the file trillian is only readable by heartofgold. Which of the following commands would make it also readable by the group hitchhikers? a. chmod 444 trillian b. chmod g+r trillian c. chmod 404 trillian e. a and c. 17. If all of the elements of the listing that are not directories are files that contain shell scripts, which are shell scripts that could be executed by heartofgold? a. arthur b. marvin c. zaphod d. a. and c. 18. Which of the following commands would remove group read permission from file zaphod? a. chmod g-r zaphod b. chgrp zaphod c. chgrp read zaphod d. chmod g-x zaphod e. chgrp g-r zaphod 19. Which of the following commands would execute a file listing of your current directory and write that listing into a file named output. a. ls; output b. ls output c. ls > output d. ls && output e. c. and d. 20. Which of the following commands would tell you your current terminal emulation? a. echo TERM b. echo $TERM c. echo $TERM
5 Dr. Doom Page 5 of 6 Consider the following typescript when answering the questions on this page. serenity@paladin:~/firefly> /bin/ls -l total 64 -rw-r--r--1 serenity firefly 821 Sep 24 13:54 book -rw-r--r--1 serenity firefly 2938 Sep 24 17:51 inara -rw-r--r--1 serenity firefly 288 Sep 24 17:51 jayne -rw-r--r--1 serenity firefly 2918 Sep 24 17:51 kaylee -rwxr-xr-x1 serenity firefly 176 Sep 24 08:31 mal -rwxr-xr-x1 serenity firefly 143 Sep 24 08:31 river -rwxr-xr-x1 serenity firefly 189 Sep 24 08:31 simon -rw serenity firefly 45 Sep 24 12:32 wash -rw-rw-r--1 serenity firefly 841 Sep 24 13:54 zoe 21. Which of the following commands will produce a listing that includes the file mal? a. ls b. ls m* c. ls?a* d. ls mal* e. all of the above 22. Which of the following commands will produce a listing that includes the files inara and jayne? a. ls??a* b. ls [ij]???[a-g] c. ls *a* d. a. and c. 23. Which of the following commands will list ONLY the files jayne and kaylee? a. ls *y* b. ls?ay*e c. ls *e 24. How many files will be listed by this command: /bin/ls?a*l* a. 1 b. 2 c. 3 d. 4 e Which files will be listed by this command: /bin/ls??*o* a. book b. simon c. zoe 26. Which files will be listed by this command: /bin/ls {s,r,}i* a. simon b. inara c. river d. all of the above e. a. and b.
6 Dr. Doom Page 6 of 6 Consider this typescript and man page when answering the questions on this page. babylon5@paladin:~/b5> /bin/ls -l -rw-r--r--1 babylon5 b5 821 Sep 24 13:54 ivanova -rw babylon5 b Sep 24 17:51 marcus -rw-r--r--1 babylon5 b5 288 Sep 24 17:51 sinclair babylon5@paladin:~/b5> umask 77 User Commands NAME cp - copy files cp(1) SYNOPSIS /usr/bin/cp [ -ip ] source_file target_file /usr/bin/cp -r -R [ -fip ] source_dir... target In the first synopsis form, neither source_file nor target_file are directory files, nor can they have the same name. The cp utility will copy the contents of source_file to the destination path named by target_file. If target_file exists, cp will overwrite its contents, but the mode (and ACL if applicable), owner, and group associated with it are not changed. The last modification time of target_file and the last access time of source_file are set to the time the copy was made. If target_file does not exist, cp creates a new file named target_file that has the same mode as source_file except that the sticky bit is not set unless the user is superuser; the owner and group of target_file are those of the user. If target_file is a link to another file, cp will overwrite the link destination with the contents of source_file; the link(s) from target_file will remain. In the second synopsis form, one or more directories speci fied by source_dir are copied to the directory specified by target. Either -r or -R must be specified. For each source_dir, cp will copy all files and subdirectories. -i Interactive. cp will prompt for confirmation whenever the copy would overwrite an existing target. A y answer means that the copy should proceed. Any other answer prevents cp from overwriting target. -r Recursive. cp will copy the directory and all its files, including any subdirectories and their files to target. -R Same as -r, except pipes are replicated, not read from. -p Preserve. cp duplicates not only the contents of source_file, but also preserves the owner and group id, permissions modes, modification and access time, and ACLs if applicable. The command will not fail if unable to preserve modification and access time or permission modes. If unable to preserve owner and group id, cp will not fail, and it will clear S_ISUID and S_ISGID bits in the target. cp will print a diagnostic message to stderr and return a non-zero exit status if unable to clear these bits. In order to preserve the owner and group id, permission modes, and modification and access times, users must have the appropriate file access permissions; this includes being superuser or the same owner id as the destination file. 27. Which of the following commands will copy the contents of one entire directory dir1 into a new identical directory dir2 (both in your current directory)? a. cp dir1 dir2 b. cp R dir1 dir2 c. cp r dir1 dir2 d. cp f dir1 dir2 28. Which of the following will copy ivanova onto sinclair without asking for confirmation? a. cp -i ivanova sinclair b. cp -I ivanova sinclair c. cp ivanova sinclair d. cp -p ivanova sinclair e. c. and d. 29. If the command $ cp -p sinclair valen is executed, which of the following shows the permissions of the new file valen? a b. -rw-r--r-- c. -rwx d. -rw-r--rwe. unknown 30. If the command $ /bin/touch delenn is used to create a new file called delenn, which of the following shows the permissions of the new file delenn? a b. -rw-r--r-- c. -rwx d. -rw-r--r-- e. unknown
Week 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 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 informationLecture 2b. Pathnames, files, special characters in filenames, and file permissions. COP 3353 Introduction to UNIX, FALL 2013
Lecture 2b Pathnames, files, special characters in filenames, and file permissions. COP 3353 Introduction to UNIX, FALL 2013 Files Files A well defined repository of information Program or component of
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 informationIntroduction to the Linux Command Line
Introduction to the Linux Command Line May, 2015 How to Connect (securely) ssh sftp scp Basic Unix or Linux Commands Files & directories Environment variables Not necessarily in this order.? Getting Connected
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 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 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 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 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 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 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 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 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 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 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 informationCSCI 2132 Software Development. Lecture 5: File Permissions
CSCI 2132 Software Development Lecture 5: File Permissions Instructor: Vlado Keselj Faculty of Computer Science Dalhousie University 14-Sep-2018 (5) CSCI 2132 1 Files and Directories Pathnames Previous
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 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 informationThe Unix Shell. Permissions
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 informationBasic Unix Command. It is used to see the manual of the various command. It helps in selecting the correct options
Basic Unix Command The Unix command has the following common pattern command_name options argument(s) Here we are trying to give some of the basic unix command in Unix Information Related man It is used
More informationSECTION -C. Getting Started with UNIX
Lecture 15 SECTION -C Getting Started with UNIX Introduction Changing permission modes Absolute & Relative Permissions Changing file permissions : chmod A file or directory is created with a default set
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 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 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 informationPractical 4. Linux Commands: Working with Directories
Practical 4 Linux Commands: Working with Directories 1. pwd: pwd stands for Print Working Directory. As the name states, command pwd prints the current working directory or simply the directory user is,
More informationChapter 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 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 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 informationCSE 303 Lecture 4. users/groups; permissions; intro to shell scripting. read Linux Pocket Guide pp , 25-27, 61-65, , 176
CSE 303 Lecture 4 users/groups; permissions; intro to shell scripting read Linux Pocket Guide pp. 19-20, 25-27, 61-65, 118-119, 176 slides created by Marty Stepp http://www.cs.washington.edu/303/ 1 Lecture
More information-1- csh cd. cd alias!! ; set prompt=" pwd % " 16 cd. 17 cd.. 18 his /home% set prompt. alias. yasuoka : root :
-1- csh 4 root root prompt set prompt pwd % prompt alias alias pwd % alias cd \!\! ; set prompt=" pwd % " pwd % cd. cd.. his 9 set prompt= pwd % 10 cd 11 set prompt=" pwd % " 12 cd.. 13 set prompt= pwd
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 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 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 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 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 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 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 Linux Part I: The Filesystem Luca Heltai
The 2nd workshop on High Performance Computing Introduction to Linux Part I: The Filesystem Luca Heltai SISSA/eLAB - Trieste Adapted from a presentation by Michael Opdenacker Free Electrons http://free-electrons.com
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 informationPermission and Ownership
Permission and Ownership 1. Understanding file and directory ownership Every file on your Linux system, including directories, is owned by a specific user and group. Therefore, file permissions are defined
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 informationSystem Administration
Süsteemihaldus MTAT.08.021 System Administration UNIX shell basics Name service DNS 1/69 Command Line Read detailed manual for specific command using UNIX online documentation or so called manual (man)
More informationCST Lab 2 Review #1
CST8177 - Lab 2 Review #1 Student Name Student number Section Objectives To review command line features, file system access, and permissions Lab Outcome A review of working with the command line A review
More information5/8/2012. Encryption-based Protection. Protection based on Access Permission (Contd) File Security, Setting and Using Permissions Chapter 9
File Security, Setting and Using Permissions Chapter 9 To show the three protection and security mechanisms that UNIX provides To describe the types of users of a UNIX file To discuss the basic operations
More informationBasic Unix Commands. CGS 3460, Lecture 6 Jan 23, 2006 Zhen Yang
Basic Unix Commands CGS 3460, Lecture 6 Jan 23, 2006 Zhen Yang For this class you need to work from your grove account to finish your homework Knowing basic UNIX commands is essential to finish your homework
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 informationUnix as a Platform Exercises + Solutions. Course Code: OS 01 UNXPLAT
Unix as a Platform Exercises + Solutions Course Code: OS 01 UNXPLAT Working with Unix Most if not all of these will require some investigation in the man pages. That's the idea, to get them used to looking
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 informationGetting started with Hugs on Linux
Getting started with Hugs on Linux COM1022 Functional Programming Techniques Dr Hans Georg Schaathun University of Surrey Autumn 2009 Week 7 Dr Hans Georg Schaathun Getting started with Hugs on Linux Autumn
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 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 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 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 informationYou will automatically be in your user (home) directory when you login.
Directory structure / (root) bin dev etc lib users users2 tmp These directories typically contain system libraries, executable binary files, device handlers and drivers, etc. The user home directories
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 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 Hugs on Linux
Getting started with Hugs on Linux CS190 Functional Programming Techniques Dr Hans Georg Schaathun University of Surrey Autumn 2008 Week 1 Dr Hans Georg Schaathun Getting started with Hugs on Linux Autumn
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 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: 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 informationCSN08101 Digital Forensics. Module Leader: Dr Gordon Russell Lecturers: Robert Ludwiniak
CSN08101 Digital Forensics Lecture 2: Essential Linux for Forensics Module Leader: Dr Gordon Russell Lecturers: Robert Ludwiniak Essential Linux for Forensics You will learn in this lecture: Essential
More informationIntroduction to Linux
Introduction to Linux Phil Mercurio The Scripps Research Institute mercurio@scripps.edu 1 Session Overview What is Linux Shells & Windows The Linux File System Assorted Commands 2 What Is Linux? Linux
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 informationStudent Remote Login Procedure (see picture below): 1. Start SSH Secure Shell 2. Click the computer icon (4 th on the toolbar) 3.
Student Remote Login Procedure (see picture below): 1. Start SSH Secure Shell 2. Click the computer icon (4 th on the toolbar) 3. Enter stargate.ncc.edu in the text field labeled Host Name: 4. Enter the
More informationUnix Handouts. Shantanu N Kulkarni
Unix Handouts Shantanu N Kulkarni Abstract These handouts are meant to be used as a study aid during my class. They are neither complete nor sincerely accurate. The idea is that the participants should
More informationCS 2505 Computer Organization I Test 1
Instructions: Print your name in the space provided below. This examination is closed book and closed notes, aside from the permitted one-page formula sheet. No calculators or other computing devices may
More informationNational University of Computer and Emerging Sciences Operating System Lab - 02 Lab Manual
National University of Computer and Emerging Sciences Operating System Lab - 02 Lab Manual Objective This lab is all about running commands in Ubuntu Terminal and compiling C program in Ubuntu Table of
More informationUNIX COMMANDS AND SHELLS. UNIX Programming 2015 Fall by Euiseong Seo
UNIX COMMANDS AND SHELLS UNIX Programming 2015 Fall by Euiseong Seo What is a Shell? A system program that allows a user to execute Shell functions (internal commands) Other programs (external commands)
More informationUnix. 1 tblgrant projects 0 Jun 17 15:40 doc1.txt. documents]$ touch doc2.txt documents]$ ls -l total 0
Unix Each one of you will get an account on silo.cs.indiana.edu where you will do most of your work. You will need to become familiar with the Unix environment (file system and a number of Unix commands)
More informationread: permitted to read the contents of directory ( view files and sub-directories in that directory ).
File permissions Three file permissions:- read: permitted to read the contents of file. write: permitted to write to the file. execute: permitted to execute the file as a program/script. Three directory
More informationFiles (review) and Regular Expressions. Todd Kelley CST8207 Todd Kelley 1
Files (review) and Regular Expressions Todd Kelley kelleyt@algonquincollege.com CST8207 Todd Kelley 1 midterms (Feb 11 and April 1) Files and Permissions Regular Expressions 2 Sobel, Chapter 6 160_pathnames.html
More informationAliases are set manually or in a login script. Aliases that were set manually will be gone the next time you login.
Page 1 and 2: question without commands. Page 3 7 : questions with answers. Aliases are set manually or in a login script. Aliases that were set manually will be gone the next time you login. 1. List your
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 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 informationCS CS Tutorial 2 2 Winter 2018
CS CS 230 - Tutorial 2 2 Winter 2018 Sections 1. Unix Basics and connecting to CS environment 2. MIPS Introduction & CS230 Interface 3. Connecting Remotely If you haven t set up a CS environment password,
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 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 informationbash startup files Linux/Unix files stty Todd Kelley CST8207 Todd Kelley 1
bash startup files Linux/Unix files stty Todd Kelley kelleyt@algonquincollege.com CST8207 Todd Kelley 1 midterms (Feb 27 and April 10) bash startup files More Linux Files review stty 2 We customize our
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 informationCS 2505 Computer Organization I Test 1
Instructions: Print your name in the space provided below. This examination is closed book and closed notes, aside from the permitted one-page formula sheet. No calculators or other computing devices may
More informationThis section reviews UNIX file, directory, and system commands, and is organized as follows:
Basic UNIX Commands Created by : M.S. Schmalz (Thank you Mark!) This section reviews UNIX file, directory, and system commands, and is organized as follows: 3.1. The UNIX Command Line Interface 3.2. Overview
More informationCourse 144 Supplementary Materials. UNIX Fundamentals
Course 144 Supplementary Materials UNIX Fundamentals 1 Background to UNIX Command Fundamentals This appendix provides a overview of critical commands and concepts Prerequisite knowledge attendees should
More informationd. 1 e. test: $a: integer expression expected
102 M/C Questions -1- PRINT Name: LAB Section: Test Version: 030 One-Answer Multiple Choice 102 Questions Read all the words of these instructions and both sides (back and front) of all pages. Use your
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 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 informationMTU Computer Structure
1 MTU Computer Structure Home directory: h drive Same for Suns & PC s Location to store files Organize files by creating appropriate directories (folders) Subdirectory - any directory within in another
More informationCSE II-Sem)
a) Write a shell script that displays a list of all the files in the current directory to which the user has read, write and execute permissions. b) Develop an interactive script that asks for a word and
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 informationFilesystem and common commands
Filesystem and common commands Unix computing basics Campus-Booster ID : **XXXXX www.supinfo.com Copyright SUPINFO. All rights reserved Filesystem and common commands Your trainer Presenter s Name Title:
More informationIntroduction to Linux Basics Part I. Georgia Advanced Computing Resource Center University of Georgia Suchitra Pakala
Introduction to Linux Basics Part I 1 Georgia Advanced Computing Resource Center University of Georgia Suchitra Pakala pakala@uga.edu 2 OVERVIEW GACRC Introduction History Why Linux? How does Linux work?
More informationFile Security Lock Down Your Data. Brian Reames January 22, 2012
File Security Lock Down Your Data Brian Reames January 22, 2012 Table of Contents 1.0 Basic Linux Permissions...4 1.1 Determining Permissions... 5 1.2 File Permissions vs. Directory Permissions... 6 1.3
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 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 informationIntroduction to Linux Basics
Introduction to Linux Basics Part-I Georgia Advanced Computing Resource Center University of Georgia Zhuofei Hou, HPC Trainer zhuofei@uga.edu Outline What is GACRC? What is Linux? Linux Command, Shell
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 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 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 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 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 information