UNIX Is a Multi-User Operating System, If You Want to Use It, You Must First Identify Yourself to the UNIX System

Total Page:16

File Type:pdf, Size:1020Kb

UNIX Is a Multi-User Operating System, If You Want to Use It, You Must First Identify Yourself to the UNIX System Logging In • Since UNIX is a multi-user operating system, if you want to use it, you must first identify yourself to the UNIX system. You do this by logging in. Getting Started Logging In Logging In • The server we will be using for most • You can currently use: of this class is accessible through ssh the network by the name of to connect to the servers, after which you will be prompted for a ella.slis.indiana.edu username and password. The • This is the fully qualified hostname secure shell (ssh) has replaced for ella and includes the name of telnet as a more secure means to the UNIX host (ella) and the domain connect to your host. name. More on this later. Logging In Practice Logging In Practice • We will use ssh to connect to our host, ella. • Alternately, you can open the terminal application in "Utilities" and type: • Locate your terminal icon in the dock (at the bottom of your screen). $ ssh ella.slis.indiana.edu • Right-click the icon and choose "ella" 1 kerberos authentication Logging In • You will be asked for your kerberos • Once successfully logged in, a UNIX password, which should be the same system typically tells you when you password you used to log in at this lab. logged in last and from where, gives • Kerberos is a secure way to authenticate you some arbitrary text written by the across an insecure network. You and the system administrator, provides you computer you connect to prove that you with a command shell prompt, and are who you say you are without actually then waits for your commands. sending passwords across the network. Logging In Logging In • Example: • A command prompt generally ends Last login: Tue Sep 10 12:45:29 2002 from chionofuji.slis |-----------------------------------------------------------------| with either a dollar sign ( ) or a | This system is for the use of authorized users only. | $ | Individuals using this computer system without authority, or in | | excess of their authority, are subject to having all of their | percent sign (%). There are two main | activities on this system monitored and recorded by system | | personnel. | types of command shells; those | | | In the course of monitoring individuals improperly using this | | system, or in the course of system maintenance, the activities | based on a Bourne shell (i.e. sh and | of authorized users may also be monitored. | | | bash) and those based on a C shell | Anyone using this system expressly consents to such monitoring | | and is advised that if such monitoring reveals possible | | evidence of criminal activity, system personnel may provide the | (i.e. csh and tcsh). | evidence of such monitoring to law enforcement officials. | |-----------------------------------------------------------------| You have mail. $ Logging In Getting your Practice Directory • To keep you straight on which you • During this module you will be using are using, the two shells traditionally a practice directory structure use different prompts: complete with practice files and • $ for Bourne shells directories. • % for C shells. • You will now install this into your • Your account on ella uses a Bourne home directory on ella. shell (bash to be specific). More on this later. 2 Getting your Practice Directory UNIX Commands • Make sure you are logged into ella • Now you are in the system, but you and type these commands: have to know how to talk to the $ cd (press return) system. $ tar -xvf /tmp/UNIX_class.tar • There are a number of commands • You will see a list of filenames and which you need to know in order to directories scroll by. You will learn tell the system to do various things more about the command you just (show you directories, move files, used on your last day of this module. copy files, search through files, etc.). UNIX Commands UNIX Commands • UNIX Commands generally have three • UNIX Commands generally have three parts: parts: command_name command_name [options] • Example: • Example: $ ls $ ls -l Tells the system to make a list of files List files, in “long format” form (gives more information about the files) UNIX Commands UNIX Commands • UNIX Commands generally have three • UNIX Commands generally have three parts: parts: command_name [options] command_name [options][operands] • Note: In some texts and web links, • Example: options can also be referred to as $ ls -l UNIX_class “flags”. List files, in “long format” form, in the directory called ‘UNIX_class’ 3 UNIX Commands UNIX Commands • UNIX Commands generally have three • Not all commands will need all three parts: parts. In fact, some will only need command_name [options][operands] the command_name. However, others may require two [operands] • Note: In some texts and web links, operands can also be referred to as “arguments” UNIX Commands UNIX Commands • After you give your command and • Remember: press return, the ‘answer’ or ‘results’ • UNIX is case-sensitive; old.files the system gives you is called the is different from Old.Files output. When the system outputs to your screen, it is called the • The spaces between the standard output (stdout). More on command_name, the [option] and this later. the [operand] are VERY important who - Practice who - Practice • One simple UNIX command is used • Example Output to find out who is currently logged in. At the shell prompt (the $), type who. $ who herring pts/12 Jun 17 15:36 (herring.slis.indiana.edu) mnapier pts/4 Jun 14 21:29 (12-222-70-96.client.insightbb.com) mnapier pts/8 Jun 17 07:39 (dmitrii.slis.indiana.edu) $ who jfieber pts/5 Jun 17 15:56 (d-1-1.dhcp-149-159.indiana.edu) htripath pts/3 Jun 17 11:10 (lair4.slis.indiana.edu) mnapier pts/9 Jun 16 09:00 (12-222-70-96.client.insightbb.com) stevecox pts/10 Jun 17 16:51 (wireless-73-28.wireless.indiana.edu) stevecox pts/13 Jun 17 16:34 (chionofuji.slis.indiana.edu) $ 4 Directories • The information stored in the UNIX system is hierarchical. • Like the “folders” on a Mac or UNIX Directories Windows operating system, UNIX works with “directories.” Directories Directories • A directory can contain either files or more directories (often called subdirectories). • There are a number of common UNIX directories found on most systems (see page 21). Directories Directories • The ‘home’ directory is your personal • All files and directories on the system reside under subdirectory under /home. It is where you the root directory, the [ / ]. Where other directories have real names, the name of the directory at the will store all of your personal data. very top of the UNIX O/S is the forward slash (/). •Example: /home/jsmith 5 Directories Logging Out • When you are finished, always remember to type logout • On some systems you • The ‘working’ or ‘current’ directory is can type exit whatever directory you are in at the moment. or quit or Ctrl+D as well. The End… • Next… • Basic Commands 6.
Recommended publications
  • Administering Unidata on UNIX Platforms
    C:\Program Files\Adobe\FrameMaker8\UniData 7.2\7.2rebranded\ADMINUNIX\ADMINUNIXTITLE.fm March 5, 2010 1:34 pm Beta Beta Beta Beta Beta Beta Beta Beta Beta Beta Beta Beta Beta Beta Beta Beta UniData Administering UniData on UNIX Platforms UDT-720-ADMU-1 C:\Program Files\Adobe\FrameMaker8\UniData 7.2\7.2rebranded\ADMINUNIX\ADMINUNIXTITLE.fm March 5, 2010 1:34 pm Beta Beta Beta Beta Beta Beta Beta Beta Beta Beta Beta Beta Beta Notices Edition Publication date: July, 2008 Book number: UDT-720-ADMU-1 Product version: UniData 7.2 Copyright © Rocket Software, Inc. 1988-2010. All Rights Reserved. Trademarks The following trademarks appear in this publication: Trademark Trademark Owner Rocket Software™ Rocket Software, Inc. Dynamic Connect® Rocket Software, Inc. RedBack® Rocket Software, Inc. SystemBuilder™ Rocket Software, Inc. UniData® Rocket Software, Inc. UniVerse™ Rocket Software, Inc. U2™ Rocket Software, Inc. U2.NET™ Rocket Software, Inc. U2 Web Development Environment™ Rocket Software, Inc. wIntegrate® Rocket Software, Inc. Microsoft® .NET Microsoft Corporation Microsoft® Office Excel®, Outlook®, Word Microsoft Corporation Windows® Microsoft Corporation Windows® 7 Microsoft Corporation Windows Vista® Microsoft Corporation Java™ and all Java-based trademarks and logos Sun Microsystems, Inc. UNIX® X/Open Company Limited ii SB/XA Getting Started The above trademarks are property of the specified companies in the United States, other countries, or both. All other products or services mentioned in this document may be covered by the trademarks, service marks, or product names as designated by the companies who own or market them. License agreement This software and the associated documentation are proprietary and confidential to Rocket Software, Inc., are furnished under license, and may be used and copied only in accordance with the terms of such license and with the inclusion of the copyright notice.
    [Show full text]
  • Types and Programming Languages by Benjamin C
    < Free Open Study > . .Types and Programming Languages by Benjamin C. Pierce ISBN:0262162091 The MIT Press © 2002 (623 pages) This thorough type-systems reference examines theory, pragmatics, implementation, and more Table of Contents Types and Programming Languages Preface Chapter 1 - Introduction Chapter 2 - Mathematical Preliminaries Part I - Untyped Systems Chapter 3 - Untyped Arithmetic Expressions Chapter 4 - An ML Implementation of Arithmetic Expressions Chapter 5 - The Untyped Lambda-Calculus Chapter 6 - Nameless Representation of Terms Chapter 7 - An ML Implementation of the Lambda-Calculus Part II - Simple Types Chapter 8 - Typed Arithmetic Expressions Chapter 9 - Simply Typed Lambda-Calculus Chapter 10 - An ML Implementation of Simple Types Chapter 11 - Simple Extensions Chapter 12 - Normalization Chapter 13 - References Chapter 14 - Exceptions Part III - Subtyping Chapter 15 - Subtyping Chapter 16 - Metatheory of Subtyping Chapter 17 - An ML Implementation of Subtyping Chapter 18 - Case Study: Imperative Objects Chapter 19 - Case Study: Featherweight Java Part IV - Recursive Types Chapter 20 - Recursive Types Chapter 21 - Metatheory of Recursive Types Part V - Polymorphism Chapter 22 - Type Reconstruction Chapter 23 - Universal Types Chapter 24 - Existential Types Chapter 25 - An ML Implementation of System F Chapter 26 - Bounded Quantification Chapter 27 - Case Study: Imperative Objects, Redux Chapter 28 - Metatheory of Bounded Quantification Part VI - Higher-Order Systems Chapter 29 - Type Operators and Kinding Chapter 30 - Higher-Order Polymorphism Chapter 31 - Higher-Order Subtyping Chapter 32 - Case Study: Purely Functional Objects Part VII - Appendices Appendix A - Solutions to Selected Exercises Appendix B - Notational Conventions References Index List of Figures < Free Open Study > < Free Open Study > Back Cover A type system is a syntactic method for automatically checking the absence of certain erroneous behaviors by classifying program phrases according to the kinds of values they compute.
    [Show full text]
  • UNIX Workshop Series: Quick-Start Objectives
    Part I UNIX Workshop Series: Quick-Start Objectives Overview – Connecting with ssh Command Window Anatomy Command Structure Command Examples Getting Help Files and Directories Wildcards, Redirection and Pipe Create and edit files Overview Connecting with ssh Open a Terminal program Mac: Applications > Utilities > Terminal ssh –Y [email protected] Linux: In local shell ssh –Y [email protected] Windows: Start Xming and PuTTY Create a saved session for the remote host name centos.css.udel.edu using username Connecting with ssh First time you connect Unix Basics Multi-user Case-sensitive Bash shell, command-line Commands Command Window Anatomy Title bar Click in the title bar to bring the window to the front and make it active. Command Window Anatomy Login banner Appears as the first line of a login shell. Command Window Anatomy Prompts Appears at the beginning of a line and usually ends in $. Command Window Anatomy Command input Place to type commands, which may have options and/or arguments. Command Window Anatomy Command output Place for command response, which may be many lines long. Command Window Anatomy Input cursor Typed text will appear at the cursor location. Command Window Anatomy Scroll Bar Will appear as needed when there are more lines than fit in the window. Command Window Anatomy Resize Handle Use the mouse to change the window size from the default 80x24. Command Structure command [arguments] Commands are made up of the actual command and its arguments. command -options [arguments] The arguments are further broken down into the command options which are single letters prefixed by a “-” and other arguments that identify data for the command.
    [Show full text]
  • System Log Commands
    System Log Commands • system set-log , on page 2 • show system logging-level, on page 3 • show log, on page 4 System Log Commands 1 System Log Commands system set-log system set-log To set the log level and log type of messages, use the system set-log command in privileged EXEC mode. system set-log level {debug | info | warning | error | critical} logtype {configuration | operational | all} Syntax Description level Specifies the log level. debug Logs all messages. info Logs all messages that have info and higher severity level. warning Logs all messages that have warning and higher severity level. error Logs all messages that have error and higher severity level. critical Logs all messages that have critical severity level. logtype Specifies the log type. configuration Configuration log messages are recorded. operational Operational log messages are recorded. all All types of log messages are recorded. Command Default For the configuration log, info is the default level. For the operational log, warning is the default level. Command Modes Privileged EXEC (#) Command History Release Modification 3.5.1 This command was introduced. Usage Guidelines After a system reboot, the modified logging configuration is reset to the default level, that is, info for the configuration log and warning for the operational log. Example The following example shows how to configure a log level: nfvis# system set-log level error logtype all System Log Commands 2 System Log Commands show system logging-level show system logging-level To view the log level and log type settings, use the show system logging-level command in privileged EXEC mode.
    [Show full text]
  • Dell EMC Powerstore CLI Guide
    Dell EMC PowerStore CLI Guide May 2020 Rev. A01 Notes, cautions, and warnings NOTE: A NOTE indicates important information that helps you make better use of your product. CAUTION: A CAUTION indicates either potential damage to hardware or loss of data and tells you how to avoid the problem. WARNING: A WARNING indicates a potential for property damage, personal injury, or death. © 2020 Dell Inc. or its subsidiaries. All rights reserved. Dell, EMC, and other trademarks are trademarks of Dell Inc. or its subsidiaries. Other trademarks may be trademarks of their respective owners. Contents Additional Resources.......................................................................................................................4 Chapter 1: Introduction................................................................................................................... 5 Overview.................................................................................................................................................................................5 Use PowerStore CLI in scripts.......................................................................................................................................5 Set up the PowerStore CLI client........................................................................................................................................5 Install the PowerStore CLI client..................................................................................................................................
    [Show full text]
  • Epmp Command Line Interface User Guide
    USER GUIDE ePMP Command Line Interface ePMP Command Line Interface User Manual Table of Contents 1 Introduction ...................................................................................................................................... 3 1.1 Purpose ................................................................................................................................ 3 1.2 Command Line Access ........................................................................................................ 3 1.3 Command usage syntax ...................................................................................................... 3 1.4 Basic information ................................................................................................................. 3 1.4.1 Context sensitive help .......................................................................................................... 3 1.4.2 Auto-completion ................................................................................................................... 3 1.4.3 Movement keys .................................................................................................................... 3 1.4.4 Deletion keys ....................................................................................................................... 4 1.4.5 Escape sequences .............................................................................................................. 4 2 Command Line Interface Overview ..............................................................................................
    [Show full text]
  • Powerview Command Reference
    PowerView Command Reference TRACE32 Online Help TRACE32 Directory TRACE32 Index TRACE32 Documents ...................................................................................................................... PowerView User Interface ............................................................................................................ PowerView Command Reference .............................................................................................1 History ...................................................................................................................................... 12 ABORT ...................................................................................................................................... 13 ABORT Abort driver program 13 AREA ........................................................................................................................................ 14 AREA Message windows 14 AREA.CLEAR Clear area 15 AREA.CLOSE Close output file 15 AREA.Create Create or modify message area 16 AREA.Delete Delete message area 17 AREA.List Display a detailed list off all message areas 18 AREA.OPEN Open output file 20 AREA.PIPE Redirect area to stdout 21 AREA.RESet Reset areas 21 AREA.SAVE Save AREA window contents to file 21 AREA.Select Select area 22 AREA.STDERR Redirect area to stderr 23 AREA.STDOUT Redirect area to stdout 23 AREA.view Display message area in AREA window 24 AutoSTOre ..............................................................................................................................
    [Show full text]
  • Unix: Beyond the Basics
    Unix: Beyond the Basics BaRC Hot Topics – September, 2018 Bioinformatics and Research Computing Whitehead Institute http://barc.wi.mit.edu/hot_topics/ Logging in to our Unix server • Our main server is called tak4 • Request a tak4 account: http://iona.wi.mit.edu/bio/software/unix/bioinfoaccount.php • Logging in from Windows Ø PuTTY for ssh Ø Xming for graphical display [optional] • Logging in from Mac ØAccess the Terminal: Go è Utilities è Terminal ØXQuartz needed for X-windows for newer OS X. 2 Log in using secure shell ssh –Y user@tak4 PuTTY on Windows Terminal on Macs Command prompt user@tak4 ~$ 3 Hot Topics website: http://barc.wi.mit.edu/education/hot_topics/ • Create a directory for the exercises and use it as your working directory $ cd /nfs/BaRC_training $ mkdir john_doe $ cd john_doe • Copy all files into your working directory $ cp -r /nfs/BaRC_training/UnixII/* . • You should have the files below in your working directory: – foo.txt, sample1.txt, exercise.txt, datasets folder – You can check they’re there with the ‘ls’ command 4 Unix Review: Commands Ø command [arg1 arg2 … ] [input1 input2 … ] $ sort -k2,3nr foo.tab -n or -g: -n is recommended, except for scientific notation or start end a leading '+' -r: reverse order $ cut -f1,5 foo.tab $ cut -f1-5 foo.tab -f: select only these fields -f1,5: select 1st and 5th fields -f1-5: select 1st, 2nd, 3rd, 4th, and 5th fields $ wc -l foo.txt How many lines are in this file? 5 Unix Review: Common Mistakes • Case sensitive cd /nfs/Barc_Public vs cd /nfs/BaRC_Public -bash: cd: /nfs/Barc_Public:
    [Show full text]
  • Teacher: Charles Dagis CLASSES the Zoom Student Info for 2Nd Block
    Teacher: Charles Dagis CLASSES The Zoom student info for 2nd block AP Government and AP Macroeconomics: https://zoom.us/j/96378180009?pwd=L1crK2hJbG9BNS9xaWIzRm1qeXlYdz09 Meeting ID: 963 7818 0009 Passcode: Dagis2 3rd and 4th block Govt/Econ (students): https://zoom.us/j/94487076256?pwd=a2ZmTEVQMXhXbDllRGtzdTZ3Z0dxdz09 Meeting ID: 944 8707 6256 Passcode: Dagis34 The Zoom parent info for Meet the Teacher: https://zoom.us/j/94842495942?pwd=Qi9TTHhQblJDRHMvVlN4dXorV0J5dz09 Meeting ID: 948 4249 5942 Passcode: 8KZy4s Teacher: Teresa Pasquier Please find below the invitation to my zoom meeting for Sept 8th's Meet the Parents sessions. Teresa Pasquier is inviting you to a scheduled Zoom meeting. Topic: Sra Pasquier's Meet the Parents Meeting Time: Sep 8, 2020 01:00 PM Eastern Time (US and Canada) Join Zoom Meeting https://zoom.us/j/96528916341?pwd=c1FmQlloTldhNG5wSTE1c2hYMmJXdz09 Meeting ID: 965 2891 6341 Passcode: 6EeYWH CLASSES Spanish 2 - 2nd Block https://zoom.us/j/96245293386?pwd=L3FobmRMRFhRdkcwZktHSDl6SGRIZz09 Meeting ID: 962 4529 3386 Passcode: Pasquier2 Spanish 2 - 3rd Block https://zoom.us/j/99841755255?pwd=VU1CZVV6Y0hJNE8wdlR6enFjN25Ndz09 Meeting ID: 998 4175 5255 Passcode: Pasquier3 Spanish 2 - 4th Block https://zoom.us/j/97126278876?pwd=dGljWVlZTC9iOXZ4VzJZbTJ3d1ByQT09 Meeting ID: 971 2627 8876 Passcode: Pasquier4 Teacher: Carlo Dawson For Meet the Teacher - Mrs. Dawson Topic: English IV "Meet the Teacher" Virtual Orientation with Mrs. Dawson Time: Sep 8, 2020 02:00 PM Eastern Time (US and Canada) Join Zoom Meeting https://us02web.zoom.us/j/87240144606?pwd=d2ZDenMvcktCRmNKTjZiUUdYUXRsdz09
    [Show full text]
  • Lab 2: Using Commands
    Lab 2: Using Commands The purpose of this lab is to explore command usage with the shell and miscellaneous UNIX commands. Preparation Everything you need to do this lab can be found in the Lesson 2 materials on the CIS 90 Calendar: http://simms-teach.com/cis90calendar.php. Review carefully all Lesson 2 slides, even those that may not have been covered in class. Check the forum at: http://oslab.cis.cabrillo.edu/forum/ for any tips and updates related to this lab. The forum is also a good place to ask questions if you get stuck or help others. If you would like some additional assistance come to the CIS Lab on campus where you can get help from instructors and student lab assistants: http://webhawks.org/~cislab/. Procedure Please log into the Opus server at oslab.cis.cabrillo.edu via port 2220. You will need to use the following commands in this lab. banner clear finger man uname bash date history passwd whatis bc echo id ps who cal exit info type Only your command history along with the three answers asked for by the submit script will be graded. You must issue each command below (exactly). Rather than submitting answers to any questions asked below you must instead issue the correct commands to answer them. Your command history will be scanned to verify each step was completed. The Shell 1. What shell are you currently using? What command did you use to determine this? (Hint: We did this in Lab 1) 2. The type command shows where a command is located.
    [Show full text]
  • Introduction to Unix
    10/19/2017 Outline • Unix overview Introduction to Unix – Logging in to tak4 – Directory structure – Accessing Whitehead drives/finding your lab share • Basic commands • Exercises BaRC Hot Topics • BaRC and Whitehead resources Bioinformatics and Research Computing Whitehead Institute • LSF October 19th 2017 http://barc.wi.mit.edu/hot_topics/ 1 2 What is unix? and Why unix? Where can unix be used? • Unix is a family of operating systems that are • Mac computers related to the original UNIX operating system Come with unix • It is powerful, so large datasets can be analyzed • Windows computers need Cygwin or PuTTY: • Many repetitive analyses or tasks can be easily \\grindhouse\Software\Cygwin\Wibr‐Cygwin‐Installer‐1010.exe automated https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html • Some computer programs only run on the unix • Dedicated unix server operation system “tak4”, the Whitehead Scientific Linux • TAK4 (our unix server): lots of software and databases already installed or downloaded 3 4 1 10/19/2017 Connecting to tak for Windows Logging in to tak4 host: tak4.wi.mit.edu • Requesting a tak4 account http://iona.wi.mit.edu/bio/software/unix/bioinfoaccount.php 3) Click “Open” • Windows 1) Open putty 2.1) Write the address of the Host 2.2) Click on SSH‐>X11‐> Enable X11 PuTTY or Cygwin forwarding When you write the Xming: setup X‐windows for graphical display password you won’t see any characters being typed. • Macs Access through Terminal Command Prompt 5 user@tak4 ~$ 6 Log in to tak4 for Mac Unix Directory Structure root / ssh –Y [email protected] home usr bin nfs lab .
    [Show full text]
  • Intro to Unix-1-2014
    Unix Introduction Getting started with the Unix Operating System What is an Operating System? A computer Operating System, or “OS” What is a computer operating system? Where? What does an OS provide? Insulation from hardware Allocation of resources Utility Functions (often blurring the line between OS and applications) The problem There are numerous past, present, and future storage technologies Each of these requires unique procedures for getting data to and from the device. But, it is unreasonable to expect each application to understand each device. The solution The OS provides simple "abstract devices” for storage: Random access (disks, solid state) Sequential access (tapes) Applications talk to the abstract devices, the OS translates and talks to the actual devices. The OS provides a layer of insulation from these details. Beyond storage Insulation roles of the OS extends to most aspects of computer hardware, including User interface devices Network and communications Memory Expansion busses … OS-Hardware pairing OS is necessarily closely tied to particular hardware. OS used to always be supplied by the hardware vendor. What does an OS provide? Insulation from hardware Allocation of resources Utility About that “disk” abstraction… The disk abstraction represents a disk as quantity of storage. An application is insulated from the hardware details of exactly how the data are stored. An application can read or write from any location in that quantity of storage. The problem The disk abstraction provides no structure for data stored in the disk. If multiple applications want to use the same disk, they must agree on a way to structure data.
    [Show full text]