QUESTION BANK ON UNIX & SHELL PROGRAMMING-502 (CORE PAPER-2)

Size: px
Start display at page:

Download "QUESTION BANK ON UNIX & SHELL PROGRAMMING-502 (CORE PAPER-2)"

Transcription

1 BANK ON & SHELL PROGRAMMING-502 (CORE PAPER-2) TOPIC 1: VI-EDITOR MARKS YEAR 1. Explain set command of vi editor oct 2. Explain the modes of vi editor mar/ 2013 oct 3. Explain vi editor oct 4. List the text modification command of vi editor oct 5. List disadvantages of vi editor oct 6. Which command of vi editor is used to display line 2012oct/ 2/5 number before each line? 2011oct TOPIC 2: S ON SHELL MARKS YEAR 1. Explain features of Shell , What is shell Define a shell. Explain meta character that shell use to match files names. 4. List process execution meta-characters of shell Write a note on different role played by shell during the program execution 4/7 2010/ How can you create sub-shell? What is the difference between login shell and current shell? Explain command line interpretation of the shell. 6/5 2014/ Give the significance of special parameters used by shell List at least two popular shells including their default prompt Prepared By: Ms. Nidhi Solanki (Assist. Prof.) Page 1

2 TOPIC 3: DIRECTORY & FILE S: MARKS YEAR 1. Discuss relative and absolute file access permissions with example oct 2. What do you mean by link? Give the difference between 2013mar/ soft link & hard link. Also write disadvantages when using 5/ oct soft link. 3. What does /etc/passwd contains? oct/ 2012oct 4. What are the importance of /tmp directory? oct 5. Explain commands for changing file permissions and ownership oct 6. What is the purpose of /bin directory of Unix file system? oct oct/20 Discuss relative and absolute file access permissions with 6/7/4 11oct/2010 example.(explain chmod) oct 8. Explain directory structure of oct 9. Which file attribute changes when you copy a file from other user account oct 10. How can you make out whether two files are copies or links oct 11. List the characteristics of Unix file system oct 12. Explain the characteristics of Unix file system oct 13. Explain types of file in Unix oct 14. Explain commands for changing file permission and ownership oct 15. write detail note on structure file system of Unix oct 16. Command to update time of a file What does /etc directory contain / Difference between cat test and cat>test What isppurpose of. and Purpose of /bin directory Difference between absolute and relative path Who can change the attribute of file and directory? How How will you forcibly remove a file to which you don t have write permission? How can you identify the invisible characters in a file Purpose of /dev/null? give proper illustration Compression and archiving of file Which file is parent of all file Prepared By: Ms. Nidhi Solanki (Assist. Prof.) Page 2

3 TOPIC 4: S ON KERNEL MARKS YEAR 1. Explain functions of kernel(list functions of kernel) 7/2 list 2012,2014, 2013,2011, 2010,2010 oct 2. Explain kernel structure architecture? 4/7 2010/2014 TOPIC 5: S ON PROCESS MARKS YEAR Define process. Which command is useful to know the 1. status of process? Explain it giving example. What are the three phases in creation of a process? What is difference between scheduling process using 2. batch command and using at command? / What do you mean by Zombie state of a process? /2012/ 2013 Which process is created by Getty process? What is 4. responsibility of getty process /2014 What do you mean by daemon? List out them. How will 5. you kill a daemon? / Explain booting sequence with init process Mechanism of process creation Explain fork() system call What are the process states in Unix How can we suspend background and foreground job What is PPID? Which process has PPID If following command run from a shell script, who will be 12. the parent and grandparent of all these processes? Cat f1 cut f1 sort r 13. State the purpose of n option with sed List process execution metacharacter of shell What does init do when a user logs out Define process? Which process has id PID Write command to kill last background job What is job? How can you move a job from the 18. background to the background to the foreground and vice versa? 19. Define fork /2012 What is job? How can we suspend a foreground and 20. background job? Prepared By: Ms. Nidhi Solanki (Assist. Prof.) Page 3

4 TOPIC 6 : PROGRAMMING CONSTRUCTS: MARKS YEAR 1. Differentiate between while and until loop? Explain for loop with an example 3/4 2014/ Explain case condition with example in shell Explain while loop in shell oct/2011 mar TOPIC 7 : S ON COMPONENTS OF FILE SYSTEM: MARKS YEAR 1. What is the purpose of boot block? What it consists of? Where the number of free i-nodes and data block stored? Explain the purpose of super block What is super block consist of? / Explain content of I-node block 7/5 2014/2011/ 2010/4 6. Explain booting sequence with init process The booting process of Unix Write a detail note on I-node table Define I-node number TOPIC 8 : GREP/sed UTILITY THEORY: MARKS YEAR 1. Write note on grep utility. 6 (2014) 2. Explain pattern matching features of grep utility /2010/ Explain insert append and change command of sed 2013/ Explain basic regular expression used with grep Explain remembered pattern of sed Explain delete and write operator in sed State the purpose of n option with sed Prepared By: Ms. Nidhi Solanki (Assist. Prof.) Page 4

5 TOPIC 9 : WRITE COMMANDS (1 mark each) TOPIC 9.1 : 2014 oct./nov. Command using sed or grep 1. Display two lines starting from 7 th line of file X1. 2. Display all blank lines between line 20 and 30 of file X1. 3. Display lines beginning either with alphabet or digit fro file X1. 4. Display the line that do not contain unix 5. Display the lines which are not starting with 2 at the beginning. 6. Write a command to replace UIX OS ON LINE NO 5 TH TO 10 TH. 7. Write a command to display all file name containing only digits in a filename. 8. To list file names consist of only 4 digits. 9. To display lines beginning with alphabets of a file X To count number of words in line 40 through 60 of file f1.txt TOPIC 9.2 : 2013 march/april commands using grep or egrep. (1 mark each) 1. Display the lines which are not starting with 2 at the beginning. 2. Display lines having exactly 50 characters of file X1. 3. Count number of blank lines in file X1. 4. Display lines having at least one * character in file X1. 5. Display lines from file X1 that containing string or unix or Unix 6. Display the directory listing. TOPIC 9.3 : 2013 oct/nov commands using grep or egrep.(1 mark each) 1. Write a command to print lines which contain Accounts. 2. Write a command to print lines which do not contain Accounts 3. Write a command to print line 10 to Write a command to substitute doshi with desai 5. Write a command to print lines with line numbers which contains Marketing 6. Write a command to display line which starts with the Prepared By: Ms. Nidhi Solanki (Assist. Prof.) Page 5

6 TOPIC 9.4 : 2013 march/april commands using sed. (1 mark each) 1. Substitute endif with fi on line 10 of file X1. 2. Display two lines starting from 7 th line of file X1. 3. Display all lines before string Unix from file X! 4. Display all blank lines between line 20 and 30 of file X1. 5. Display lines beginning either with alphabet or digit from file X1. 6. Display the lines that do not contain Unix. TOPIC 9.5 : 2011 mar/apr 1. To display all lines that contains pattern bc* in a line 2. To locate lines where second and second last character of file f1 are same 3. To replace tybca with TYBCA in input file in.sh and write those lines to output file out.sh 4. To replace all occurrence of she with he and hi with hello 5. To locate lines that begin and end with.(dot) 6. To display line 5 to 15, 25 to 35 and last line of file f1. TOPIC 9.6 : 2014 march/april 1. Write a command to print first seven line of file. 2. Write a command to sort a line of file and also remove a repeated line. 3. Replace all occurrences of SYBCA with TYBCA in 5 th line of file f1. 4. Count all occurrence of tybca in studlst. 5. Replace kernel with kernel architecture using remember pattern of sed utility. 6. To run a utility x1 at 9:00 AM. 7. Write a command to locate the Unix ignoring case. 8. Write a command to display occurrence of string tybca. 9. Write a command to display line, which start with the. 10. Write a command to display line, which ends with India. 11. Write a command to print first six line of file. Prepared By: Ms. Nidhi Solanki (Assist. Prof.) Page 6

7 TOPIC 9.7 : 2013 march/april 1. Display lines 10 to 15 from file x1. 2. Display last word of each line from a file x1. 3. To count number of characters in last line of file x1. 4. To count number of words in line 40 through 60 of file f1.txt. 5. To delete all special characters from file x1. 6. Display all line that start with let, from a file x1. TOPIC 9.8 : 2013 oct/nov 1. To remove duplicate line from a file 2. To count number of characters in last line of file X1. 3. Display the processes of user bca0 I 4. List the user from /etc/passwd in the alphabetically sorted order 5. Count the frequency of users who are logged in from more than one terminal 6. Display string in upper case of the file f1.txt. TOPIC 9.9 : 2012 oct/nov(1 mark each) 1. Count number of characters in first five lines of file X1. 2. To replace the word computer with computing of file x1. 3. Display lines whose last word is Unix of file x1 4. Display lines starting from 10 th line to the end of file X1 5. To delete all special characters from the file X1. 6. To display lines beginning with alphabets of a file X1. 7. To remove a file name as X1?(X1 followed by? character) 8. To run script X1 in background so that its execution continues even user logout from the system. 9. To display last line of a file X To deny execute permission to a group of a file X To create link between file X1 and X1.link Prepared By: Ms. Nidhi Solanki (Assist. Prof.) Page 7

8 TOPIC 9.10 : 2012 mar/apr(1 mark each) 1. To print first three lines of file tybca. 2. To sort file by last access time 3. To print field 1 and 6 from file tybca 4. To print unique line of file tybca 5. To print frequency of each line from file tybca 6. To find file having size greater than five 7. To find a file having.c extension 1. Write a command to print line which contain tybca on file dept.lst 2. Write a command to print lines which not contain tybca 3. To print line 6 to To replace first occurrence of surat with vyara in each line 5. To print content of file after deleting every ; 6. To sort on 3 column to 5 column 7. To convert small alphabets to capital 8. To print lines with line number which contain Marketing TOPIC 9.11 : 2011 oct/nov 1. Forcefully delete each file from directory tybca/my work 2. Show all hidden files from mydir/tybca 3. Sort filename by last access time from directory tybca/mywork 4. Rename file chap 1 to unit 1 5. Find out number of lines of file chap01 6. Find out inode number of file chap01 1. write a command to sort a line of file and also remove repeated line 2. Command to locate the tybca ignoring case 3. Command to display occurrence of string Sale 4. Command to display line which start with the 5. Command to display line which end with ia 6. Command to print first three lines of file 7. Command to substitute doshi with desai Prepared By: Ms. Nidhi Solanki (Assist. Prof.) Page 8

9 TOPIC 9.12 : 2011 mar/apr 1. Write a command to display all words in file 1 that begin with digit 2. To display total number of words and lines of files for which file name start with m 3. To remove all leading space from a file f1 4. To display line number before each line 5. To display line 10 to 20 from file f1 6. To remove3 dir. Tree dir1/dir2/dir3 using single command 7. To move all files begin with digit from the parent dir to current dir 8. To convert decimal number 192 to hexadecimal 9. To give read and write permission to file f1 10. To change modification time of a file f1 to dec 01 10:30 am 11. To display all unique words of file f1 TOPIC 10 : AWK UTILITY THEORY: MARKS YEAR 1. Using AWK utility explain system variables. (significance) 6/3 2014, Using AWK utility explain system variables 6/3 2014/ Using AWK utility explain Hash Arrays Using AWK utility explain any four built in functions Explain concept of array in awk utility ,2012 march,201 1,2011 mar,2010, 2010oct 6. Write note on pattern matching feature of awk utility giving example Write an awk script to display file contents in reverse.(i.e last line should be displayed first,..,first line should be displayed last.) 8. Write operators of awk Write a script using awk utility to create two 3*3 matrix and multiply it Explain matching operators of awk utility with example / Differentiate between system variables of awk utility FNR 2010/ and NR _oct 12. Explain with example the purpose of BEGIN and END block of awk utility Prepared By: Ms. Nidhi Solanki (Assist. Prof.) Page 9

10 TOPIC 11 : WRITE COMMANDS (1 mark each) TOPIC 11.1 : 2014 nov./dec. USING awk UTILITY 1. print odd numbers of words in each line 2. Print lines no 18 to 30 from file f1.txt. 3. Count the total no. of lines in a file. 4. Count occurrence of pattern Unix in file f1. 5. Print lines, which end with 5, 6, and 7 from, file f1. 6. Write a script to print 1 to 10 nos. 7. Write a command to print those lines where field2 is computer field 3> from sales file. 8. Display those words whose length is greater than 8 characters and consist of alphabet only. TOPIC 11.2 : 2014 march/april (2 mark each) 1. Print even numbers of words in each line. 2. Count occurrence of pattern operating system in file f1. 3. Display those words whose length greater than 10 characters and consist of alphabet only. TOPIC 11.3 : 2014 nov./dec. 1) Write awk script to display the user login ids, their home directories and login shells from the /etc/passwd file. 2) Switch the first two fields in each line of a text and put the result in a new file 3) To only print lines wherein the first field had a numeric value of less than 20 4) Write script using awk utility to display files contents in toggle case. Assume that file should be passed from command line.(8)(2010) Prepared By: Ms. Nidhi Solanki (Assist. Prof.) Page 10

11 TOPIC 11.4 : 2014 march/april 1. To count number of occurrence of pattern bca in file f1 2. To print words whose length is greater than 4 characters and consist digits only 3. To print even number of words in each line TOPIC 11.5 : 2010 march/april 1. Write script using awk utility to display files contents in toggle case. Assume that file should be passed from command line.(5) 2. Write a script that removes all empty files in current working directory. Appropriate data validation is expected.(3) TOPIC 12 : SHELL SCRIPTS: MARKS YEAR 1. What is the use of test statement Write a shell script to reverse a number Write a shell script to perform mathematical operations using 2013/2 5 menu. (+_*/) Write a shell script to test the file is a executable file or not Write a shell script to check whether the given file is empty or not Write a shell script to find smallest of three numbers that are read from keyboard Write a shell script to validate the name of a person accepted through the keyboard so that it does not exceed 10 chars of length Write a shell script to display list of all files in the current directory to which you have read write and execute permissions. 9. Write a shell script to check the entered no is palindrome or not 4/5/ Write a shell script to accept two decimal numbers from keyboard and display their sum in hexadecimal form. Make proper validation. Write a shell script to remove only empty files from current directory Prepared By: Ms. Nidhi Solanki (Assist. Prof.) Page /2 012/

12 12. Check whether the number is Armstrong or not Write a shell script to enter two strings, check they are equal or 2011/2 4 not, also check the length of both strings should greater than An integer or a floating point number should be accepted from user. Write a menu driven script for the following options: 1) convert decimal to binary number 2) convert decimal to octal number 3) convert decimal to hexadecimal number do proper validations Write a script that removes all empty files in current working directory. Appropriate data validation is needed. Write script to enter 5 subjects marks from command line and display % and appropriate class Write script to check entered character is uppercase lowercase numeric digit or special character TOPIC 13 : COMMANDS MARKS YEAR 1. Note on ls command with options and example(detail note) 3/7 2013, Umask Bc /20 13/ Ln Explain u,-n,-r options of sort Tee 2/3 2014/20 13/2011/ 2011 mar/201 0/2010 oct 7. Mv Shift explain expr command giving example for string manipulation list default file as well as directory permission when making has been set by the command as umask What chmod 615 employee command does? nice ,20 12,2011, 2011 mar Prepared By: Ms. Nidhi Solanki (Assist. Prof.) Page 12

13 13. find command what do you mean by Unix internal external command uniq filter ,20 12, Wall What happened when cd command is run without arguments? Explain any two communication command a command Why r option of rm is dangerous Tr / Kill More Touch 2/2/4/4 2012oct, 2012mar ch,2010/ Explain -u,-n,-r option of sort detail note on diff and comm sort command with options(any 3 option for 4 marks) 5/7/4 2012,20 11/2011 mar, chown and chgrp Ps , pr and tr filters diff?example 2 Prepared By: Ms. Nidhi Solanki (Assist. Prof.) Page ,20 10,2010 oct 32. what is use 0f v and n option with cat Significance if cp R option Head and tail filters cmp and comm , wc and cal Explain head filter difference between diff and cmp command Difference between cat and more command What will $echo* command do Purpose of n option with sed Difference between grep and fgrep command Difference between cat test and cat>test What is purpose of. and Chmod

14 46. How you use egrep and grep to take pattern from a file? give example Mail command Significance of sleep and wait command / Cut and paste command Why file command is used / Why test command is used Output of tail 20 file Write and eval ,20 10oct 54. Use of test statement Explain online communication commands 4/4 2010,20 10oct 56. batch command 2/3/3/3 2010/20 14/2013/ Explain command mv*../bin Explain cp[!a-za-z]* progs Explain significance of expr and echo Explain significance of tty What is output of head n 5 f1 and tail +5 f1 command at command 1/3/3/3/3 2010/20 14/2013/ 2011/ Why -r option of rm command is dangerous grep command use TOPIC 14 : SOME MORE IMPORTANT SHORT S MARKS YEAR 1. Explain here document What is major and minor number? What do you mean by command substitution? Devise a pipeline sequence which lists five largest files in the current working directory? What is the purpose of ^ in regular expression When do wild card characters lose their meaning? Define redirection. List out the symbols used for redirection Differentiate between $@ and $*(2) /2 013oct/ Prepared By: Ms. Nidhi Solanki (Assist. Prof.) Page 14

15 2010/2 010 oct 9. What information contained by $? And $# variable? What will be the output of following code:a= expr 5%2 echo $A What is exit status of a command? What is its normal value, and where is the value store? Explain conditional parameter substitution giving example What do you mean by pipe give example / Remembered pattern and repeated pattern , Explain pipe What is regular expression? Explain any one utility which use regular expression, with proper example How command substitution differs from piping mechanism? Explain with example Explain booting sequence of Unix OS What is difference between screen and line editor? List any two names of line and screen editor What is regular expression? Write a regular expression that matches comment line of c program Explain different role of ^ in regular expression Explain features of Unix OS Explain remembered pattern and repeated pattern giving suitable example Give significance of following system variable HOME,PSI Explain find operator in detail Features of OS Which attribute change, when* you copy a file from another user account Significance of FSCK utility Detail note on FSCK utility of Unix Purpose of sticky bit / Differentiate > and >> Prepared By: Ms. Nidhi Solanki (Assist. Prof.) Page 15

WRITE COMMANDS USING sed or grep (1 mark each) 2014 oct./nov march/april Commands using grep or egrep. (1 mark each)

WRITE COMMANDS USING sed or grep (1 mark each) 2014 oct./nov march/april Commands using grep or egrep. (1 mark each) WRITE COMMANDS USING sed or grep (1 mark each) 2014 oct./nov. 1. Display two lines starting from 7 th line of file X1. 2. Display all blank lines between line 20 and 30 of file X1. 3. Display lines beginning

More information

Table of contents. Our goal. Notes. Notes. Notes. Summer June 29, Our goal is to see how we can use Unix as a tool for developing programs

Table of contents. Our goal. Notes. Notes. Notes. Summer June 29, Our goal is to see how we can use Unix as a tool for developing programs Summer 2010 Department of Computer Science and Engineering York University Toronto June 29, 2010 1 / 36 Table of contents 1 2 3 4 2 / 36 Our goal Our goal is to see how we can use Unix as a tool for developing

More information

UNIX ASSIGNMENT 1 TYBCA (Sem:V)

UNIX ASSIGNMENT 1 TYBCA (Sem:V) UNIX ASSIGNMENT 1 TYBCA (Sem:V) Given Date: 06-08-2015 1. Explain the difference between the following thru example ln & paste tee & (pipeline) 2. What is the difference between the following commands

More information

Linux & Shell Programming 2014

Linux & Shell Programming 2014 Practical No : 1 Enrollment No: Group : A Practical Problem Write a date command to display date in following format: (Consider current date as 4 th January 2014) 1. dd/mm/yy hh:mm:ss 2. Today's date is:

More information

Unix as a Platform Exercises. Course Code: OS-01-UNXPLAT

Unix as a Platform Exercises. Course Code: OS-01-UNXPLAT Unix as a Platform Exercises Course Code: OS-01-UNXPLAT Working with Unix 1. Use the on-line manual page to determine the option for cat, which causes nonprintable characters to be displayed. Run the command

More information

On successful completion of the course, the students will be able to attain CO: Experiment linked. 2 to 4. 5 to 8. 9 to 12.

On successful completion of the course, the students will be able to attain CO: Experiment linked. 2 to 4. 5 to 8. 9 to 12. CIE- 25 Marks Government of Karnataka Department of Technical Education Bengaluru Course Title: Linux Lab Scheme (L:T:P) : 0:2:4 Total Contact Hours: 78 Type of Course: Tutorial, Practical s & Student

More information

Unix as a Platform Exercises + Solutions. Course Code: OS 01 UNXPLAT

Unix as a Platform Exercises + Solutions. Course Code: OS 01 UNXPLAT Unix as a Platform Exercises + Solutions Course Code: OS 01 UNXPLAT Working with Unix Most if not all of these will require some investigation in the man pages. That's the idea, to get them used to looking

More information

5/8/2012. Exploring Utilities Chapter 5

5/8/2012. Exploring Utilities Chapter 5 Exploring Utilities Chapter 5 Examining the contents of files. Working with the cut and paste feature. Formatting output with the column utility. Searching for lines containing a target string with grep.

More information

2) clear :- It clears the terminal screen. Syntax :- clear

2) clear :- It clears the terminal screen. Syntax :- clear 1) cal :- Displays a calendar Syntax:- cal [options] [ month ] [year] cal displays a simple calendar. If arguments are not specified, the current month is displayed. In addition to cal, the ncal command

More information

Introduction p. 1 Who Should Read This Book? p. 1 What You Need to Know Before Reading This Book p. 2 How This Book Is Organized p.

Introduction p. 1 Who Should Read This Book? p. 1 What You Need to Know Before Reading This Book p. 2 How This Book Is Organized p. Introduction p. 1 Who Should Read This Book? p. 1 What You Need to Know Before Reading This Book p. 2 How This Book Is Organized p. 2 Conventions Used in This Book p. 2 Introduction to UNIX p. 5 An Overview

More information

Useful Unix Commands Cheat Sheet

Useful Unix Commands Cheat Sheet Useful Unix Commands Cheat Sheet The Chinese University of Hong Kong SIGSC Training (Fall 2016) FILE AND DIRECTORY pwd Return path to current directory. ls List directories and files here. ls dir List

More information

Computer Systems and Architecture

Computer Systems and Architecture Computer Systems and Architecture Stephen Pauwels Computer Systems Academic Year 2018-2019 Overview of the Semester UNIX Introductie Regular Expressions Scripting Data Representation Integers, Fixed point,

More information

Set 1 MCQ Which command is used to sort the lines of data in a file in reverse order A) sort B) sh C) st D) sort -r

Set 1 MCQ Which command is used to sort the lines of data in a file in reverse order A) sort B) sh C) st D) sort -r 1. Which symbol will be used with grep command to match the pattern pat at the beginning of a line? A) ^pat B) $pat C) pat$ D) pat^ 2. Which command is used to sort the lines of data in a file in reverse

More information

PESIT Bangalore South Campus

PESIT Bangalore South Campus INTERNAL ASSESSMENT TEST - 2 Date : 20/09/2016 Max Marks : 0 Subject & Code : Unix Shell Programming (15CS36) Section : 3 rd Sem ISE/CSE Name of faculty : Prof Ajoy Time : 11:30am to 1:00pm SOLUTIONS 1

More information

Common File System Commands

Common File System Commands Common File System Commands ls! List names of all files in current directory ls filenames! List only the named files ls -t! List in time order, most recent first ls -l! Long listing, more information.

More information

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (( )) (( )) [ x x ] cdc communications, inc. [ x x ] \ / presents... \ / (` ') (` ') (U) (U) Gibe's UNIX COMMAND Bible ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The latest file from the Cow's

More information

Introduction to Linux

Introduction to Linux Introduction to Linux Mukesh Pund Principal Scientist, NISCAIR, New Delhi, India History In 1969, a team of developers developed a new operating system called Unix which was written using C Linus Torvalds,

More information

Files and Directories

Files and Directories CSCI 2132: Software Development Files and Directories Norbert Zeh Faculty of Computer Science Dalhousie University Winter 2019 Files and Directories Much of the operation of Unix and programs running on

More information

Linux Shell Script. J. K. Mandal

Linux Shell Script. J. K. Mandal Linux Shell Script J. K. Mandal Professor, Department of Computer Science & Engineering, Faculty of Engineering, Technology & Management University of Kalyani Kalyani, Nadia, West Bengal E-mail: jkmandal@klyuniv.ac.in,

More information

M.C.A. (Sem.-lll) (CBCS) Examination November CCA-3003 Operating System and LinuxlUnix programming

M.C.A. (Sem.-lll) (CBCS) Examination November CCA-3003 Operating System and LinuxlUnix programming IIMII 003-007303 M.C.A. (Sem.-lll) (CBCS) Examination November-20 13 CCA-3003 Operating System and LinuxlUnix programming Faculty Code: 003 Subject Code: 007303 Time: 2'/' Hoursl ITotal Marks: 70 I. Attempt

More information

Computer Systems and Architecture

Computer Systems and Architecture Computer Systems and Architecture Introduction to UNIX Stephen Pauwels University of Antwerp October 2, 2015 Outline What is Unix? Getting started Streams Exercises UNIX Operating system Servers, desktops,

More information

LOG ON TO LINUX AND LOG OFF

LOG ON TO LINUX AND LOG OFF EXPNO:1A LOG ON TO LINUX AND LOG OFF AIM: To know how to logon to Linux and logoff. PROCEDURE: Logon: To logon to the Linux system, we have to enter the correct username and password details, when asked,

More information

Roll No. :... Invigilator's Signature : UNIX AND SHELL PROGRAMMING. Time Allotted : 3 Hours Full Marks : 70

Roll No. :... Invigilator's Signature : UNIX AND SHELL PROGRAMMING. Time Allotted : 3 Hours Full Marks : 70 Name : Roll No. :... Invigilator's Signature :. CS/BCA/SEM-5/BCA-502/2011-12 2011 UNIX AND SHELL PROGRAMMING Time Allotted : 3 Hours Full Marks : 70 The figures in the margin indicate full marks. Candidates

More information

ADVANCED LINUX SYSTEM ADMINISTRATION

ADVANCED LINUX SYSTEM ADMINISTRATION Lab Assignment 1 Corresponding to Topic 2, The Command Line L1 Main goals To get used to the command line. To gain basic skills with the system shell. To understand some of the basic tools of system administration.

More information

for more :-

for more :- JNTU ONLINE EXAMINATIONS [Mid 1 - UNIX] 1. C programmers in the unix environment has complete access to the entire system call library as well as the a. static library functions b. dynamic library functions

More information

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad -500 043 COMPUTER SCIENCE AND ENGINEERING TUTORIAL QUESTION BANK Course Name : LINUX PROGRAMMING Course Code : ACS010 Class : III

More information

Unix Internal Assessment-2 solution. Ans:There are two ways of starting a job in the background with the shell s & operator and the nohup command.

Unix Internal Assessment-2 solution. Ans:There are two ways of starting a job in the background with the shell s & operator and the nohup command. Unix Internal Assessment-2 solution 1 a.explain the mechanism of process creation. Ans: There are three distinct phases in the creation of a process and uses three important system calls viz., fork, exec,

More information

5/20/2007. Touring Essential Programs

5/20/2007. Touring Essential Programs Touring Essential Programs Employing fundamental utilities. Managing input and output. Using special characters in the command-line. Managing user environment. Surveying elements of a functioning system.

More information

A Brief Introduction to the Linux Shell for Data Science

A Brief Introduction to the Linux Shell for Data Science A Brief Introduction to the Linux Shell for Data Science Aris Anagnostopoulos 1 Introduction Here we will see a brief introduction of the Linux command line or shell as it is called. Linux is a Unix-like

More information

Part 1: Basic Commands/U3li3es

Part 1: Basic Commands/U3li3es Final Exam Part 1: Basic Commands/U3li3es May 17 th 3:00~4:00pm S-3-143 Same types of questions as in mid-term 1 2 ls, cat, echo ls -l e.g., regular file or directory, permissions, file size ls -a cat

More information

System Administration

System Administration Süsteemihaldus MTAT.08.021 System Administration UNIX shell basics Name service DNS 1/69 Command Line Read detailed manual for specific command using UNIX online documentation or so called manual (man)

More information

Perl and R Scripting for Biologists

Perl and R Scripting for Biologists Perl and R Scripting for Biologists Lukas Mueller PLBR 4092 Course overview Linux basics (today) Linux advanced (Aure, next week) Why Linux? Free open source operating system based on UNIX specifications

More information

Introduction to UNIX. Introduction. Processes. ps command. The File System. Directory Structure. UNIX is an operating system (OS).

Introduction to UNIX. Introduction. Processes. ps command. The File System. Directory Structure. UNIX is an operating system (OS). Introduction Introduction to UNIX CSE 2031 Fall 2012 UNIX is an operating system (OS). Our goals: Learn how to use UNIX OS. Use UNIX tools for developing programs/ software, specifically shell programming.

More information

Introduction to UNIX. CSE 2031 Fall November 5, 2012

Introduction to UNIX. CSE 2031 Fall November 5, 2012 Introduction to UNIX CSE 2031 Fall 2012 November 5, 2012 Introduction UNIX is an operating system (OS). Our goals: Learn how to use UNIX OS. Use UNIX tools for developing programs/ software, specifically

More information

File permission u owner of file/directory (user) g group of the file/directory o other a all

File permission u owner of file/directory (user) g group of the file/directory o other a all File permission u owner of file/directory (user) g group of the file/directory o other a all Permission Types: permission octal value Meaning Read (r) 4 The file can is read only, for directory it's contain

More information

Unix Guide. Meher Krishna Patel. Created on : Octorber, 2017 Last updated : December, More documents are freely available at PythonDSP

Unix Guide. Meher Krishna Patel. Created on : Octorber, 2017 Last updated : December, More documents are freely available at PythonDSP Unix Guide Meher Krishna Patel Created on : Octorber, 2017 Last updated : December, 2017 More documents are freely available at PythonDSP Table of contents Table of contents i 1 Unix commands 1 1.1 Unix

More information

Shells and Shell Programming

Shells and Shell Programming Shells and Shell Programming 1 Shells A shell is a command line interpreter that is the interface between the user and the OS. The shell: analyzes each command determines what actions are to be performed

More information

Linux & Shell Programming 2014

Linux & Shell Programming 2014 Unit -1: Introduction to UNIX/LINUX Operating System Practical Practice Questions: Find errors (if any) otherwise write output or interpretation of following commands. (Consider default shell is bash shell.)

More information

CSC209H Lecture 1. Dan Zingaro. January 7, 2015

CSC209H Lecture 1. Dan Zingaro. January 7, 2015 CSC209H Lecture 1 Dan Zingaro January 7, 2015 Welcome! Welcome to CSC209 Comments or questions during class? Let me know! Topics: shell and Unix, pipes and filters, C programming, processes, system calls,

More information

Files

Files http://www.cs.fsu.edu/~langley/cop3353-2013-1/reveal.js-2013-02-11/02.html?print-pdf 02/11/2013 10:55 AM Files A normal "flat" file is a collection of information. It's usually stored somewhere reasonably

More information

Unix/Linux Basics. Cpt S 223, Fall 2007 Copyright: Washington State University

Unix/Linux Basics. Cpt S 223, Fall 2007 Copyright: Washington State University Unix/Linux Basics 1 Some basics to remember Everything is case sensitive Eg., you can have two different files of the same name but different case in the same folder Console-driven (same as terminal )

More information

Shells and Shell Programming

Shells and Shell Programming Shells and Shell Programming Shells A shell is a command line interpreter that is the interface between the user and the OS. The shell: analyzes each command determines what actions are to be performed

More information

DEPARTMENT OF COMPUTER APPLICATIONS SRM INSTITUTE OF SCIENCE AND TECHNOLOGY SRM NAGAR, KATTANKALATHUR

DEPARTMENT OF COMPUTER APPLICATIONS SRM INSTITUTE OF SCIENCE AND TECHNOLOGY SRM NAGAR, KATTANKALATHUR DEPARTMENT OF COMPUTER APPLICATIONS SRM INSTITUTE OF SCIENCE AND TECHNOLOGY SRM NAGAR, KATTANKALATHUR SYLLABUS / QUESTION BANK Class & Semester : I ECE & II Semester Subject Code : CS152 Subject Name :

More information

Operating Systems. Copyleft 2005, Binnur Kurt

Operating Systems. Copyleft 2005, Binnur Kurt 3 Operating Systems Copyleft 2005, Binnur Kurt Content The concept of an operating system. The internal architecture of an operating system. The architecture of the Linux operating system in more detail.

More information

Introduction to Linux (Part I) BUPT/QMUL 2018/03/14

Introduction to Linux (Part I) BUPT/QMUL 2018/03/14 Introduction to Linux (Part I) BUPT/QMUL 2018/03/14 Contents 1. Background on Linux 2. Starting / Finishing 3. Typing Linux Commands 4. Commands to Use Right Away 5. Linux help continued 2 Contents 6.

More information

Operating Systems 3. Operating Systems. Content. What is an Operating System? What is an Operating System? Resource Abstraction and Sharing

Operating Systems 3. Operating Systems. Content. What is an Operating System? What is an Operating System? Resource Abstraction and Sharing Content 3 Operating Systems The concept of an operating system. The internal architecture of an operating system. The architecture of the Linux operating system in more detail. How to log into (and out

More information

Unix Processes. What is a Process?

Unix Processes. What is a Process? Unix Processes Process -- program in execution shell spawns a process for each command and terminates it when the command completes Many processes all multiplexed to a single processor (or a small number

More information

Introduction to UNIX. Introduction EECS l UNIX is an operating system (OS). l Our goals:

Introduction to UNIX. Introduction EECS l UNIX is an operating system (OS). l Our goals: Introduction to UNIX EECS 2031 13 November 2017 Introduction l UNIX is an operating system (OS). l Our goals: Learn how to use UNIX OS. Use UNIX tools for developing programs/ software, specifically shell

More information

Common UNIX Utilities Alphabetical List

Common UNIX Utilities Alphabetical List Common UNIX Utilities Alphabetical List addbib - create or extend a bibliographic database apropos - locate commands by keyword lookup ar - create library archives, and add or extract files at - execute

More information

Getting your department account

Getting your department account 02/11/2013 11:35 AM Getting your department account The instructions are at Creating a CS account 02/11/2013 11:36 AM Getting help Vijay Adusumalli will be in the CS majors lab in the basement of the Love

More information

Operating Systems Lab 1 (Users, Groups, and Security)

Operating Systems Lab 1 (Users, Groups, and Security) Operating Systems Lab 1 (Users, Groups, and Security) Overview This chapter covers the most common commands related to users, groups, and security. It will also discuss topics like account creation/deletion,

More information

3/8/2017. Unix/Linux Introduction. In this part, we introduce. What does an OS do? Examples

3/8/2017. Unix/Linux Introduction. In this part, we introduce. What does an OS do? Examples EECS2301 Title Unix/Linux Introduction These slides are based on slides by Prof. Wolfgang Stuerzlinger at York University Warning: These notes are not complete, it is a Skelton that will be modified/add-to

More information

St. MARTIN S ENGINEERING COLLEGE Dhulapally,Secunderabad DEPARTMENT OF INFORMATION TECHNOLOGY Academic year

St. MARTIN S ENGINEERING COLLEGE Dhulapally,Secunderabad DEPARTMENT OF INFORMATION TECHNOLOGY Academic year St. MARTIN S ENGINEERING COLLEGE Dhulapally,Secunderabad-000 DEPARTMENT OF INFORMATION TECHNOLOGY Academic year 0-0 QUESTION BANK Course Name : LINUX PROGRAMMING Course Code : A0 Class : III B. Tech I

More information

Practical Session 0 Introduction to Linux

Practical Session 0 Introduction to Linux School of Computer Science and Software Engineering Clayton Campus, Monash University CSE2303 and CSE2304 Semester I, 2001 Practical Session 0 Introduction to Linux Novell accounts. Every Monash student

More information

hash Remember the full pathname of a name argument head Output the first part of file(s) history Command History hostname Print or set system name

hash Remember the full pathname of a name argument head Output the first part of file(s) history Command History hostname Print or set system name LINUX Commands alias Create an alias apropos Search Help manual pages (man -k) awk Find and Replace text, database sort/validate/index break Exit from a loop builtin Run a shell builtin bzip2 Compress

More information

The UNIX Shells. Computer Center, CS, NCTU. How shell works. Unix shells. Fetch command Analyze Execute

The UNIX Shells. Computer Center, CS, NCTU. How shell works. Unix shells. Fetch command Analyze Execute Shells The UNIX Shells How shell works Fetch command Analyze Execute Unix shells Shell Originator System Name Prompt Bourne Shell S. R. Bourne /bin/sh $ Csh Bill Joy /bin/csh % Tcsh Ken Greer /bin/tcsh

More information

Introduction to UNIX. Logging in. Basic System Architecture 10/7/10. most systems have graphical login on Linux machines

Introduction to UNIX. Logging in. Basic System Architecture 10/7/10. most systems have graphical login on Linux machines Introduction to UNIX Logging in Basic system architecture Getting help Intro to shell (tcsh) Basic UNIX File Maintenance Intro to emacs I/O Redirection Shell scripts Logging in most systems have graphical

More information

Chapter-3. Introduction to Unix: Fundamental Commands

Chapter-3. Introduction to Unix: Fundamental Commands Chapter-3 Introduction to Unix: Fundamental Commands What You Will Learn The fundamental commands of the Unix operating system. Everything told for Unix here is applicable to the Linux operating system

More information

Unix System Architecture, File System, and Shell Commands

Unix System Architecture, File System, and Shell Commands Unix System Architecture, File System, and Shell Commands Prof. (Dr.) K.R. Chowdhary, Director COE Email: kr.chowdhary@iitj.ac.in webpage: http://www.krchowdhary.com JIET College of Engineering August

More information

Basic UNIX Commands BASIC UNIX COMMANDS. 1. cat command. This command is used to create a file in unix. Syntax: $ cat filename

Basic UNIX Commands BASIC UNIX COMMANDS. 1. cat command. This command is used to create a file in unix. Syntax: $ cat filename Basic UNIX Commands BASIC UNIX COMMANDS 1. cat This is used to create a file in unix. $ cat >filename This is also used for displaying contents in a file. $ cat filename 2. ls It displays the list of files

More information

Introduction To Linux. Rob Thomas - ACRC

Introduction To Linux. Rob Thomas - ACRC Introduction To Linux Rob Thomas - ACRC What Is Linux A free Operating System based on UNIX (TM) An operating system originating at Bell Labs. circa 1969 in the USA More of this later... Why Linux? Free

More information

Shell Programming Overview

Shell Programming Overview Overview Shell programming is a way of taking several command line instructions that you would use in a Unix command prompt and incorporating them into one program. There are many versions of Unix. Some

More information

List of Linux Commands in an IPm

List of Linux Commands in an IPm List of Linux Commands in an IPm Directory structure for Executables bin: ash cpio false ln mount rm tar zcat busybox date getopt login mv rmdir touch cat dd grep ls perl sed true chgrp df gunzip mkdir

More information

Command-line interpreters

Command-line interpreters Command-line interpreters shell Wiki: A command-line interface (CLI) is a means of interaction with a computer program where the user (or client) issues commands to the program in the form of successive

More information

d. Permissions 600 on directory dir and 300 on file dir/foo. c. Permissions 700 on directory dir and 200 on file dir/foo.

d. Permissions 600 on directory dir and 300 on file dir/foo. c. Permissions 700 on directory dir and 200 on file dir/foo. Ian! D. Allen Winter 2012-1- 45 minutes Test Version: Print Name: Multiple Choice - 42 Questions - 25 of 25% 1. Read all the instructions and both sides (back and front) of all pages. 2. Put the Test Version

More information

Introduction to remote command line Linux. Research Computing Team University of Birmingham

Introduction to remote command line Linux. Research Computing Team University of Birmingham Introduction to remote command line Linux Research Computing Team University of Birmingham Linux/UNIX/BSD/OSX/what? v All different v UNIX is the oldest, mostly now commercial only in large environments

More information

CSE 390a Lecture 2. Exploring Shell Commands, Streams, Redirection, and Processes

CSE 390a Lecture 2. Exploring Shell Commands, Streams, Redirection, and Processes CSE 390a Lecture 2 Exploring Shell Commands, Streams, Redirection, and Processes slides created by Marty Stepp, modified by Jessica Miller & Ruth Anderson http://www.cs.washington.edu/390a/ 1 2 Lecture

More information

Linux Command Line Primer. By: Scott Marshall

Linux Command Line Primer. By: Scott Marshall Linux Command Line Primer By: Scott Marshall Draft: 10/21/2007 Table of Contents Topic Page(s) Preface 1 General Filesystem Background Information 2 General Filesystem Commands 2 Working with Files and

More information

Unix Introduction to UNIX

Unix Introduction to UNIX Unix Introduction to UNIX Get Started Introduction The UNIX operating system Set of programs that act as a link between the computer and the user. Developed in 1969 by a group of AT&T employees Various

More information

Course 144 Supplementary Materials. UNIX Fundamentals

Course 144 Supplementary Materials. UNIX Fundamentals Course 144 Supplementary Materials UNIX Fundamentals 1 Background to UNIX Command Fundamentals This appendix provides a overview of critical commands and concepts Prerequisite knowledge attendees should

More information

UNIX COMMANDS AND SHELLS. UNIX Programming 2015 Fall by Euiseong Seo

UNIX COMMANDS AND SHELLS. UNIX Programming 2015 Fall by Euiseong Seo UNIX COMMANDS AND SHELLS UNIX Programming 2015 Fall by Euiseong Seo What is a Shell? A system program that allows a user to execute Shell functions (internal commands) Other programs (external commands)

More information

CSE 303 Lecture 2. Introduction to bash shell. read Linux Pocket Guide pp , 58-59, 60, 65-70, 71-72, 77-80

CSE 303 Lecture 2. Introduction to bash shell. read Linux Pocket Guide pp , 58-59, 60, 65-70, 71-72, 77-80 CSE 303 Lecture 2 Introduction to bash shell read Linux Pocket Guide pp. 37-46, 58-59, 60, 65-70, 71-72, 77-80 slides created by Marty Stepp http://www.cs.washington.edu/303/ 1 Unix file system structure

More information

IMPORTANT: Logging Off LOGGING IN

IMPORTANT: Logging Off LOGGING IN These are a few basic Unix commands compiled from Unix web sites, and printed materials. The main purpose is to help a beginner to go around with fewer difficulties. Therefore, I will be adding to this

More information

EECS 2031E. Software Tools Prof. Mokhtar Aboelaze

EECS 2031E. Software Tools Prof. Mokhtar Aboelaze EECS 2031 Software Tools Prof. Mokhtar Aboelaze Footer Text 1 EECS 2031E Instructor: Mokhtar Aboelaze Room 2026 CSEB lastname@cse.yorku.ca x40607 Office hours TTH 12:00-3:00 or by appointment 1 Grading

More information

LAB 8 (Aug 4/5) Unix Utilities

LAB 8 (Aug 4/5) Unix Utilities Aug 4/5 Due: Aug 11 in class Name: CSE number: LAB 8 (Aug 4/5) Unix Utilities The purpose of this lab exercise is for you to get some hands-on experience on using some fundamental Unix utilities (commands).

More information

Introduction to Linux

Introduction to Linux Introduction to Linux University of Bristol - Advance Computing Research Centre 1 / 47 Operating Systems Program running all the time Interfaces between other programs and hardware Provides abstractions

More information

Introduction to the UNIX command line

Introduction to the UNIX command line Introduction to the UNIX command line Steven Abreu Introduction to Computer Science (ICS) Tutorial Jacobs University s.abreu@jacobs-university.de September 19, 2017 Overview What is UNIX? UNIX Shell Commands

More information

Essential Unix (and Linux) for the Oracle DBA. Revision no.: PPT/2K403/02

Essential Unix (and Linux) for the Oracle DBA. Revision no.: PPT/2K403/02 Essential Unix (and Linux) for the Oracle DBA Revision no.: PPT/2K403/02 Architecture of UNIX Systems 2 UNIX System Structure 3 Operating system interacts directly with Hardware Provides common services

More information

Shell. SSE2034: System Software Experiment 3, Fall 2018, Jinkyu Jeong

Shell. SSE2034: System Software Experiment 3, Fall 2018, Jinkyu Jeong Shell Prof. Jinkyu Jeong (Jinkyu@skku.edu) TA -- Minwoo Ahn (minwoo.ahn@csl.skku.edu) TA -- Donghyun Kim (donghyun.kim@csl.skku.edu) Computer Systems Laboratory Sungkyunkwan University http://csl.skku.edu

More information

UNIX Shell Programming

UNIX Shell Programming $!... 5:13 $$ and $!... 5:13.profile File... 7:4 /etc/bashrc... 10:13 /etc/profile... 10:12 /etc/profile File... 7:5 ~/.bash_login... 10:15 ~/.bash_logout... 10:18 ~/.bash_profile... 10:14 ~/.bashrc...

More information

Basic Linux (Bash) Commands

Basic Linux (Bash) Commands Basic Linux (Bash) Commands Hint: Run commands in the emacs shell (emacs -nw, then M-x shell) instead of the terminal. It eases searching for and revising commands and navigating and copying-and-pasting

More information

Shells. A shell is a command line interpreter that is the interface between the user and the OS. The shell:

Shells. A shell is a command line interpreter that is the interface between the user and the OS. The shell: Shells A shell is a command line interpreter that is the interface between the user and the OS. The shell: analyzes each command determines what actions are to be performed performs the actions Example:

More information

CS370 Operating Systems

CS370 Operating Systems CS370 Operating Systems Colorado State University Yashwant K Malaiya Fall 2016 Lecture 5 Slides based on Text by Silberschatz, Galvin, Gagne Various sources 1 1 User Operating System Interface - CLI CLI

More information

Scripting Languages Course 1. Diana Trandabăț

Scripting Languages Course 1. Diana Trandabăț Scripting Languages Course 1 Diana Trandabăț Master in Computational Linguistics - 1 st year 2017-2018 Today s lecture Introduction to scripting languages What is a script? What is a scripting language

More information

The Unix Shell & Shell Scripts

The Unix Shell & Shell Scripts The Unix Shell & Shell Scripts You should do steps 1 to 7 before going to the lab. Use the Linux system you installed in the previous lab. In the lab do step 8, the TA may give you additional exercises

More information

Introduction: What is Unix?

Introduction: What is Unix? Introduction Introduction: What is Unix? An operating system Developed at AT&T Bell Labs in the 1960 s Command Line Interpreter GUIs (Window systems) are now available Introduction: Unix vs. Linux Unix

More information

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad -500 043 COMPUTER SCIENCE AND ENGINEERING TUTORIAL QUESTION BANK Course Name : LINUX PROGRAMMING Course Code : A70511 (R15) Class

More information

bash, part 3 Chris GauthierDickey

bash, part 3 Chris GauthierDickey bash, part 3 Chris GauthierDickey More redirection As you know, by default we have 3 standard streams: input, output, error How do we redirect more than one stream? This requires an introduction to file

More information

UNIT I Linux Utilities

UNIT I Linux Utilities UNIT I Linux Utilities 1. a) How does Linux differ from Unix? Discuss the features of Linux. 5M b) Explain various text processing utilities, with a suitable example for each. 5M 2. a) Explain briefly

