Faculty of Engineering and Technology Electrical and Computer Engineering Department
This document provides instructions for a Linux laboratory assignment. Students are asked to:
1) Create a directory named after their name and ID, and a file inside it named after their last name.
2) Write specified content to the file including the lab name, assignment number, semester, and year.
3) Display the first two lines of the file and change the file permissions to read, write, and execute for all users.
4) Combine all file lines into one, separating them with a "-" and show the result. Make other modifications and searches as outlined in the remaining steps.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
21 views
Faculty of Engineering and Technology Electrical and Computer Engineering Department
This document provides instructions for a Linux laboratory assignment. Students are asked to:
1) Create a directory named after their name and ID, and a file inside it named after their last name.
2) Write specified content to the file including the lab name, assignment number, semester, and year.
3) Display the first two lines of the file and change the file permissions to read, write, and execute for all users.
4) Combine all file lines into one, separating them with a "-" and show the result. Make other modifications and searches as outlined in the remaining steps.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1
Faculty of Engineering and Technology
Electrical and Computer Engineering Department
Linux Laboratory, ENCS313 To Do #1 Time: 60 minutes Submission: - Take snapshots of the command line with the output and combine all snapshots in one pdf file. - Name the pdf file as xxxxxxx-yyyyyyy-Sec-zz.pdf xxxxxxx : university number yyyyyyy : Your first Name zz: Section Number
Write Linux command lines to do the following:
1. Create a directory with name “yourName_ID” 2. Create a file with name “yourLastName.txt” inside the directory created in step.1 3. Write inside the created file exactly the following content (you may use editors such as vim, pico, ….):
Linux Lab Lab.
ToDo#1 Summer Semester 2019/2020#
4. Display the first 2 lines of the file.
5. Change the permission of the file to read write and execute for owner, groups and others. 6. Combine all lines in one line, separate lines with “-” character. Show your result only on standard output. 7. Replace word Lab to LAB for all matches. 8. Search for the lines that does not end with the character “.” or “#” 9. Search for the lines that contains a sequence of minimum 2 numbers and maximum 5 numbers. 10. Replace the space character with the “-” character for the output of date command.