Professional Documents
Culture Documents
Linuxrr PDF
Linuxrr PDF
2. Change the permissions of a file named "my_file.txt" to allow read and write
access for the owner only.
4. Copy a file named "data.txt" from the "/tmp" directory to your current working
directory.
8. Find all files with the extension ".txt" in the current directory and its
subdirectories.
11.Change the current directory to "/var/log" and list all files and directories
within it.
12. Move a file named "old_file.txt" from the current directory to a directory
named "archive" within your home directory.
13.Count the number of lines in a file named "data.txt" located in the current
directory.
15.Search for files in the current directory that contain the word "important" in
their names.
TASK-2
1. Create a new user for each office. For example, you could create a user
called "techy" for the Kathmandu office, a user called "lads" for the Butwal
office, and a user called "private" for the Mustang office.
Lads:
Techy:
5. Create a file in each user's home directory with a unique name and write the
name of the continent the user is representing inside the file. For example,
you could create a file called "techy.txt" in the "techy" user's home directory
and write "Hey this is it" inside the file using redirection.
6.Verify that each user has only read and write permissions for their
respective file.
7.Change the ownership of the file to another user and verify it.
8.Remove the user "techy" from the group and verify it.