Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Task 1 . Check file and directory details In this task, you must explore the permissions of the projects directory and the files it contains.

Task 1. Check file and directory details
In this task, you must explore the permissions of the projects directory and the files it contains. The lab starts with /home/researcher2 as the current working directory. This is because you're changing permissions for files and directories belonging to the researcher2 user.
0/4
1. Navigate to the projects directory.
2. List the contents and permissions of the projects directory.
The permissions of the files in the projects directory are as follows:
total 20 drwx--x---
2 researcher2 research_team
4096 Oct 14
18:40 drafts
46 Oct
1418:40 project_k.txt
research_team
researcher2
-rw-rw-rw-1
46
Oct 1418:40 project_m.txt
-rw-r---1 researcher2 research_team
46 Oct
1418:40 project_r.txt
researcher2 research_team
-rw-rw-r--1
46 Oct 1418:40 project_t.txt
-rw-rw-r--1
researcher2
research_team
Note: The date and time information returned is the same as the date and time when you ran the command. Therefore, it is different from the date and time in the example.
As you may recall from the video lesson, a 10-character string begins each entry and indicates how the permissions on the file are set. For instance, a directory with full permissions for all owner types would be drwxrwxrwx:
The 1st character indicates the file type. The d indicates it's a directory. When this character is a hyphen (-), it's a regular file.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions