0% found this document useful (0 votes)
93 views

SE233: Operating System and System Programming Lab Assignment W4 & W5: GNU/Linux OS Command Line Interface Part 2

This document provides instructions for an assignment on using GNU/Linux command line interface. Students are asked to complete 12 steps involving commands like creating files, listing files, copying files, renaming files, and deleting files using wildcards and options. They are also instructed to use the script utility to capture the output of the commands into a file for submission.

Uploaded by

Sakib Khan
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
93 views

SE233: Operating System and System Programming Lab Assignment W4 & W5: GNU/Linux OS Command Line Interface Part 2

This document provides instructions for an assignment on using GNU/Linux command line interface. Students are asked to complete 12 steps involving commands like creating files, listing files, copying files, renaming files, and deleting files using wildcards and options. They are also instructed to use the script utility to capture the output of the commands into a file for submission.

Uploaded by

Sakib Khan
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Department of Software Engineering (SWE)

Faculty of Science and Information Technology (FSIT)


Daffodil International University (DIU)
SE233: Operating System and System Programming Lab
Assignment W4 & W5: GNU/Linux OS Command line Interface Part 2

Reminder: do steps 2 – 12 first without running the script utility to find all the answers. Then
start script to do screen capture.

1. Use the script utility to capture the screen output and save into a file with your choice of
filename

2. Use one command to create 3 empty files called test3.2, slide12, cis2

3. Use wildcards to list all filenames that have the letter s in the name

4. Use wildcards to list all filenames that have the letter s as the third character in the name

5. Use wildcards to list all filenames that have the number 1 or 3 in the name

6. Use wildcards to list all filenames that have at least 2 digits, and the digits don’t have to
be next to each other. (A digit is a numeric value between 0 and 9)

7. Copy file lab1-2 (the last lab assignment) to test3.2, use the interactive option and answer
yes when prompted

8. Use an option of the ls command to see the size in bytes of file test3.2

9. Rename test3.2 to temp2

10. Run a command to prove that test3.2 doesn’t exists

11. List all files that you worked with in this lab. Use wildcards to make your command as
short as possible (use the fact that the files all have some common character in their names)

12. Use one command to delete all 3 files that you created in this lab

13. Exit script. Save the script output file so you can continue with Module 4, on the next
page.

You might also like