A FIRST BOOK OF C++ UNIX PRIMER. LOGGING IN From the PC's in 301, 302, or 303 If the Command Prompt icon is not on the desktop or the Start menu, navigate.

Slides:



Advertisements
Similar presentations
Jump to first page Unix Commands Monica Stoica Jump to first page Introduction to Unix n Unix was born in 1969 at Bell Laboratories, a research subdivision.
Advertisements

Exploring the UNIX File System and File Security
Working Environment - - Linux - -.
Linux Files. Files and directories As in Windows directories are structures which contain –Other directories –Files.
UNIX Chapter 00 A “ Quick Start ” into UNIX Operating System Mr. Mohammad Smirat.
Unix Basics. Systems Programming: Unix Basics 2 Unix Basics  Unix directories  Important Unix file commands  File and Directory Access Rights through.
UNIX By Darcy Tatlock. 1. Successful Log Into Unix To actively manipulate your website you need to be logged in. Without being logged in you cannot enter.
L INUX C OMMAND L INE I NTERFACE G UNAANBAN.G
Systems Programming Concepts
SoftwareTools CGS 3460, Lecture 7 Jan 25, 2006 Zhen Yang.
Learning basic Unix command IT 325 operating system.
Brief introduction to UNIX A. Emerson CINECA, High Performance Systems.
Overview of Linux CS3530 Spring 2014 Dr. José M. Garrido Department of Computer Science.
1 THE UNIX FILE SYSTEM By Chokechai Chuensukanant ID COSC 513 Operating System.
Help session: Unix basics Keith 9/9/2011. Login in Unix lab  User name: ug0xx Password: ece321 (initial)  The password will not be displayed on the.
Chapter 9 Part II Linux Command Line Access to Linux Authenticated login using a Linux account is required to access a Linux system. The Linux prompt will.
Linux Directory Navigation. File & Directory Commands This is a minimal list of Unix commands that you must know for file management: ls (list) mkdir.
Unix Basics Chapter 4.
Cmsc 312 Operating Systems. UNIX? DOS – PC? VAX/VMS - mainframe Unix – PC, workstation, mainframe 1970 bell Lab For computer scientist? Why popular? Free.
Basic unix commands that everyone should know (Even if you have a mac) Slightly more advanced:
AN INTRO TO UNIX/LINUX COMMANDS BY: JIAYANG WANG.
Chapter Two Exploring the UNIX File System and File Security.
INTRODUCTION TO LINUX Jacob Chan. GNU/Linux Consists of Linux kernel, GNU utilities, and open source and commercial applications Works like Unix –Multi-user.
Lesson 2-Touring Essential Programs. Overview Development of UNIX and Linux. Commands to execute utilities. Communicating instructions to the shell. Navigating.
Second edition Your UNIX: The Ultimate Guide Das © 2006 The McGraw-Hill Companies, Inc. All rights reserved. UNIX Commands cal – will print a calendar.
BIF713 Basic Unix/Linux Commands Getting Help with Commands.
Introduction to UNIX Geraint Vaughan. What is UNIX? Command-line operating system (not point- and click) Designed for ‘experts’ Lots of different variants.
Chapter 1 : The Linux System Part 2 Lecture 2 11/14/
Log-in to the Unix Server A successful log-in allows access to the server through the Secure Shell. SSH, also known as Secure Shocket Shell, is a Unix.
Basic Unix Commands CGS 3460, Lecture 6 Jan 23, 2006 Zhen Yang.
Unix and Samba By: IC Labs (Raj Kidambi). What is Unix?  Unix stands for UNiplexed Information and Computing System. (It was originally spelled "Unics.")
Unix Commands PowerPoint Presentation developed for LS 560 Information Technology online class - University of Alabama by Debey Sklenar TENacious Cohort.
8-2 What is a program? What is a “Window Manager” ? What is a “GUI” ? How do you navigate the Unix directory tree? What is a wildcard? Readings: See CCSO’s.
Agenda Basic Unix Commands (Chapters 2 & 3) Miscellaneous Commands: whereis, which, whoami, finger, passwd, cal, date Working with Files: cat, more, less.
1May 16, 2005 Week 2 Lab Agenda Command Line FTP Commands Review More UNIX commands to learn File name expansion - * Introduction of vi.
Introduction to Programming Using C An Introduction to Operating Systems.
The Genome Analysis Centre Building Excellence in Genomics and Computational Bioscience.
Λειτουργικά Συστήματα – Lab2 Γιάννης Πετράκης. Directory Navigation and Control  The Unix file system is set up like a tree branching out from the root.
Intro. To Unix commands For those who’ve never used Unix before Quick tutorial to let you move around your Unix Accounts No discussion of inner workings.
AN INTRO TO UNIX/LINUX COMMANDS BY: JIAYANG WANG.
UNIX filesystem CS 2204 Class meeting 2 *Notes by Doug Bowman and other members of the CS faculty at Virginia Tech. Copyright
1 Introduction to Unix. 2 What is UNIX?  UNIX is an Operating System (OS).  An operating system is a control program that helps the user communicate.
 Last lesson, the Windows Operating System was discussed along with the Windows command shell  Unix is a computer operating system, that similarly manages.
