Lab Manual. Unix and Linux Programming (Pr) COT-218 and IT-214

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

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

Lab Manual. Advanced Pr I IT 314

Command Line Crash Course For Unix

Linux System Administration on Red Hat

New Lab Intro to KDE Terminal Konsole

Command Line - Part 1

HP-UX Essentials and Shell Programming Course Summary

CS 103 Lab Linux and Virtual Machines

A Crash Course on UNIX

Unix Sampler. PEOPLE whoami id who

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

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

Tutorial 0A Programming on the command line

Thirty Useful Unix Commands

ICS 351: Today's plan

Open Source Computational Fluid Dynamics

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

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

LSN 10 Linux Overview

Basic Linux & Package Management. Original slides from GTFO Security

Tutorial Guide to the IS Unix Service

A UNIX/Linux in a nutshell

USEFUL UNIX COMMANDS

Cygwin command line windows. Get that Linux feeling - on Windows

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

Kernel. What is an Operating System? Systems Software and Application Software. The core of an OS is called kernel, which. Module 9: Operating Systems

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

CS Unix Tools & Scripting Lecture 9 Shell Scripting

An Introduction to the Linux Command Shell For Beginners

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

Introduction to Shell Programming

University of Toronto

SSH Connections MACs the MAC XTerm application can be used to create an ssh connection, no utility is needed.

Introduction to Mac OS X

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

Programming for GCSE Topic H: Operating Systems

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

SAS 9.4 In-Database Products

Hadoop Hands-On Exercises

Higher National Unit Specification. General information for centres. Multi User Operating Systems. Unit code: DH3A 34

Unix the Bare Minimum

The Linux Operating System and Linux-Related Issues

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

Introduction to AIX 6L System Administration Course Summary

Unix Scripts and Job Scheduling

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

L01 Introduction to the Unix OS

Unix/Linux Forensics 1

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

Beyond Windows: Using the Linux Servers and the Grid

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

Introduction to the UNIX Operating System and Open Windows Desktop Environment

Contents Set up Cassandra Cluster using Datastax Community Edition on Amazon EC2 Installing OpsCenter on Amazon AMI References Contact

Setting up PostgreSQL

CN=Monitor Installation and Configuration v2.0

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

Beginners Shell Scripting for Batch Jobs

Lab 1: Introduction to the network lab

Using SVN to Manage Source RTL

AN INTRODUCTION TO UNIX

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

The objective of this lab is to learn how to set up an environment for running distributed Hadoop applications.

INASP: Effective Network Management Workshops

Backup of ESXi Virtual Machines using Affa

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

MFCF Grad Session 2015

Hadoop Hands-On Exercises

The Linux Operating System

Lecture 4: Writing shell scripts

Open Source, Incremental Backup for Windows, Step By Step. Tom Scott BarCampLondon2, 17/2/07

Bio-Informatics Lectures. A Short Introduction

Computer Forensics Process

Load Balancing/High Availability Configuration for neoninsight Server

Higher National Unit Specification. General information for centres. Unit title: Multi User Operating Systems. Unit code: D76G 34

Using SVN to Manage Source RTL

Secure Shell Demon setup under Windows XP / Windows Server 2003

Outline. Unix shells Bourne-again Shell (bash) Interacting with bash Basic scripting References

Linux Labs: mini survival guide

Getting Started with HPC

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

Introduction to the UNIX Operating System on IT Systems

ULTEO OPEN VIRTUAL DESKTOP V4.0

Tutorial: Using WestGrid. Drew Leske Compute Canada/WestGrid Site Lead University of Victoria

Introduction to Running Hadoop on the High Performance Clusters at the Center for Computational Research

Chapter 1. Backup service

CS 2112 Lab: Version Control

Introduction to Linux operating system. module Basic Bioinformatics PBF

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

Microsoft Windows PowerShell v2 For Administrators

CS10110 Introduction to personal computer equipment

Secure File Transfer Installation. Sender Recipient Attached FIles Pages Date. Development Internal/External None 11 6/23/08

Linux System Administration

Quick Introduction to HPSS at NERSC

Introduction to Unix Tutorial

SFTP SHELL SCRIPT USER GUIDE

UNIX Remote Job Entry User s Guide A. L. Sabsevitz K. A. Kelleman

An Introduction to Using the Command Line Interface (CLI) to Work with Files and Directories

Transcription:

Lab Manual Unix and Linux Programming (Pr) COT-218 and IT-214

Lab Instructions Several practicals / programs? Whether an experiment contains one or several practicals /programs One practical / program Lab Teacher forms groups of the students based on All Students need to perform the practical/program Assign all practicals /programs among all groups Teacher decides whether the completed practicals / programs can be appropriately described using flow chart, algorithm, query statement, etc. Teacher issues necessary instructions to the students for writing practicals / programs accordingly Students write experiments in practical files and get them signed by the lab teacher Students make entries in the list of contents of the practical files and get them signed by the lab teacher Whether practical has been verified and signed by the lab teacher?? If a student has not completed a practical, he/she is expected to complete it at his/her own with the help of his/her fellow students in his/her hostel The student completes the practical file and submits it to the concerned teacher in his/her office or mail box on next working day In case of an experiment containing several practicals, a lab teacher needs to think whether a practical performed by the students in one group needs to be repeated by the other groups in lab on the same day? OR A practical performed by the students in one group needs to be repeated as assignments to be completed by the students of other groups in their hostels? Here, an assignment includes both executing a program on computer and also writing the same in practical file. OR A practical performed by the students in one group needs to be repeated as assignments, only writing practicals in their practical files, for the students of other groups in their hostels? Teacher issues necessary instructions to the students accordingly.

L T P - - 3 Lab Manual Unix and Linux Programming (Pr) COT-218 and IT-214 Practical exam: 40 Sessional: 60 Prerequisite for further experiments: Two hour lecture on LINUX Refer: http://spoken-tutorial.org/tutorial-search/?search_foss=linux&search_language=english http://www.redhat.com/en/files/resources/en-rhel-whats-new-in-rhel-712030417.pdf Experiment 1 (Basic commands) I. a) Installation of Unix/Linux operating system. b) Study of logging/logout details. c) Study of Unix/Linux general purpose utility command list obtained from (man, who, cat, cd, cp, ps, ls, mv, rm, mkdir, rmdir, echo, more, date, time, kill, history, chmod, chown, finger, pwd, cal, logout, shutdown) commands. d) Study of vi editor.( http://www.tutorialspoint.com/unix/pdf/unix-vi-editor.pdf) e) Study of Bash shell, Bourne shell and C shell in Unix/Linux operating system. f) Study of Unix/Linux file system (tree structure). g) Study of.bashrc, /etc/bashrc and Environment variables. Experiment 2 (C programs) I. Write a C program to check whether the given string is palindrome or not using II. III. IV. Command line substitution. Write a C program to emulate the UNIX ls-l command. Write a C program to check the given integer is prime or not. Write a C program to display Largest of three numbers. V. Write a C program to check whether the given number is Avogadro number or not. VI. VII. Write a C program to find the Factorial of a given number. Write a C program that accept two integers as its arguments and computes the value of first number raised to the power of second number. 1

Experiment 3 (Shell scripts) I. Write a shell script program to display list of user currently logged in. II. Write a shell script program to display HELLO WORLD. III. Write a shell script program to develop a scientific calculator. IV. Write a shell Script program to check whether the given number is even or odd. V. Shell script Program to search whether element is present is in the list or not. Experiment 4 (Shell scripts and sed) I. Shell script program to check whether given file is a directory or not. II. Shell script program to count number of files in a Directory. III. Shell script program to copy contents of one file to another. IV. Create directory, write contents on that and Copy to a suitable location in your home directory. V. Use a pipeline and command substitution to set the length of a line in file to a variable. VI. Write a program using sed command to print duplicated lines of Input. Experiment 5 (grep, awk, perl scripts) I. (a) Write a grep/egrep script to find the number of words character, words and lines in a file. (b) Write an awk script to develop a Fibonacci series. II. (a) Write a perl script to compute the power of a given number. (b) Write an awk script to display the pattern of given string or number. III. (a) (b) Write a perl script to check a number is prime or not. Write an egrep script to display list of files in the directory. Experiment 6 (programming) I. Write a shell script program to display the process attributes. II. Write a shell script to change the priority of processes. III. Write a shell script to change the ownership of processes. 2

IV. Write a program to send back a process from foreground. V. Write a program to retrieve a process from background. VI. Write a program to create a Zombie process. VII. Write a program to create a child process and allow the parent to display parent and the child to display child on the screen. Experiment 7 (Shell script programming) I. Write a shell script program to check variable attributes of file and processes. II. Write a shell script program to check and list attributes of processes. III. Shell Script program to implement read, write, and execute permissions. IV. Shell Script program for changing process priority. Experiment 8 (gdb) I. To execute programs using gdb to utilize its various features like breakpoints, conditional breakpoints. II. Write a shell script program to include verbose Debug option for debugging. III. Write a shell script program to include xtrace Debug option for debugging. IV. Write a shell script program to include verbose and trace Debug option for debugging. Experiment 9 (Installations) I. Installation of VirtualBox (VMWare) on a PC having other operating system. II. Installation of Cygwin on a PC having other operating system. III. Installation of NS2 on a PC having Unix/Linux operating system. IV. Installation of Unix/Linux packages. 3