0% found this document useful (0 votes)
18 views1 page

Lab Exercise1

The document provides instructions for a Linux lab exercise involving creating, renaming, copying, deleting, and moving files and directories. The student is asked to create a file called file1.txt containing their name and registration number, rename it to theirregistrationnumber.txt, make a copy of that file and delete the original, and move both files into a new directory named after the student and create additional directories with friends' names.

Uploaded by

JOHN ROBIN
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views1 page

Lab Exercise1

The document provides instructions for a Linux lab exercise involving creating, renaming, copying, deleting, and moving files and directories. The student is asked to create a file called file1.txt containing their name and registration number, rename it to theirregistrationnumber.txt, make a copy of that file and delete the original, and move both files into a new directory named after the student and create additional directories with friends' names.

Uploaded by

JOHN ROBIN
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

LAB EXERCISE1

2. Create a file in your Linux system , in your current users home directory , named as
file1.txt. Write your name and registration number in the file1.txt using cat command . Now
rename the file using mv command , the new name must be “yourRegistrationNo.txt”.

3.Create a copy of the file you have created with your Registration number. Now delete the
original file.

4. Create a directory with your name and move all the files (using mv command) created by
you in currently logged in users home directory.

5.Create multiple directories using single command (Directory name can your friends name).

You might also like