Question Bank 10CS44: UNIX & SHELL PROGRAMMING

Size: px
Start display at page:

Download "Question Bank 10CS44: UNIX & SHELL PROGRAMMING"

Transcription

1 Question Bank 10CS44: UNIX & SHELL PROGRAMMING CHAPTER 1 : UNIX OS AND SOME BASIC COMMANDS,FILE SYSTEM OBJECTIVE: UNIX Born in the dark and somber portals of Bell Labs, it was a dream that one man nurtured and cherished. Like a parent, he reared the infant with compassion and zeal. And as the fledgling grew and spread its wings, it caught the attention of the world. This chapter will explore through the basics of UNIX, along with certain commands which itself are categorized accordingly. The File System and Some File Handling Commands : The file system is one of the its simplest and it lets users not to access files not belonging to them, You will be learning about categorization of files, the significance of HOME directory, mkdir, rmdir, and absolute,relative path name. 1 What is the use of kernel in UNIX operating system? 3 2 How will you prevent others from using your terminal? Explain in brief. 3* 3 Write a short note on UNIX philosophy? 3 4 What is the difference between an argument and an option? Explain with example 4 5 Explain multi-user capability of UNIX. 4* Explain the significance of quoting with examples. 4* 7 Explain briefly different types of shells available in Unix O.S? 4 8 What are the different types of files in an UNIX operating system? Explain briefly. 5* CS 10CS44-1

2 9 Explain the following: banner, calendar, echo, ispell each with an example. 10 With a block diagram explain UNIX operating system organization and explain Kernel- Shell relationship. 11 Describe the salient features of UNIX Operating system. 12 Explain the following: date, who, try, uname, password, lock. 13 What is the difference between internal command and external command? Explain general format of command with examples. 14 With example, explain the date and lock commands 15 What are different layers of UNIX Operating system and explain the relationship between kernel and shell. 1 What are general-purpose utilities of UNIX system? Explain with example. 17 With a neat diagram, explain the relationship between the kernel and the shell of the UNIX operating system. 18 Discuss the history of the UNIX operating system development 19 Write a neat diagram, Explain the kernel shell relationship 10* 20 Bring out the differences between internal and external commands also explain the commands uname, lock, who 10* 21 With a neat diagram, explain the relationship between kernel and shell in UNIX. 8* 22 Describe the salient features of the UNIX operating system. 8* 23 Give the directory structure of UNIX file System * 24 How will you remove a directory tree even when it is not empty without using rmdir. Explain that used command. 25 Explain the Commands wc,od,cmp 2 What is a file? Explain the different types of files as available in UNIX operating system 10* 27 What is the difference between the following commands : 8 CS 10CS44-2

3 cp and copy cp and my comm and cmp comm and diff 28 What are the different types of files in an UNIX operating system? Explain briefly. 29 Write some of the commands used for handling ordinary files. Explain them. 30 What is more function? Explain its usage with example. 31 What are the various types of files? Explain rules and conventions used in naming a file. 32 What is a pipeline? Construct a pipeline for the following jobs:- 33 (1) List all files beginning with the char B on the screen and also store them in a file called 1. (2) All the files present in dir-dir 1 should be deleted. Any error, if it occurs while carrying out this operation, should be stored in a file error file. 34 What is file? Explain the different types of files in UNIX. 35 Explain absolute path name and relative path name each with an example 3 Mention at least four directories that will be present in a UNIX file system very briefly explain what these directories contain? 37 Explain the following file handling commands wc, split, comm and cmp each with an example. 8 8* 38 Write a note on the man command. 39 Why does a machine need an operating system? 40 What are the system calls,and what role do they play in the system?how is C programming to different and powerful in the UNIX environment compared to windows? UNIT 2: FILE ATTRIBUTES, vi EDITOR CS 10CS44-3

4 OBJECTIVE: You will be discussing about Significance of seven fields of ls l output, How to obtain the listing of a specific directory, and the importance of ownership and other features. This Chapter deals with editor that is widely used vi Editor. Learning vi is going to be a shot in the arm to your aspiration of learning UNIX. With enough landmarks along the way, it s a smooth journey through the Portals of Power. 1. Explain the need for two special files /dev/null and /dev/tty 2. What are file and directory permissions? Explain how directory permissions are used in conjunction with file permissions to determine overall permissions. 3. Give the contents of a typical personnel data base file with six fields (emp-id,name, designation, department, date of birth and salary). Show at least three entries on this file, clearly indicating the demarcation of various fields. With reference to this data base, explain the cut and paste commands What are the different attributes of a file? Explain how they are modified 8 5. With an example explain the ls command to obtain long listings. Also explain the sty command 8. Explain the system variables with example. 8* 7. Explain each column of the output of ls l command. 8* 8. What are file permissions? How permissions of a regular file may be manipulated? Discuss. 9. What is the use of the following directories? Explain i) /bin ii) /usr/bin iii) /mnt iv) /tmp v) /etc vi) /usr 10. What is file permission? What are different ways of setting file permission? Explain. 11. What is the need for file permissions? How will you change file permissions? 12. Give the sequence of commands(pipeline) for: (1) To remove duplicate records from a file. (2)o list five largest files in the current dir. CS 10CS44-4

5 13. Explain the following Environment variables PATH, HOME, IFS 14. What are file attributes? Explain how to change basic file permissions, with an example. 15. Explain each column of the output of ls l command. 8* 1. Write a sequence to combine the input of three files and then split the output into multiple files, each containing 2000 lines. 10* 17. Explain ls command with options x, f, a, r, R 18. To find out the number of times the character? occurs in a file. 19. What is file permission? What are the different ways to set the file permission? 20. Explain the different types of files supported in UNIX 21. Explain following commands with suitable examples. Pwd, mkdir, cp, wc. 8* 22 Write short note on vi editor. 23 Find out all users from /etc/passwd and sort them 24 What are the different ways in which a text can be inserted in Vi editor? Explain. 25 Explain the three modes of the Vi-Editor. 1. Give the sentence It is slow in getting started but is quite powerful and the cursor is on the character d of the word started,give the vi i editor commands to i) move to the beginning of the work Started ii) then to move to the end of the word but iii) then to move to the beginning of the last word powerful iv) then to move to the beginning of the given sentence and v)finally to the end of the given sentence. 8 2 What are different modes of vi editor? Explain. 8* 27 With an example explain the ls command to obtain long listings. Also explain the sty command 8 CS 10CS44-5

6 28 Explain the 3 modes of operation in a vi editor. 8* 29 Explain the commands search for pattern and search & replace in Vi editor 30 What is the output of the following command (i) echo $PATH (ii) man man (iii) cmp f1 f2[f1 and f2 are identical] (iv) ls -i 4* UNIT 3 : THE SHELL, PROCESS, COMMUNICATION IN UNIX OBJECTIVE: You will be learning about shell s interpretive cycle, The Significance of meta characters and their use in wild-card, use of escaping and quoting, three standard files, finally shell variables and their useful. You will be looking everything as a process. An overview of the Kernel s Role in Process management, Learning about Process attributes, Process attributes with ps, Kill process, Job Control, Schedule jobs for one time execution with at and batch. UNIX provides a few real time Communication tools and an impressive collection of agents and tools. You will be Locking user information with finger, online text chat with talk, using pine as a menu based mail client and its address book facility. 1. What are standard input, standard output and standard error? Explain with respect to UNIX. 2. Explain the main features of KORN and BASH shells. 8* 3. Explain the system variables with example. 8* CS 10CS44 -

7 4. Explain the following : export, expr, eval, exec 8* 5. Write a short note on system variables. 8. Explain with example different types of commands recognized by the shell 7. Explain the following environment variables i) HOME ii) PS1 and PS2 iii) TERM 8. Explain the following file handling commands wc, split, comm. and cmp each with an example. 8* 9. What are shell variables? Explain with examples. 10. What is the standard input and standard output? How do you achieve redirection using pipes and tees? Explain with an example. 11. Explain briefly different types of shells available in Unix O.S? 12. Explain the shell treatment of the command line. 13. Define System variable. What are the variables used to define environment. 14 What is process status? Explain Ps with options. 8* 15 What is process? Explain the mechanisms of process creation. 1 Explain any four commands related to process in UNIX OS 8* 17 Explain the commands bg, fg, fg, and kill. 4* 18 What is the parent and child process? Explain briefly. 19 What is a process? Explain the commands bg, fg, fg, and kill. 20 What are standard input, standard output and standard error? Explain how the error is i) Stored in a file ii) not stored any where or displayed. 21 Explain the concept of Parent-child process with an example. 22 What is parent child relationship? With the help of a diagram explain the UNIX file system. 8* CS 10CS44-7

8 23 How the jobs can be run in background? Explain. 8* 24 Explain Pine, talk, and mail commands as related to Communication under UNIX OS 25 Explain with syntax the use of write, mail and wall commands. 2 Explain finger Command and its significance 27 How finger command is different from cat command 28 How two-way communication can be established on UNIX. Explain. 29 What is the default location of a user s mailbox on UNIX systems 4* 30 Why pine is so useful on the internet 4* 31 Name two features of pine not found in mailx 4* 32 Mention four common headers found in a mail message, What is the significance of BCC: header 5* 33 Write a note on finger command. 4* CHAPTER 4:MORE FILE ATTRIBUTES, SIMPLE FILTERS OBJECTIVE: This chapter features the different link files like hard link and symbolic links,file system and inodes.simple filters performs a simple function. Learning about the Commands like head, tail, cut, paste, grep. 1. Explain the following: (i)touch (ii)find 2. Explain where to use hard links? 3. Explain symbolic links and hard links 4. Explain file systems and inodes? CS 10CS44-8

9 5. What is umask?. What happens when you use head with multiple filenames. 7. How to slitting a file vertically. 8. Explain the following head,tail,sort,paste 4* UNIT 5 : FILTERS using REGULAR EXPRESSIONS grep AND sed OBJECTIVE: This chapter features the simple filters of the system- Commands which accept data from Standard input manipulate it and write the results to standard output. Filers are the central tools of the UNIX tool kit, and each filter performs a simple function. 1. Write a short note on filters command. 2. Explain the following with examples : head, tail, cut and paste 3. Explain grep, egrep and fgrep with examples. 4. Explain the grep command with the aid of an example. Mention some options that are permitted to use with it and the purpose of these options. 5. Explain the grep command, with options c, r, v, I and l each with an example. 8*. Give the contents of a typical personnel data base file with six fields (emp-id,name, designation, department, date of birth and salary). Show at least three entries on this file, clearly indicating the demarcation of various fields. With reference to this data base, explain the cut and paste commands Explain different communication methods provided by UNIX. 10* 8. How do you paginate in UNIX? Explain the command with all options. 8* 9. How does grep help in searching for a pattern? Explain each option with an example. 10. CS 10CS44-9

10 UNIT : THE SHELL PROGRAMMING: OBJECTIVE: You will be discussing about the Programming features of the shell in some detail and to put them to productive use in real world situations. A shell program runs in interpretive mode. How the shell scripts are executed and their role of the interpretive cycle, Positional Parameters, role of the exit command and other shell programming feature. 1. What do you mean by exporting shell variables? Explain with examples. 4* 2. How to define and invoke functions in shell scripts? Explain with examples List and explain various special parameters used by shell scripts 4* 4. What do you mean by command line arguments in shell script? How these arguments are handled. 5* 5. How will you test various file attributes while writing shell scripts 5*. How will you replace string Linux by Red Hat Linux. 5* 7. Write a sed sequence to find out the number of occurrences of a pattern in a file(note that one pattern may occur more than once in a file 5 8. Write a short note on BOURNE shell? 9. Write a shell script to create a menu, which displays the list of files, current data, process status and current users of the system. 10. Explain Line addressing and Context addressing using sed, each with an example. 11. State any six built in variables in awk, and explain each. 12. How do you determine the length of a string, extract a sub string and locate the position of a character in the string using Expr: Explain with an example. 13. What is shell script? Write a script that accepts a filename as argument and displays the last modification time if the file exists and a suitable message if it does not. 8* 14. What is sed? Explain any five applications of sed. 15. What is a here document? Explain with an example. Also mention its use. CS 10CS44-10

11 1. Explain line addressing and context addressing using sed, each with an example 17. What is for loop in a shell script? Explain the different ways of making the lists 18. Write a shell script to display the processes in the system every 30 seconds, but five times. 19. What is and export statement? Illustrate its use with examples. 20. What are the shell parameters $*, $#, $? And $? Discuss very briefly 21. Write a sed instruction to replace the word actor by the word writer from line 4 to line 7, inclusive of both lines. Discuss. Show how the above instruction may be converted so that global substitution takes place. 22. Explain sed commands with all options. 7* 23. What do you understand by shell variables? Explain briefly What is a mail command? Give any six mail internal commands and explain them Explain the list and array use in pert. Also, write a pert program to convert decimal number to binary number. 2. The length and breadth of a rectangle are input through the keyboard. Write a shell script to calculate the area of the rectangle and display the same. Mention the ways in which the above written script may be executed. 27. Write a shell script that prints out date information in the order: time day of week number day number month year, i.e like PDT MON 17 Oct Write a shell script that sends a banner THANK YOU to your screen every 40 seconds * Write a shell script to accept a string as command line argument and reverse it Write a shell script that reads data from a text file and appends the lines starting with an alphabet from a through k to a file name ask and the lines starting with the alphabet l through s to a file name ls and the lines between t and z into the file tz. Then display the number of the files ak ls and tz individually Write a shell script to find out whether a user whose login name passed as the parameter is currently logged in or out. If the user is logged in, send the file hello 10 CS 10CS44-11

12 which is available in the current directory to his terminal 32. Locate lines longer than 100 and smaller than 150 characters using grep, sed, and awk Give three Programming language constructs supported by Bourne shell 34. How will you convert all characters in a file to uppercase without using shell redirection? 35. Write a shell script that accepts two filenames as arguments, check if permissions of these files are identical, if identical, print these permissions other wise print them separately. 10 8* UNIT 7: awk OBJECTIVE: The awk command which made a late entry in UNIX System to augment the toolkit with suitable report formatting capabilities. You will be understanding awk s unusual syntax with its selection criteria and action components. Splitting the line int fields, awk s built in variables, use of arrays and other features of awk. 1. Explain programming features supported by awk for flow control. 2. Explain with an example the built in function awk. 3. Explain with examples simple awk filtering. 4. What is awk? Give and explain any three built-in functions in awk. 5. Give the general format of a typical awk command and explain. Wrie a awk program to print the transpose of matrix 7. Expalin the BEGIN and END sections used in awk scripts. 4* 8. Write a note on awk with options. 9. State any six built in variables in awk, and explain each. 8* 10. Explain if statement,for and while loop statement with respect to awk with suitable example. 10* CS 10CS44-12

13 UNIT 8 : perl OBJECTIVE: perl is UNIX s latest major acquisition, and one of its finest. perl combines the power of some of the most powerful UNIX tool the shell, grep, tr, sed and awk. This chapter gives the overview of perl Program. Chop to remove the Last character of a line or variable, develop subroutine for repeated file and other features of perl programming 1. Explain with example the handling of subroutine in perl. 2. What are the variables and operators used in perl? 3. Expalin briefly the features offered by perl. 10* 4. Explain the variables and the operations in perl 5. How are the arrays handled in perl. Explain.. Write a simple perl program that asks for the user s name and accepts it, asks for temperature in centigrade and accepts it, converts the temperature into Fahrenheit using the relation C=5/9(F-32) and prints out the result. Hence or otherwise comment on the use of variables in perl programs and their evaluation. 7. Write an awk sequence to find the HRA, DA and net pay of an employee, where DA is 30% of basic, HRA is 10% of basic and net pay is the sum of HRA, DA and the basic pay with suitable headings 8 8* 8. Using command line arguments write a perl program to find a given year is leap year. 8* 9. How substitution can be achieved using sed. Command? Explain. 8* 10. Explain how the perl handles the list? * Using perl how do you print lines in reverse order? How will you use perl script to convert a binary number (supplied as argument To decimal) Explain the string handling functions in perl. 14. How is file handling managed in perl? Explain with an example. CS 10CS44-13

14 15. Explain the following in perl. (i)split (ii)join (iii)$ - default variable 1. Using command line arguments,write a perl program to find whether a given year is leap year. 17. Write a perl program that accepts decimal number as arguments and convert it into binary number. 7* 7* Note: * indicates questions appeared in previous exam papers. CS 10CS44-14

HP-UX Essentials and Shell Programming Course Summary

HP-UX Essentials and Shell Programming Course Summary Contact Us: (616) 875-4060 HP-UX Essentials and Shell Programming Course Summary Length: 5 Days Prerequisite: Basic computer skills Recommendation Statement: Student should be able to use a computer monitor,

More information

Cisco Networking Academy Program Curriculum Scope & Sequence. Fundamentals of UNIX version 2.0 (July, 2002)

Cisco Networking Academy Program Curriculum Scope & Sequence. Fundamentals of UNIX version 2.0 (July, 2002) Cisco Networking Academy Program Curriculum Scope & Sequence Fundamentals of UNIX version 2.0 (July, 2002) Course Description: Fundamentals of UNIX teaches you how to use the UNIX operating system and

More information

Fred Hantelmann LINUX. Start-up Guide. A self-contained introduction. With 57 Figures. Springer

Fred Hantelmann LINUX. Start-up Guide. A self-contained introduction. With 57 Figures. Springer Fred Hantelmann LINUX Start-up Guide A self-contained introduction With 57 Figures Springer Contents Contents Introduction 1 1.1 Linux Versus Unix 2 1.2 Kernel Architecture 3 1.3 Guide 5 1.4 Typographical

More information

Command Line - Part 1

Command Line - Part 1 Command Line - Part 1 STAT 133 Gaston Sanchez Department of Statistics, UC Berkeley gastonsanchez.com github.com/gastonstat Course web: gastonsanchez.com/teaching/stat133 GUIs 2 Graphical User Interfaces

More information

Tutorial 0A Programming on the command line

Tutorial 0A Programming on the command line Tutorial 0A Programming on the command line Operating systems User Software Program 1 Program 2 Program n Operating System Hardware CPU Memory Disk Screen Keyboard Mouse 2 Operating systems Microsoft Apple

More information

grep, awk and sed three VERY useful command-line utilities Matt Probert, Uni of York grep = global regular expression print

grep, awk and sed three VERY useful command-line utilities Matt Probert, Uni of York grep = global regular expression print grep, awk and sed three VERY useful command-line utilities Matt Probert, Uni of York grep = global regular expression print In the simplest terms, grep (global regular expression print) will search input

More information

Hands-On UNIX Exercise:

Hands-On UNIX Exercise: Hands-On UNIX Exercise: This exercise takes you around some of the features of the shell. Even if you don't need to use them all straight away, it's very useful to be aware of them and to know how to deal

More information

USEFUL UNIX COMMANDS

USEFUL UNIX COMMANDS cancel cat file USEFUL UNIX COMMANDS cancel print requested with lp Display the file cat file1 file2 > files Combine file1 and file2 into files cat file1 >> file2 chgrp [options] newgroup files Append

More information

Linux command line. An introduction to the Linux command line for genomics. Susan Fairley

Linux command line. An introduction to the Linux command line for genomics. Susan Fairley Linux command line An introduction to the Linux command line for genomics Susan Fairley Aims Introduce the command line Provide an awareness of basic functionality Illustrate with some examples Provide

More information

Thirty Useful Unix Commands

Thirty Useful Unix Commands Leaflet U5 Thirty Useful Unix Commands Last revised April 1997 This leaflet contains basic information on thirty of the most frequently used Unix Commands. It is intended for Unix beginners who need a

More information

Introduction to the UNIX Operating System and Open Windows Desktop Environment

Introduction to the UNIX Operating System and Open Windows Desktop Environment Introduction to the UNIX Operating System and Open Windows Desktop Environment Welcome to the Unix world! And welcome to the Unity300. As you may have already noticed, there are three Sun Microsystems

More information

A Crash Course on UNIX

A Crash Course on UNIX A Crash Course on UNIX UNIX is an "operating system". Interface between user and data stored on computer. A Windows-style interface is not required. Many flavors of UNIX (and windows interfaces). Solaris,

More information

ICS 351: Today's plan

ICS 351: Today's plan ICS 351: Today's plan routing protocols linux commands Routing protocols: overview maintaining the routing tables is very labor-intensive if done manually so routing tables are maintained automatically:

More information

Unix Sampler. PEOPLE whoami id who

Unix Sampler. PEOPLE whoami id who Unix Sampler PEOPLE whoami id who finger username hostname grep pattern /etc/passwd Learn about yourself. See who is logged on Find out about the person who has an account called username on this host

More information

Unix Shell Scripts. Contents. 1 Introduction. Norman Matloff. July 30, 2008. 1 Introduction 1. 2 Invoking Shell Scripts 2

Unix Shell Scripts. Contents. 1 Introduction. Norman Matloff. July 30, 2008. 1 Introduction 1. 2 Invoking Shell Scripts 2 Unix Shell Scripts Norman Matloff July 30, 2008 Contents 1 Introduction 1 2 Invoking Shell Scripts 2 2.1 Direct Interpretation....................................... 2 2.2 Indirect Interpretation......................................

More information

Introduction to Mac OS X

Introduction to Mac OS X Introduction to Mac OS X The Mac OS X operating system both a graphical user interface and a command line interface. We will see how to use both to our advantage. Using DOCK The dock on Mac OS X is the

More information

CS10110 Introduction to personal computer equipment

CS10110 Introduction to personal computer equipment CS10110 Introduction to personal computer equipment PRACTICAL 4 : Process, Task and Application Management In this practical you will: Use Unix shell commands to find out about the processes the operating

More information

An Introduction to the Linux Command Shell For Beginners

An Introduction to the Linux Command Shell For Beginners An Introduction to the Linux Command Shell For Beginners Presented by: Victor Gedris In Co-Operation With: The Ottawa Canada Linux Users Group and ExitCertified Copyright and Redistribution This manual

More information

AN INTRODUCTION TO UNIX

AN INTRODUCTION TO UNIX AN INTRODUCTION TO UNIX Paul Johnson School of Mathematics September 24, 2010 OUTLINE 1 SHELL SCRIPTS Shells 2 COMMAND LINE Command Line Input/Output 3 JOBS Processes Job Control 4 NETWORKING Working From

More information

Unix Scripts and Job Scheduling

Unix Scripts and Job Scheduling Unix Scripts and Job Scheduling Michael B. Spring Department of Information Science and Telecommunications University of Pittsburgh spring@imap.pitt.edu http://www.sis.pitt.edu/~spring Overview Shell Scripts

More information

Introduction to Shell Programming

Introduction to Shell Programming Introduction to Shell Programming what is shell programming? about cygwin review of basic UNIX TM pipelines of commands about shell scripts some new commands variables parameters and shift command substitution

More information

Syntax: cd <Path> Or cd $<Custom/Standard Top Name>_TOP (In CAPS)

Syntax: cd <Path> Or cd $<Custom/Standard Top Name>_TOP (In CAPS) List of Useful Commands for UNIX SHELL Scripting We all are well aware of Unix Commands but still would like to walk you through some of the commands that we generally come across in our day to day task.

More information

New Lab Intro to KDE Terminal Konsole

New Lab Intro to KDE Terminal Konsole New Lab Intro to KDE Terminal Konsole After completing this lab activity the student will be able to; Access the KDE Terminal Konsole and enter basic commands. Enter commands using a typical command line

More information

Beginners Shell Scripting for Batch Jobs

Beginners Shell Scripting for Batch Jobs Beginners Shell Scripting for Batch Jobs Evan Bollig and Geoffrey Womeldorff Before we begin... Everyone please visit this page for example scripts and grab a crib sheet from the front http://www.scs.fsu.edu/~bollig/techseries

More information

Basic C Shell. helpdesk@stat.rice.edu. 11th August 2003

Basic C Shell. helpdesk@stat.rice.edu. 11th August 2003 Basic C Shell helpdesk@stat.rice.edu 11th August 2003 This is a very brief guide to how to use cshell to speed up your use of Unix commands. Googling C Shell Tutorial can lead you to more detailed information.

More information

CS 103 Lab Linux and Virtual Machines

CS 103 Lab Linux and Virtual Machines 1 Introduction In this lab you will login to your Linux VM and write your first C/C++ program, compile it, and then execute it. 2 What you will learn In this lab you will learn the basic commands and navigation

More information

Command Line Crash Course For Unix

Command Line Crash Course For Unix Command Line Crash Course For Unix Controlling Your Computer From The Terminal Zed A. Shaw December 2011 Introduction How To Use This Course You cannot learn to do this from videos alone. You can learn

More information

An A-Z Index of the Apple OS X command line (TERMINAL) The tcsh command shell of Darwin (the open source core of OSX)

An A-Z Index of the Apple OS X command line (TERMINAL) The tcsh command shell of Darwin (the open source core of OSX) An A-Z Index of the Apple OS X command line (TERMINAL) The tcsh command shell of Darwin (the open source core of OSX) alias alloc awk Create an alias List used and free memory Find and Replace text within

More information

Linux System Administration on Red Hat

Linux System Administration on Red Hat Linux System Administration on Red Hat Kenneth Ingham September 29, 2009 1 Course overview This class is for people who are familiar with Linux or Unix systems as a user (i.e., they know file manipulation,

More information

Lecture 4. Regular Expressions grep and sed intro

Lecture 4. Regular Expressions grep and sed intro Lecture 4 Regular Expressions grep and sed intro Previously Basic UNIX Commands Files: rm, cp, mv, ls, ln Processes: ps, kill Unix Filters cat, head, tail, tee, wc cut, paste find sort, uniq comm, diff,

More information

Linux Overview. Local facilities. Linux commands. The vi (gvim) editor

Linux Overview. Local facilities. Linux commands. The vi (gvim) editor Linux Overview Local facilities Linux commands The vi (gvim) editor MobiLan This system consists of a number of laptop computers (Windows) connected to a wireless Local Area Network. You need to be careful

More information

LECTURE-7. Introduction to DOS. Introduction to UNIX/LINUX OS. Introduction to Windows. Topics:

LECTURE-7. Introduction to DOS. Introduction to UNIX/LINUX OS. Introduction to Windows. Topics: Topics: LECTURE-7 Introduction to DOS. Introduction to UNIX/LINUX OS. Introduction to Windows. BASIC INTRODUCTION TO DOS OPERATING SYSTEM DISK OPERATING SYSTEM (DOS) In the 1980s or early 1990s, the operating

More information

LSN 10 Linux Overview

LSN 10 Linux Overview LSN 10 Linux Overview ECT362 Operating Systems Department of Engineering Technology LSN 10 Linux Overview Linux Contemporary open source implementation of UNIX available for free on the Internet Introduced

More information

Birmingham Environment for Academic Research. Introduction to Linux Quick Reference Guide. Research Computing Team V1.0

Birmingham Environment for Academic Research. Introduction to Linux Quick Reference Guide. Research Computing Team V1.0 Birmingham Environment for Academic Research Introduction to Linux Quick Reference Guide Research Computing Team V1.0 Contents The Basics... 4 Directory / File Permissions... 5 Process Management... 6

More information

University of Toronto

University of Toronto 1 University of Toronto APS 105 Computer Fundamentals A Tutorial about UNIX Basics Fall 2011 I. INTRODUCTION This document serves as your introduction to the computers we will be using in this course.

More information

UNIX, Shell Scripting and Perl Introduction

UNIX, Shell Scripting and Perl Introduction UNIX, Shell Scripting and Perl Introduction Bart Zeydel 2003 Some useful commands grep searches files for a string. Useful for looking for errors in CAD tool output files. Usage: grep error * (looks for

More information

The Linux Operating System and Linux-Related Issues

The Linux Operating System and Linux-Related Issues Review Questions: The Linux Operating System and Linux-Related Issues 1. Explain what is meant by the term copyleft. 2. In what ways is the Linux operating system superior to the UNIX operating system

More information

A UNIX/Linux in a nutshell

A UNIX/Linux in a nutshell bergman p.1/23 A UNIX/Linux in a nutshell Introduction Linux/UNIX Tommi Bergman tommi.bergman[at]csc.fi Computational Environment & Application CSC IT center for science Ltd. Espoo, Finland bergman p.2/23

More information

L01 Introduction to the Unix OS

L01 Introduction to the Unix OS Geophysical Computing L01-1 1. What is Unix? L01 Introduction to the Unix OS Unix is an operating system (OS): it manages the way the computer works by driving the processor, memory, disk drives, keyboards,

More information

Introduction to Operating Systems

Introduction to Operating Systems Introduction to Operating Systems It is important that you familiarize yourself with Windows and Linux in preparation for this course. The exercises in this book assume a basic knowledge of both of these

More information

Lab 1: Introduction to C, ASCII ART and the Linux Command Line Environment

Lab 1: Introduction to C, ASCII ART and the Linux Command Line Environment .i.-' `-. i..' `/ \' _`.,-../ o o \.' ` ( / \ ) \\\ (_.'.'"`.`._) /// \\`._(..: :..)_.'// \`. \.:-:. /.'/ `-i-->..

More information

CPSC 2800 Linux Hands-on Lab #7 on Linux Utilities. Project 7-1

CPSC 2800 Linux Hands-on Lab #7 on Linux Utilities. Project 7-1 CPSC 2800 Linux Hands-on Lab #7 on Linux Utilities Project 7-1 In this project you use the df command to determine usage of the file systems on your hard drive. Log into user account for this and the following

More information

Running your first Linux Program

Running your first Linux Program Running your first Linux Program This document describes how edit, compile, link, and run your first linux program using: - Gnome a nice graphical user interface desktop that runs on top of X- Windows

More information

Fundamentals of UNIX Lab 16.2.6 Networking Commands (Estimated time: 45 min.)

Fundamentals of UNIX Lab 16.2.6 Networking Commands (Estimated time: 45 min.) Fundamentals of UNIX Lab 16.2.6 Networking Commands (Estimated time: 45 min.) Objectives: Develop an understanding of UNIX and TCP/IP networking commands Ping another TCP/IP host Use traceroute to check

More information

Lecture 18 Regular Expressions

Lecture 18 Regular Expressions Lecture 18 Regular Expressions Many of today s web applications require matching patterns in a text document to look for specific information. A good example is parsing a html file to extract tags

More information

CPSC2800: Linux Hands-on Lab #3 Explore Linux file system and file security. Project 3-1

CPSC2800: Linux Hands-on Lab #3 Explore Linux file system and file security. Project 3-1 CPSC2800: Linux Hands-on Lab #3 Explore Linux file system and file security Project 3-1 Linux support many different file systems that can be mounted using the mount command. In this project, you use the

More information

Shell Scripts (1) For example: #!/bin/sh If they do not, the user's current shell will be used. Any Unix command can go in a shell script

Shell Scripts (1) For example: #!/bin/sh If they do not, the user's current shell will be used. Any Unix command can go in a shell script Shell Programming Shell Scripts (1) Basically, a shell script is a text file with Unix commands in it. Shell scripts usually begin with a #! and a shell name For example: #!/bin/sh If they do not, the

More information

Open Source Computational Fluid Dynamics

Open Source Computational Fluid Dynamics Open Source Computational Fluid Dynamics An MSc course to gain extended knowledge in Computational Fluid Dynamics (CFD) using open source software. Teachers: Miklós Balogh and Zoltán Hernádi Department

More information

1 Basic commands. 2 Terminology. CS61B, Fall 2009 Simple UNIX Commands P. N. Hilfinger

1 Basic commands. 2 Terminology. CS61B, Fall 2009 Simple UNIX Commands P. N. Hilfinger CS61B, Fall 2009 Simple UNIX Commands P. N. Hilfinger 1 Basic commands This section describes a list of commonly used commands that are available on the EECS UNIX systems. Most commands are executed by

More information

CLC Server Command Line Tools USER MANUAL

CLC Server Command Line Tools USER MANUAL CLC Server Command Line Tools USER MANUAL Manual for CLC Server Command Line Tools 2.5 Windows, Mac OS X and Linux September 4, 2015 This software is for research purposes only. QIAGEN Aarhus A/S Silkeborgvej

More information

Agenda. Using HPC Wales 2

Agenda. Using HPC Wales 2 Using HPC Wales Agenda Infrastructure : An Overview of our Infrastructure Logging in : Command Line Interface and File Transfer Linux Basics : Commands and Text Editors Using Modules : Managing Software

More information

Lab 1: Introduction to the network lab

Lab 1: Introduction to the network lab CSCI 312 - DATA COMMUNICATIONS AND NETWORKS FALL, 2014 Lab 1: Introduction to the network lab NOTE: Be sure to bring a flash drive to the lab; you will need it to save your data. For this and future labs,

More information

Introduction to. UNIX Bob Booth December 2004 AP-UNIX2. University of Sheffield

Introduction to. UNIX Bob Booth December 2004 AP-UNIX2. University of Sheffield Introduction to UNIX Bob Booth December 2004 AP-UNIX2 University of Sheffield Contents 1. INTRODUCTION... 3 1.1 THE SHELL... 3 1.2 FORMAT OF COMMANDS... 4 1.3 ENTERING COMMANDS... 4 2. ACCESSING UNIX MACHINES...

More information

CS2043 - Unix Tools & Scripting Lecture 9 Shell Scripting

CS2043 - Unix Tools & Scripting Lecture 9 Shell Scripting CS2043 - Unix Tools & Scripting Lecture 9 Shell Scripting Spring 2015 1 February 9, 2015 1 based on slides by Hussam Abu-Libdeh, Bruno Abrahao and David Slater over the years Announcements Coursework adjustments

More information

List of FTP commands for the Microsoft command-line FTP client

List of FTP commands for the Microsoft command-line FTP client You are on the nsftools.com site This is a list of the commands available when using the Microsoft Windows command-line FTP client (requires TCP/IP to be installed). All information is from the Windows

More information

Laboratory Report. An Appendix to SELinux & grsecurity: A Side-by-Side Comparison of Mandatory Access Control & Access Control List Implementations

Laboratory Report. An Appendix to SELinux & grsecurity: A Side-by-Side Comparison of Mandatory Access Control & Access Control List Implementations Laboratory Report An Appendix to SELinux & grsecurity: A Side-by-Side Comparison of Mandatory Access Control & Access Control List Implementations 1. Hardware Configuration We configured our testbed on

More information

Regular Expressions. Abstract

Regular Expressions. Abstract Regular Expressions Sanjiv K. Bhatia Department of Mathematics & Computer Science University of Missouri St. Louis St. Louis, MO 63121 email: sanjiv@cs.umsl.edu Abstract Regular expressions provide a powerful

More information

Unix the Bare Minimum

Unix the Bare Minimum Unix the Bare Minimum Norman Matloff September 27, 2005 c 2001-2005, N.S. Matloff Contents 1 Purpose 2 2 Shells 2 3 Files and Directories 4 3.1 Creating Directories.......................................

More information

UNIX - FILE SYSTEM BASICS

UNIX - FILE SYSTEM BASICS http://www.tutorialspoint.com/unix/unix-file-system.htm UNIX - FILE SYSTEM BASICS Copyright tutorialspoint.com A file system is a logical collection of files on a partition or disk. A partition is a container

More information

Command-Line Operations : The Shell. Don't fear the command line...

Command-Line Operations : The Shell. Don't fear the command line... Command-Line Operations : The Shell Don't fear the command line... Shell Graphical User Interface (GUI) Graphical User Interface : displays to interact with the computer - Open and manipulate files and

More information

INASP: Effective Network Management Workshops

INASP: Effective Network Management Workshops INASP: Effective Network Management Workshops Linux Familiarization and Commands (Exercises) Based on the materials developed by NSRC for AfNOG 2013, and reused with thanks. Adapted for the INASP Network

More information

Lecture 4: Writing shell scripts

Lecture 4: Writing shell scripts Handout 5 06/03/03 1 Your rst shell script Lecture 4: Writing shell scripts Shell scripts are nothing other than les that contain shell commands that are run when you type the le at the command line. That

More information

Lab III: Unix File Recovery Data Unit Level

Lab III: Unix File Recovery Data Unit Level New Mexico Tech Digital Forensics Fall 2006 Lab III: Unix File Recovery Data Unit Level Objectives - Review of unallocated space and extracting with dls - Interpret the file system information from the

More information

Tutorial Guide to the IS Unix Service

Tutorial Guide to the IS Unix Service Tutorial Guide to the IS Unix Service The aim of this guide is to help people to start using the facilities available on the Unix and Linux servers managed by Information Services. It refers in particular

More information

PROGRAMMING FOR BIOLOGISTS. BIOL 6297 Monday, Wednesday 10 am -12 pm

PROGRAMMING FOR BIOLOGISTS. BIOL 6297 Monday, Wednesday 10 am -12 pm PROGRAMMING FOR BIOLOGISTS BIOL 6297 Monday, Wednesday 10 am -12 pm Tomorrow is Ada Lovelace Day Ada Lovelace was the first person to write a computer program Today s Lecture Overview of the course Philosophy

More information

Answers to Even-numbered Exercises

Answers to Even-numbered Exercises 11 Answers to Even-numbered Exercises 1. 2. The special parameter "$@" is referenced twice in the out script (page 442). Explain what would be different if the parameter "$* " were used in its place. If

More information

Introduction to UNIX and SFTP

Introduction to UNIX and SFTP Introduction to UNIX and SFTP Introduction to UNIX 1. What is it? 2. Philosophy and issues 3. Using UNIX 4. Files & folder structure 1. What is UNIX? UNIX is an Operating System (OS) All computers require

More information

RECOVER ( 8 ) Maintenance Procedures RECOVER ( 8 )

RECOVER ( 8 ) Maintenance Procedures RECOVER ( 8 ) NAME recover browse and recover NetWorker files SYNOPSIS recover [-f] [-n] [-q] [-u] [-i {nnyyrr}] [-d destination] [-c client] [-t date] [-sserver] [dir] recover [-f] [-n] [-u] [-q] [-i {nnyyrr}] [-I

More information

Introduction to Linux operating system. module Basic Bioinformatics PBF

Introduction to Linux operating system. module Basic Bioinformatics PBF Introduction to Linux operating system module Basic Bioinformatics PBF What is Linux? A Unix-like Operating System A famous open source project Free to use, distribute, modify under a compatible licence

More information

UPK Content Development Rel 11.1

UPK Content Development Rel 11.1 Oracle University Contact Us: 1.800.529.0165 UPK Content Development Rel 11.1 Duration: 5 Days What you will learn This course is designed for course authors, editors, and other individuals in need of

More information

Introduction to the UNIX Operating System on IT Systems

Introduction to the UNIX Operating System on IT Systems Information Technology Rice University Document UNIX 1 June 21, 2000 Introduction to the UNIX Operating System on IT Systems This document is intended to introduce you to the UNIX operating system. It

More information

Introduction to Linux and Cluster Basics for the CCR General Computing Cluster

Introduction to Linux and Cluster Basics for the CCR General Computing Cluster Introduction to Linux and Cluster Basics for the CCR General Computing Cluster Cynthia Cornelius Center for Computational Research University at Buffalo, SUNY 701 Ellicott St Buffalo, NY 14203 Phone: 716-881-8959

More information

Bitrix Site Manager 4.1. User Guide

Bitrix Site Manager 4.1. User Guide Bitrix Site Manager 4.1 User Guide 2 Contents REGISTRATION AND AUTHORISATION...3 SITE SECTIONS...5 Creating a section...6 Changing the section properties...8 SITE PAGES...9 Creating a page...10 Editing

More information

Cygwin command line windows. Get that Linux feeling - on Windows http://cygwin.com/

Cygwin command line windows. Get that Linux feeling - on Windows http://cygwin.com/ Cygwin command line windows Get that Linux feeling - on Windows http://cygwin.com/ 1 Outline 1. What is Cygwin? 2. Why learn it? 3. The basic commands 4. Combining commands in scripts 5. How to get more

More information

Basic Linux & Package Management. Original slides from GTFO Security

Basic Linux & Package Management. Original slides from GTFO Security Basic Linux & Package Management Original slides from GTFO Security outline Linux What it is? Commands Filesystem / Shell Package Management Services run on Linux mail dns web central authentication router

More information

UNIX / Linux commands Basic level. Magali COTTEVIEILLE - September 2009

UNIX / Linux commands Basic level. Magali COTTEVIEILLE - September 2009 UNIX / Linux commands Basic level Magali COTTEVIEILLE - September 2009 What is Linux? Linux is a UNIX system Free Open source Developped in 1991 by Linus Torvalds There are several Linux distributions:

More information

webmethods Certificate Toolkit

webmethods Certificate Toolkit Title Page webmethods Certificate Toolkit User s Guide Version 7.1.1 January 2008 webmethods Copyright & Document ID This document applies to webmethods Certificate Toolkit Version 7.1.1 and to all subsequent

More information

MyOra 3.0. User Guide. SQL Tool for Oracle. Jayam Systems, LLC

MyOra 3.0. User Guide. SQL Tool for Oracle. Jayam Systems, LLC MyOra 3.0 SQL Tool for Oracle User Guide Jayam Systems, LLC Contents Features... 4 Connecting to the Database... 5 Login... 5 Login History... 6 Connection Indicator... 6 Closing the Connection... 7 SQL

More information

The Linux Operating System

The Linux Operating System The Linux Operating System Charles Abzug, Ph.D. Department of Computer Science James Madison University Harrisonburg, VA 22807 Voice Phone: 540-568-8746; Cell Phone: 443-956-9424 E-mail: abzugcx@jmu.edu

More information

Unix Guide. Logo Reproduction. School of Computing & Information Systems. Colours red and black on white backgroun

Unix Guide. Logo Reproduction. School of Computing & Information Systems. Colours red and black on white backgroun Logo Reproduction Colours red and black on white backgroun School of Computing & Information Systems Unix Guide Mono positive black on white background 2013 Mono negative white only out of any colou 2

More information

3 IDE (Integrated Development Environment)

3 IDE (Integrated Development Environment) Visual C++ 6.0 Guide Part I 1 Introduction Microsoft Visual C++ is a software application used to write other applications in C++/C. It is a member of the Microsoft Visual Studio development tools suite,

More information

Introduction to Shell Scripting

Introduction to Shell Scripting Introduction to Shell Scripting Lecture 1. Shell scripts are small programs. They let you automate multi-step processes, and give you the capability to use decision-making logic and repetitive loops. 2.

More information

Using SVN to Manage Source RTL

Using SVN to Manage Source RTL Using SVN to Manage Source RTL CS250 Tutorial 1 (Version 083010a) August 30, 2010 Yunsup Lee In this tutorial you will gain experience using the Subversion (SVN) to manage your source RTL and code. You

More information

A Brief Introduction to the Use of Shell Variables

A Brief Introduction to the Use of Shell Variables A Brief Introduction to the Use of Shell Variables Norman Matloff July 25, 2001 Contents 1 Two Popular Shells: tcsh and bash 1.1 Overview There are many different shells available for Unix systems. Here

More information

Easy Manage Helpdesk Guide version 5.4

Easy Manage Helpdesk Guide version 5.4 Easy Manage Helpdesk Guide version 5.4 Restricted Rights Legend COPYRIGHT Copyright 2011 by EZManage B.V. All rights reserved. No part of this publication or software may be reproduced, transmitted, stored

More information

CS2720 Practical Software Development

CS2720 Practical Software Development Page 1 Rex Forsyth CS2720 Practical Software Development CS2720 Practical Software Development Scripting Tutorial Srping 2011 Instructor: Rex Forsyth Office: C-558 E-mail: forsyth@cs.uleth.ca Tel: 329-2496

More information

UNIX Basics. Ian Darwin TCP Informatics January, 2005. Presented from a Mac using Apple s Keynote presentation software

UNIX Basics. Ian Darwin TCP Informatics January, 2005. Presented from a Mac using Apple s Keynote presentation software UNIX Basics Ian Darwin TCP Informatics January, 2005 Presented from a Mac using Apple s Keynote presentation software 1 What is this about? Brief Introduction to UNIX - ideas - basic commands - some examples

More information

LabVIEW Day 6: Saving Files and Making Sub vis

LabVIEW Day 6: Saving Files and Making Sub vis LabVIEW Day 6: Saving Files and Making Sub vis Vern Lindberg You have written various vis that do computations, make 1D and 2D arrays, and plot graphs. In practice we also want to save that data. We will

More information

Tour of the Terminal: Using Unix or Mac OS X Command-Line

Tour of the Terminal: Using Unix or Mac OS X Command-Line Tour of the Terminal: Using Unix or Mac OS X Command-Line hostabc.princeton.edu% date Mon May 5 09:30:00 EDT 2014 hostabc.princeton.edu% who wc l 12 hostabc.princeton.edu% Dawn Koffman Office of Population

More information

Lecture 25 Systems Programming Process Control

Lecture 25 Systems Programming Process Control Lecture 25 Systems Programming Process Control A process is defined as an instance of a program that is currently running. A uni processor system or single core system can still execute multiple processes

More information

DiskPulse DISK CHANGE MONITOR

DiskPulse DISK CHANGE MONITOR DiskPulse DISK CHANGE MONITOR User Manual Version 7.9 Oct 2015 www.diskpulse.com info@flexense.com 1 1 DiskPulse Overview...3 2 DiskPulse Product Versions...5 3 Using Desktop Product Version...6 3.1 Product

More information

Digital UNIX. Command and Shell User s Guide. Digital Equipment Corporation Maynard, Massachusetts

Digital UNIX. Command and Shell User s Guide. Digital Equipment Corporation Maynard, Massachusetts Digital UNIX Command and Shell User s Guide Order Number: AA-PS2HD-TE March 1996 Product Version: Digital UNIX Version 4.0 or higher This books explains to the general Digital UNIX user how to use commands

More information

Linux Overview. The Senator Patrick Leahy Center for Digital Investigation. Champlain College. Written by: Josh Lowery

Linux Overview. The Senator Patrick Leahy Center for Digital Investigation. Champlain College. Written by: Josh Lowery Linux Overview Written by: Josh Lowery The Senator Patrick Leahy Center for Digital Investigation Champlain College October 29, 2012 Disclaimer: This document contains information based on research that

More information

10CS35: Data Structures Using C

10CS35: Data Structures Using C CS35: Data Structures Using C QUESTION BANK REVIEW OF STRUCTURES AND POINTERS, INTRODUCTION TO SPECIAL FEATURES OF C OBJECTIVE: Learn : Usage of structures, unions - a conventional tool for handling a

More information

UPK Content Development Rel 12.1

UPK Content Development Rel 12.1 Oracle University Contact Us: 0800 945 109 UPK Content Development Rel 12.1 Duration: 5 Days What you will learn This UPK Content Development Rel 12.1 training will teach you how to use the User Productivity

More information

CSIL MiniCourses. Introduction To Unix (I) John Lekberg Sean Hogan Cannon Matthews Graham Smith. Updated on: 2015-10-14

CSIL MiniCourses. Introduction To Unix (I) John Lekberg Sean Hogan Cannon Matthews Graham Smith. Updated on: 2015-10-14 CSIL MiniCourses Introduction To Unix (I) John Lekberg Sean Hogan Cannon Matthews Graham Smith Updated on: 2015-10-14 What s a Unix? 2 Now what? 2 Your Home Directory and Other Things 2 Making a New Directory

More information

Training Day : Linux

Training Day : Linux Training Day : Linux Objectives At the end of the day, you will be able to use Linux command line in order to : Connect to «genotoul» server Use available tools Transfer files between server and desktop

More information

TEL2821/IS2150: INTRODUCTION TO SECURITY Lab: Operating Systems and Access Control

TEL2821/IS2150: INTRODUCTION TO SECURITY Lab: Operating Systems and Access Control TEL2821/IS2150: INTRODUCTION TO SECURITY Lab: Operating Systems and Access Control Version 3.4, Last Edited 9/10/2011 Students Name: Date of Experiment: Read the following guidelines before working in

More information

Managing Users and Identity Stores

Managing Users and Identity Stores CHAPTER 8 Overview ACS manages your network devices and other ACS clients by using the ACS network resource repositories and identity stores. When a host connects to the network through ACS requesting

More information

PHP Debugging. Draft: March 19, 2013 2013 Christopher Vickery

PHP Debugging. Draft: March 19, 2013 2013 Christopher Vickery PHP Debugging Draft: March 19, 2013 2013 Christopher Vickery Introduction Debugging is the art of locating errors in your code. There are three types of errors to deal with: 1. Syntax errors: When code

More information