Basic UNIX Commands Commonly used Unix commands. Read a Text File Head Tail More.

Slides:



Advertisements
Similar presentations
UNIX Overview. 2 UNIX UNIX is a multi-user and multi-tasking operating system. Multi-tasking: Multiple processes can run concurrently. Example: different.
Advertisements

Learning Unix/Linux Bioinformatics Orientation 2008 Eric Bishop.
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.
Unix. Outline Commands Environment Variables Basic Commands CommandMeaning lslist files and directories ls -alist all files and directories mkdirmake.
1 Introduction to UNIX Ke Liu
NETW-240 Shells Last Update Copyright Kenneth M. Chipps Ph.D. 1.
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.
ATS Programming Short Course I INTRODUCTORY CONCEPTS Tuesday, Jan. 27 th, 2009 Essential Unix Commands.
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.
Unix Basics. Systems Programming: Unix Basics 2 Unix Basics  Unix directories  Important Unix file commands  File and Directory Access Rights through.
UNIX Utilities Learning Objectives: 1. To understand the some basic utilities of UNIX File 2. To compare UNIX shell and popular shell 3. To learn Input/Output.
CSCI 330 T HE UNIX S YSTEM File operations. OPERATIONS ON REGULAR FILES 2 CSCI The UNIX System Create Edit Display Contents Display Contents Print.
Unix Workshop Aug What is Unix Multitasking, multiuser operating system Often the OS of choice for large servers, large clusters.
Introduction to Linux/UNIX. History UNIX beginnings in 1969 (Linus Torvalds is born!) AT & T Bell Laboratories (Ken Thompson & Dennis Richie) Working.
Linux Commands LINUX COMMANDS.
L INUX C OMMAND L INE I NTERFACE G UNAANBAN.G
CS 141 Labs are mandatory. Attendance will be taken in each lab. Make account on moodle. Projects will be submitted via moodle.
Welcome to CSE  Name: Di Cao   Classroom: DL357  Class Time: T 8:30am - 9:18am  Office.
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.
Introduction to Unix Bent Thomsen Institut for Datalogi Aalborg Universitet.
Introduction to Unix Bent Thomsen Institut for Datalogi Aalborg Universitet.
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:
Introduction to Unix – CS 21 Lecture 9. Lecture Overview Shell description Shell choices History Aliases Topic review.
CS 6560 Operating System Design Lecture 3:Tour of GNU/Linux.
PROGRAMMING PROJECT POLICIES AND UNIX INTRO Sal LaMarca CSCI 1302, Fall 2009.
System Administration Introduction to Unix Session 2 – Fri 02 Nov 2007 Reference:  chapter 1, The Unix Programming Environment, Kernighan & Pike, ISBN.
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.
Unix/Linux cs3353. The Shell The shell is a program that acts as the interface between the user and the kernel. –The shell is fully programmable and will.
Lesson 2-Touring Essential Programs. Overview Development of UNIX and Linux. Commands to execute utilities. Communicating instructions to the shell. Navigating.
L&T Infotech1 UNIX – Getting Started - Aneesh Ramani.
November 5, 2015CIS 118 Intro to UNIX What’s a Unix? Unix is an Operating System Designed for high-traffic usage Many variants –Linux, BSD: free versions.
Chapter Four I/O Redirection1 System Programming Shell Operators.
Introduction to Programming Using C An Introduction to Operating Systems.
CSC414 “Introduction to UNIX/ Linux” Lecture 5. Schedule 1. Introduction to Unix/ Linux 2. Kernel Structure and Device Drivers. 3. System and Storage.
Basic of UNIX For fresh members of SPARCS
1 CS3695/M6-109 – Network Vulnerability Assessment & Risk Mitigation – Introduction to Unix & Linux.
Basic Unix Commands & GCC Saurav Karmakar Spring 2007.
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.
1 CS3695 – Network Vulnerability Assessment & Risk Mitigation – Introduction to Unix & Linux.
CSCI 330 UNIX and Network Programming Unit II Basic UNIX Usage: File System.
Configuration your environment Many user-configurable Unix programs (such as your shell) read configuration files when they start up. These configuration.
What is Unix? A multi-user networked operating system –“Operating System” Handles files, running other programs, input/output Just like DOS or Windows.
1 CSE 390a Lecture 3 bash shell continued: processes; multi-user systems; remote login; editors slides created by Marty Stepp, modified by Jessica Miller.
Learning Unix/Linux Based on slides from: Eric Bishop.
INTRODUCTION TO SHELL SCRIPTING By Byamukama Frank
UNIX Basics Matt Hayward October 18, 2016 LS560 – Information Technology for information professionals.
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.
slides created by Marty Stepp, modified by Josh Goodwin
Getting started with CentOS Linux
Linux Commands Help HANDS ON TRAINING Author: Muhammad Laique
Andy Wang Object Oriented Programming in C++ COP 3330
Unix Shells.
Some Linux Commands.
Basic UNIX OLC Training.
Introduction to Linux Week 0 - Thursday.
CS 60 Discussion Review.
slides created by Marty Stepp, modified by Jessica Miller
Introduction to Linux/UNIX
Getting started with CentOS Linux
Andy Wang Object Oriented Programming in C++ COP 3330
CSE 390a Lecture 3 bash shell continued: processes; multi-user systems; remote login; editors slides created by Marty Stepp, modified by Jessica Miller.
slides created by Marty Stepp, modified by Jessica Miller
CSE 390a Lecture 3 bash shell continued: processes; multi-user systems; remote login; editors slides created by Marty Stepp, modified by Jessica Miller.
CSE 390a Lecture 3 bash shell continued: processes; multi-user systems; remote login; editors slides created by Marty Stepp, modified by Jessica Miller.
CSE 390a Lecture 3 bash shell continued: processes; multi-user systems; remote login; editors slides created by Marty Stepp, modified by Jessica Miller.
Linux Commands LINUX COMMANDS.
Introduction to Linux Commands
LPI Linux Certification
Presentation transcript:

Basic UNIX Commands Commonly used Unix commands

Read a Text File Head Tail More

Starting and Ending login: `Logging in'`Logging in' telnet: Connect to another machineConnect to another machine logout: `Logging out'`Logging out'

File Management emacs: `Using the emacs text editor' mkdir: `Creating a directory' cd: `Changing your current working directory' ls: `Finding out what files you have' cp: `Making a copy of a file' mv: `Changing the name of a file' rm: `Getting rid of unwanted files' chmod: `Controlling access to your files' cmp: Comparing two files wc: Word, line, and character count compress: Compress a file`Using the emacs text editor'`Creating a directory'`Changing your current working directory'`Finding out what files you have'`Making a copy of a file'`Changing the name of a file'`Getting rid of unwanted files'`Controlling access to your files'Comparing two filesWord, line, and character countCompress a file

Communication `Sending and receiving electronic mail'`Sending and receiving electronic mail' talk: Talk to another userTalk to another user write: Write messages to another userWrite messages to another user ftp: `Transferring files with ftp'`Transferring files with ftp'

Information man: Manual pagesManual pages quota -v: Finding out your available disk space quotaFinding out your available disk space quota ical: `Using the Ical personal organizer'`Using the Ical personal organizer' finger: Getting information about a userGetting information about a user passwd: Changing your passwordChanging your password who: Finding out who's logged onFinding out who's logged on

Printing lpr: `Printing'`Printing' lprm: Removing a print jobRemoving a print job lpq: Checking the print queuesChecking the print queues

Job control ps: `Finding your processes'`Finding your processes' kill: `Killing a process'`Killing a process' nohup: Continuing a job after logoutContinuing a job after logout nice: Changing the priority of a jobChanging the priority of a job &: `What is a background process?'`What is a background process?' Cntrl-z: Suspending a processSuspending a process fg: `Resuming a suspended process'`Resuming a suspended process'

Selecting a Unix shell sh –The first shell, historically, was sh, also known as the Bourne shell. It is good for writing shell scripts, but not so popular for interactive use.

csh –Also known as C-Shell, csh features a syntax somewhat like the C language. It allows (among other things) adding your own commands (aliasing), history substitution (re- execution of previously typed commands), and filename completion.

tcsh –This shell allows you to edit your command line while you're typing it, using emacs-like commands. It has a number of other nifty features, but is otherwise compatible with csh.

bash –Compatible with sh for programming purposes, it has many of the good features of csh and tcsh: file name completion, job control, history substitution, emacs command- line editing, and many more.