Skip to content
This repository was archived by the owner on Aug 20, 2026. It is now read-only.
awais1019Public archive

About

No description or website provided.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

Lab 3

Task1:

Q1:

  • Create a file using touch file1.txt and open it by nano file1.txt

​ !![](.\Screenshot 2024-02-02 151237.png)

  • Create second file using touch file2.txt and open it by nano file2.txt

​ !![{ width=300 height=200 }](.\Images\Screenshot 2024-02-02 151607.png)

  • Add data in both Files

    !![](.\Images\Screenshot 2024-02-02 150835.png)

​ !![](.\Images\Screenshot 2024-02-02 150923.png)

  • Merge both files using cat file1.txt file2.txt > merged_file.txt and open merged_file

    !

    ![](.\Images\Screenshot 2024-02-02 153250.png)

  • Display the first two lines of first file. Display the last two lines of second file.

​ !![](.\Images\Screenshot 2024-02-02 154006.png)

  • Finds the string (your roll#) from the first file. First Add your roll number in file1.txt

    !![](.\Images\Screenshot 2024-02-02 154308.png)

  • Now give Persmission to group

  • Remove owner write permission

  • Create file on destop and show it

  • show time

  • show a messege

    !![](.\Images\Screenshot 2024-02-02 170659.png)

Task 2:

!![](.\Images\Screenshot 2024-02-02 172012.png)

About

No description or website provided.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors