UNIX Basics Matt Hayward October 18, 2016 LS560 – Information Technology for information professionals.

Slides:



Advertisements
Similar presentations
Learning Unix/Linux Bioinformatics Orientation 2008 Eric Bishop.
Advertisements

Cosc 4750 Getting Started in UNIX Don’t be afraid of the prompt, in linux it can be your best friend. In some cases, the only way to do certain things.
ECT 250: Survey of e-commerce technology Publishing pages on a Unix system.
Exploring the UNIX File System and File Security
Introducing the Command Line CMSC 121 Introduction to UNIX Much of the material in these slides was taken from Dan Hood’s CMSC 121 Lecture Notes.
T UTORIAL OF U NIX C OMMAND & SHELL SCRIPT S 5027 Professor: Dr. Shu-Ching Chen TA: Samira Pouyanfar Spring 2015.
CS1020: Intro Workshop. Topics CS1020Intro Workshop Login to UNIX operating system 2. …………………………………… 3. …………………………………… 4. …………………………………… 5. ……………………………………
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.
Basic UNIX © McGraw Hill All rights reserved.
L INUX C OMMAND L INE I NTERFACE G UNAANBAN.G
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.
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 Command Project Justin Rogers for LS 560 Spring 2015.
Command Line Unix for Information Professionals In web administration or information management work, I may be called upon, as an Information Professional,
Cmsc 312 Operating Systems. UNIX? DOS – PC? VAX/VMS - mainframe Unix – PC, workstation, mainframe 1970 bell Lab For computer scientist? Why popular? Free.
Working with Linux Lab 1 1. Login and logout Account – username & password – Note: Linux is case-sensitive Administrator: username = root Logout: exit,
ECT 250: Survey of E-Commerce Technology FrontPage Publishing pages Unix.
Unix Tutorial for FreeSurfer Users. Helpful To Know FreeSurfer Tutorial Wiki:
PROGRAMMING PROJECT POLICIES AND UNIX INTRO Sal LaMarca CSCI 1302, Fall 2009.
Chapter Two Exploring the UNIX File System and File Security.
Unix Tutorial for FreeSurfer Users. Helpful To Know FreeSurfer Tutorial Wiki:
UNIX Commands. Why UNIX Commands Are Noninteractive Command may take input from the output of another command (filters). May be scheduled to run at specific.
BIF713 Basic Unix/Linux Commands Getting Help with Commands.
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.
Unix Commands PowerPoint Presentation developed for LS 560 Information Technology online class - University of Alabama by Debey Sklenar TENacious Cohort.
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.
Linux+ Guide to Linux Certification, Third Edition
Linux+ Guide to Linux Certification, Third Edition
Λειτουργικά Συστήματα – Lab2 Γιάννης Πετράκης. Directory Navigation and Control  The Unix file system is set up like a tree branching out from the root.
AN INTRO TO UNIX/LINUX COMMANDS BY: JIAYANG WANG.
Linux A practical introduction. 1)Background and Getting Started Linux is an operating system with multiple providers Red Hat/CentOS (our version) Ubuntu.
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.
1 CS3695 – Network Vulnerability Assessment & Risk Mitigation – Introduction to Unix & Linux.
Basic Unix Commands. Listing files and directories ● ls:command is used to list the files and ● directories in present working directory ● ls command.
Learning basic Unix command It 325 operating system.
Lesson 6-Using Utilities to Accomplish Complex Tasks.
File Management commands cat Cat command cat cal.txt cat command displays the contents of a file here cal.txt on screen (or standard out).
CS 120 Extra: The CS1 Server Tarik Booker CS 120.
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.
Introduction to Unix for FreeSurfer Users
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.
Tutorial of Unix Command & shell scriptS 5027
CS1010: Intro Workshop.
Login The Login prompt provides access to the files located on the server.
Getting started with CentOS Linux
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.
Web Programming Essentials:
Andy Wang Object Oriented Programming in C++ COP 3330
Unix Commands PowerPoint
Lecture 2 Working with Files and Directories
Part 3 – Remote Connection, File Transfer, Remote Environments
Tools of Web Development 1: Module C: Using Unix
Assignment Preliminaries
Ubuntu Working in Terminal
Tutorial of Unix Command & shell scriptS 5027
Tutorial of Unix Command & shell scriptS 5027
Exploring the UNIX File System and File Security
Operating Systems and Using Linux
Web Programming Essentials:
Tutorial of Unix Command & shell scriptS 5027
Getting started with CentOS Linux
Andy Wang Object Oriented Programming in C++ COP 3330
UNIX/LINUX Commands Using BASH Copyright © 2017 – Curt Hill.
Tutorial Unix Command & Makefile CIS 5027
Module 6 Working with Files and Directories
Linux Commands LINUX COMMANDS.
January 26th, 2004 Class Meeting 2
Presentation transcript:

