asked 71.2k views
2 votes
Which command would you use to view the assigned SGID?

A) ls -l
B) ls -a
C) ls -ld
D) ls -g

asked
User Agermano
by
8.7k points

1 Answer

2 votes

Final answer:

To view the SGID bit setting, use the ls -l command. It shows the permissions and ownership details, including the SGID bit status in the file listing.

Step-by-step explanation:

To view the assigned SGID (Set Group ID) on a file or directory, you would use the ls -l command. The SGID bit is displayed as an 's' in the group permission section of the long-format listing when the execution bit is set, and as a capital 'S' when the execution bit is not set. For example, if you see something like 'rw-r-S---' in the listing, that indicates that the SGID bit is set for that file.

answered
User Adilli Adil
by
8.0k points