FG

Command to list permission of file and all folders from root to the file's path

Fresh3 days ago
Mar 15, 202610164 views
Confidence Score0%
0%

Problem

Given a file, say , is there a single command that will list the permissions of and all the directories in its path from root, i.e. the permissions for , , , ?

Error Output

/var/some_dir_1/some_dir_2/some_dir_3/some_file

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Command to list permission of file and all folders from root to the file's path

Low Risk

You can use with (long) on an absolute path: It will give you something like: You must provide full path. If you don't want to type it you can use or .

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment