githubEdit

CSE424 / OS Lab

Syllabus

Lab Notes

[⤓] CSE424-OS-Lab-1arrow-up-right

[⤓] CSE424-OS-Lab-2arrow-up-right

[⤓] CSE424-OS-Lab-3arrow-up-right

[⤓] CSE424-OS-Lab-4arrow-up-right

[⤓] CSE424-OS-Lab-5arrow-up-right

Experiments

chevron-rightEXPT1: File Permissionhashtag

Write a shell Script to assign a file permission to the given file using Symbolic Mode/Absolute Mode:

// Some code
chevron-rightEXPT2: File Compressionhashtag

To compresses a file using gzip and pack commands

chevron-rightEXPT3: Pattern Search using grep & fgrephashtag

To find a given pattern in a list of files of current directory using grep and fgrep commands.:

chevron-rightEXPT4: Directory Creation and File Movementhashtag

Write a shell script to create two directories and store five files in one directory using the related commands and to transfer all the files to another directory

chevron-rightEXPT5: File Existence Check & Information Displayhashtag

Write a shell script to accept a file name as input and display whether it exits or not. If it exists, then give the details of its attributes like access permission, its size etc.:

chevron-rightEXPT6: Sum of Number using Command Linehashtag

Shell Script to find out the sum of the given numbers using command line argument.

chevron-rightEXPT7: Shell Script to Find Large/Small Numberhashtag

Write a shell script to find the largest among the 3 given numbers also write a shell script to find the smallest.

chevron-rightEXPT8: Shell Script to Find Sum of Digits of Numberhashtag

Write a shell script to find sum of digits of a number

chevron-rightEXPT9: Shell Script to Replicate Head/Tail Commandshashtag

Write a shell scripts which works similar to the Unix commands Head Tail.

chevron-rightEXPT10: Shell Script for Basic Math Opshashtag

Write a shell script to find the sum, the average and the product of the four integers entered.

chevron-rightEXPT11: User Log in Infohashtag

Write a shell script to find how many terminals has this user logged in.

chevron-rightEXPT12: Shell Script for Number Reversalhashtag

Write a shell script to reverse a number supplied by a user.:

chevron-rightEXPT13: Shell Script for Power Findinghashtag

Write a script to find the value of one number raised to the power of another.:

chevron-rightEXPT14: Shell Script for File Existence Checkhashtag

Write a shell script, which will receive any number of filenames as arguments. The shell script should check whether such files already exist.

chevron-rightEXPT15: File Contents Reversalhashtag

Write a shell script to reverse the contents of a file:.

chevron-rightEXPT16: Count No of entries in subdirectory at pathhashtag

Write a script to count and report the number of entries in each subdirectory mentioned in the path, which is supplied as a command-line argument.

chevron-rightEXPT17: Shell Script for Basic Math Ops using cmd line argshashtag

Write a shell program to add, subtract and multiply the 2 given numbers passed as command line arguments:

chevron-rightEXPT18: Menu Driven Shell Scripthashtag

Write a menu driven shell script for Copy a file, remove a file, Move a file.

Get Credited for sharing your Knowledge Source with your Peers
Submit Queries/Feedbacks/Suggestions/Complaints using this Form

Last updated