UNIX Basics Matt Hayward October 18, 2016 LS560 – Information Technology for information professionals

Why Unix? Understanding the Unix command line is important for information professionals because they may be required to perform tasks from a Unix command line mastering these commands empowers them and helps with understanding information architecture Unix allows system functions not available in GUI interface, including certain interaction with other users and other administrator operations simplifies some functions like text search, comparing files, and modifying permissions

Login Command – ssh enter password at prompt Action – Logs user into server Use – Gain access to Secure Shell (SSH)

List Files Command – ls Action – Lists files contained within present directory Use – Allows users to view what files exist within a folder

Change Directory Command – cd directoryname Action – Moves user to given directory Use – Allows users to navigate between folders

Directory Up Command – cd.. Action – Moves user up one directory level Use – Allows users to navigate to parent folders

Specific Directory Command – cd directory1/directory1a Action – Moves user to specific directory Use – Allows users to jump to a specific folder without navigating back to home/root folder

Create Directory Command – mkdir newdirectoryname Action – Creates a new directory for files Use – Allows users to add folders, create more than one at a time by placing a space between names

Long List Files Command – ls -l Action – Long list files Use – Displays files within present folder in long format including permissions, owner, & date of last modification

Command History Command – history Action – Shows command history Use – Allows users to see previously entered commands to check for errors or repeat commands

Show Date & Time Command – date Action – Displays current time & date Use – Allows users to view current system time and date

Show Calendar Command – cal Action – Displays calendar for current month Use – Allows users a quick glance at the current month’s calendar

View User Directory Command – who Action – Shows active users Use – Allows users to see what others users are currently logged in

Remove Directory Command – rmdir directoryname Action – Removes given directory Use – Allows users to delete folders

Create/Edit File Command – emacs documentname Action – Brings up emacs file editor Use – Can be used to create or edit text or html files within UNIX. *Note* If filename does not exist, emacs will create the filename

Save File Command – ctrl+x then ctrl+c Action – Exits emacs file editor Use – Allows users to exit emacs, after being prompted to save changes

Search Command – grep searchstring filename Action – Searches files for text Use – Allows users to search for specific text within a larger document

Display Files Command – more filename Action – Displays file contents Use – Allows users to view the contents of a file within SSH *Note* files too large for one screen are paused after each screen and advanced by the user

Copy File Command – cp originalfile copyfile Action – Duplicates file Use – Allows users to quickly duplicate a file using a specified new name

Rename File Command – mv originalname newname Action – Renames indicated file Use – Allows users to quickly rename files within a folder

Show Differences Command – diff Filename1 Filename2 Action – Shows differences between two files Use – Allows users to quickly see what differences exist between two files

Delete File Command – rm filename Action – Removes files Use – Allows users to delete files

Show Location Command – pwd Action – Displays present directory Use – Allows user to quickly see which folder they’re currently in

Show User Info Command – finger username Action – Displays user info Use – Allows users to quickly find information about other users including name, home directory path, most recent login, last mail check, and.plan files (typically used for contact info)

Show Last Login Command – last -1 username Action – Display another users most recent login Use – Allows users to see when others were most recently active in the shell

Show Username Command – whoami Action – Displays current user information Use – Can be useful if multiple users access a machine and there is question as to which user is currently logged in on the machine

Change Password Command – passwd Action – Displays password change prompt Use – Allows users to change their shell password, current password is required

Permissions characterxrwxrwxrwx meaningfile typereadwriteexecutereadwriteexecutereadwriteexecute user typeu - Ownerg - Group (network users)o - Other (public) drwxr-x--- OwnerGroupOthers directorycan read can write can execute can read cannot write can execute cannot read cannot write cannot execute Standard symbolic notation for file permissions Example Setting permissions allows site owners to decide which users can read, write, and/or execute files/directories

Permissions - Modifying Command – chmod o+w filename Action – Change file permission for others (o) to allow (+) write (w) Use – Allows users to add or remove file permissions for other users and groups *Note* 1 st character = user class (u/g/o) 2 nd character = allow/deny (+/-) 3 rd character = permission (r/w/x)

Logout Command – exit Action – Logs out of shell Use – Allows users to properly log out of shell before exiting