A Mini UNIX Tutorial. What’s UNIX?  An operating system run on many servers/workstations  Invented by AT&T Bell Labs in late 60’s  There are many different.
Learning basic Unix command It 325 operating system.
Linux Tutorial Lesson Two *Getting Help in Linux *Data movement and manipulation *Relative and Absolute path *Processes Note: see chapter 1,2,3 from Linux.
CMSC 104, Version 8/061L03OperatingSystems.ppt Operating Systems and Using Linux Topics What is an Operating System? Linux Overview Frequently Used Linux.
Login Being logged into a command line prompt allows a user to easily and simply execute multiple commands (one-by-one or at the same time) that would.
UNIX Basics Matt Hayward October 18, 2016 LS560 – Information Technology for information professionals.
Overview of Linux Fall 2016 Dr. Donghyun Kim
Agenda The Linux File System (chapter 4 in text)
UNIX To do work for the class, you will be using the Unix operating system. Once connected to the system, you will be presented with a login screen. Once.
Department of Computer Engineering
Commands Basic syntax of shell commands UNIX or shell commands have a basic structure command -options target command comes first (such as cd or ls) any.
Prepared by: Eng. Maryam Adel Abdel-Hady
Unix Commands PowerPoint
CS314 – Section 5 Recitation 1
Ubuntu Working in Terminal
Tutorial of Unix Command & shell scriptS 5027
Tutorial of Unix Command & shell scriptS 5027
FTP and UNIX TOPICS Exploring your Web Hosting Site FTP UNIX
Introduction to UNIX UNIX developed at Bell Labs in 70s
Exploring the UNIX File System and File Security
Web Programming Essentials:
Tutorial of Unix Command & shell scriptS 5027
A Brief Overview of Unix
UNIX/LINUX Commands Using BASH Copyright © 2017 – Curt Hill.
Tutorial Unix Command & Makefile CIS 5027
January 26th, 2004 Class Meeting 2
Presentation transcript:

A FIRST BOOK OF C++ UNIX PRIMER

LOGGING IN From the PC's in 301, 302, or 303 If the Command Prompt icon is not on the desktop or the Start menu, navigate to Start --> Programs --> Accessories --> to Command Prompt. Opening this will start a text window. At the prompt, type in telnet frodo.cis.ysu.edu. This will connect you to frodo, causing the window to act as a terminal emulator. Enter your login name and password when prompted. Logging out To exit Frodo and return to the PC, type logout at the frodo prompt. Do not forget to do this before leaving lab. A First Book of C++ 4th Edition 2

CHANGING YOUR PASSWORD It is recommended that you change your password on a regular basis. To do so, use the Unix command passwd. You will be prompted for both your old password and the new one (twice for confirmation). Remember that you password should be at least 6 characters long, should not be any word in the English language, and should contain at least 1 digit or other non-alphabet character. A First Book of C++ 4th Edition 3

UNIX HELP The man command is useful to get more information about any command in UNIX. For instance, to find out more about the ls command, you would typeman ls The apropos command can help you find commands related to some keyword. For instance apropos copy would list all UNIX commands related to copying (including cp). A First Book of C++ 4th Edition 4

FILE MANIPULATION Listing your files lslists all files in your directory (like dir) ls -lshow all attributes (such as size, date created, and permissions) ls -alist all files (including those that begin with. ) Copying and deleting files cp file1 file2copies file1 into file2 rm filedeletes file Note that unlike windows, you are not asked for confirmation when a file is deleted! A First Book of C++ 4th Edition 5

DIRECTORIES As in Windows, your Unix files may be organized into directories and subdirectories for the purpose of good organization. The syntax is roughly the same as in DOS (note, however, that UNIX uses the forward slash / instead of the backslash for subdirectories). Creating directories mkdir directory creates a new subdirectory called directory A First Book of C++ 4th Edition 6

CHANGING DIRECTORIES Like DOS, you can navigate through your directories using the cd command. cd directorytakes you to directory (if it is a subdirectory of the current one) cd..takes you back up to the directory of which your current directory is a subdirectory cdreturns you to your root directory. A First Book of C++ 4th Edition 7

COPY FILES You can also copy and move files from one directory to another using cp. For example: cp file directorywill make a copy of file in directory directory (as long as directory is a subdirectory of your current location). cp directory1/file directory2will copy of file from directory1 into directory directory2. cp../file1 file2Will copy file1 from the directory below the current one, into A First Book of C++ 4th Edition 8

PRINTING To print out a file, use the following command: lp -d p30xy filename where filenameis the file you wish to print, xis the last digit of the room you are in (either 1, 2, or 3), yis either a, b, or c. For example, to print prog1.c to printer a in room 301, you would type: lp -d p301a prog1.c A First Book of C++ 4th Edition 9

FILE PERMISSIONS One of the important things to understand about a multiuser system like UNIX is that all files are stored on the same machine, and that you could (theoretically) reach anyone else's directory and files by doing cd.. enough. This makes it important to control the permissions for your files. This is done in UNIX with the chmod command. It has the basic syntax: chmod who op ability where who is some combination of: uThe owner of the file (that is, you). gThe group you belong to (not relevant now, but will be later when you work on group projects). oAll others. A First Book of C++ 4th Edition 10

FILE PERMISSIONS rThese people can read this file. wThese people can write to this file. xThese people can execute this file (or cd into it, if it is a directory). For example: chmod o-r fred means that others can no longer read the file fred. chmod o+x barney means that others can now enter the directory barney. A First Book of C++ 4th Edition 11