More information

Review of Fundamentals

Review of Fundamentals Review of Fundamentals 1 The shell vi General shell review 2 http://teaching.idallen.com/cst8207/14f/notes/120_shell_basics.html The shell is a program that is executed for us automatically when we log

More information

LAB 8 (Aug 4/5) Unix Utilities

LAB 8 (Aug 4/5) Unix Utilities Aug 4/5 Due: Aug 11 in class Name: CSE number: LAB 8 (Aug 4/5) Unix Utilities The purpose of this lab exercise is for you to get some hands-on experience on using some fundamental Unix utilities (commands).

More information

Unix Tools / Command Line

Unix Tools / Command Line Unix Tools / Command Line An Intro 1 Basic Commands / Utilities I expect you already know most of these: ls list directories common options: -l, -F, -a mkdir, rmdir make or remove a directory mv move/rename

More information

Basic UNIX Commands BASIC UNIX COMMANDS. 1. cat command. This command is used to create a file in unix. Syntax: $ cat filename

Basic UNIX Commands BASIC UNIX COMMANDS. 1. cat command. This command is used to create a file in unix. Syntax: $ cat filename Basic UNIX Commands BASIC UNIX COMMANDS 1. cat command This command is used to create a file in unix. $ cat >filename This command is also used for displaying contents in a file. $ cat filename 2. ls command

More information

System Programming. Introduction to Unix

System Programming. Introduction to Unix Content : by Dr. B. Boufama School of Computer Science University of Windsor Instructor: Dr. A. Habed adlane@cs.uwindsor.ca http://cs.uwindsor.ca/ adlane/60-256 Content Content 1 Introduction 2 3 Introduction

More information

System Programming. Unix Shells

System Programming. Unix Shells Content : Unix shells by Dr. A. Habed School of Computer Science University of Windsor adlane@cs.uwindsor.ca http://cs.uwindsor.ca/ adlane/60-256 Content Content 1 Introduction 2 Interactive and non-interactive

More information

Contents. Note: pay attention to where you are. Note: Plaintext version. Note: pay attention to where you are... 1 Note: Plaintext version...

Contents. Note: pay attention to where you are. Note: Plaintext version. Note: pay attention to where you are... 1 Note: Plaintext version... Contents Note: pay attention to where you are........................................... 1 Note: Plaintext version................................................... 1 Hello World of the Bash shell 2 Accessing

More information

ITST Searching, Extracting & Archiving Data

ITST Searching, Extracting & Archiving Data ITST 1136 - Searching, Extracting & Archiving Data Name: Step 1 Sign into a Pi UN = pi PW = raspberry Step 2 - Grep - One of the most useful and versatile commands in a Linux terminal environment is the

More information

Utilities. September 8, 2015

Utilities. September 8, 2015 Utilities September 8, 2015 Useful ideas Listing files and display text and binary files Copy, move, and remove files Search, sort, print, compare files Using pipes Compression and archiving Your fellow

More information

Midterm 1 1 /8 2 /9 3 /9 4 /12 5 /10. Faculty of Computer Science. Term: Fall 2018 (Sep4-Dec4) Student ID Information. Grade Table Question Score

Midterm 1 1 /8 2 /9 3 /9 4 /12 5 /10. Faculty of Computer Science. Term: Fall 2018 (Sep4-Dec4) Student ID Information. Grade Table Question Score Faculty of Computer Science Page 1 of 8 Midterm 1 Term: Fall 2018 (Sep4-Dec4) Student ID Information Last name: First name: Student ID #: CS.Dal.Ca userid: Course ID: CSCI 2132 Course Title: Instructor:

More information

Linux Shell Scripting. Linux System Administration COMP2018 Summer 2017

Linux Shell Scripting. Linux System Administration COMP2018 Summer 2017 Linux Shell Scripting Linux System Administration COMP2018 Summer 2017 What is Scripting? Commands can be given to a computer by entering them into a command interpreter program, commonly called a shell

More information