|
1 |
| -.\" generated with Ronn-NG/v0.9.1 |
2 |
| -.\" http://github.com/apjanke/ronn-ng/tree/0.9.1 |
| 1 | +.\" generated with Ronn-NG/v0.10.1 |
| 2 | +.\" http://github.com/apjanke/ronn-ng/tree/0.10.1 |
3 | 3 | .TH "CHMOD\-CALC" "1" "January 2020" "helper-scripts" "helper-scripts Manual"
|
4 | 4 | .SH "NAME"
|
5 | 5 | \fBchmod\-calc\fR \- Comprehensive File and Directory Inspection Tool
|
6 | 6 | .SH "SYNOPSIS"
|
7 | 7 | \fBchmod\-calc <file_path>\fR
|
8 | 8 | .SH "DESCRIPTION"
|
9 | 9 | \fBchmod\-calc\fR is a comprehensive file and directory inspection tool that consolidates various Linux command functionalities into a single utility\. It displays detailed information about a file or directory, including:
|
10 |
| -.IP "\[ci]" 4 |
| 10 | +.IP "\(bu" 4 |
11 | 11 | Basic permissions (Owner, Group, Public)
|
12 |
| -.IP "\[ci]" 4 |
| 12 | +.IP "\(bu" 4 |
13 | 13 | Octal representation of permissions
|
14 |
| -.IP "\[ci]" 4 |
| 14 | +.IP "\(bu" 4 |
15 | 15 | File type (Regular File, Directory, Symlink, Hardlink, etc\.)
|
16 |
| -.IP "\[ci]" 4 |
| 16 | +.IP "\(bu" 4 |
17 | 17 | Owner and group information
|
18 |
| -.IP "\[ci]" 4 |
| 18 | +.IP "\(bu" 4 |
19 | 19 | Access Control Lists (ACLs) status
|
20 |
| -.IP "\[ci]" 4 |
| 20 | +.IP "\(bu" 4 |
21 | 21 | Extended attributes (xattr) status
|
22 |
| -.IP "\[ci]" 4 |
| 22 | +.IP "\(bu" 4 |
23 | 23 | Linux capabilities (getcap)
|
24 |
| -.IP "\[ci]" 4 |
| 24 | +.IP "\(bu" 4 |
25 | 25 | Immutable attribute (chattr +i)
|
26 |
| -.IP "\[ci]" 4 |
| 26 | +.IP "\(bu" 4 |
27 | 27 | File size and link count
|
28 |
| -.IP "\[ci]" 4 |
| 28 | +.IP "\(bu" 4 |
29 | 29 | Special attributes (SUID, SGID, Sticky Bit)
|
30 |
| -.IP "\[ci]" 4 |
| 30 | +.IP "\(bu" 4 |
31 | 31 | Hidden file detection
|
32 | 32 | .IP "" 0
|
33 | 33 | .SH "RETURN VALUES"
|
34 |
| -.IP "\[ci]" 4 |
| 34 | +.IP "\(bu" 4 |
35 | 35 | \fB0\fR Successfully retrieved and displayed file information\.
|
36 |
| -.IP "\[ci]" 4 |
| 36 | +.IP "\(bu" 4 |
37 | 37 | \fB1\fR File not found or an error occurred\.
|
38 | 38 | .IP "" 0
|
39 | 39 | .SH "EXAMPLE"
|
40 | 40 | \fBchmod\-calc \./example_file\fR
|
41 |
| -.P |
42 |
| -``` Permissions for: \./example_file Type: Regular File Owner: user Group: user Octal Permissions: 644 File Size: 123 bytes Link Count: 1 Hidden File: No ACLs: none Extended Attributes: none Capabilities: None Immutable (chattr +i): No |
43 |
| -.P |
44 |
| -Category Read Write Execute Owner Yes Yes No Group Yes No No Public Yes No No |
45 |
| -.P |
46 |
| -Special Attributes: SUID: Not Set SGID: Not Set Sticky Bit: Not Set ``` |
| 41 | +.IP "" 4 |
| 42 | +.nf |
| 43 | +Permissions for: \./example_file |
| 44 | +Type: Regular File |
| 45 | +Owner: user Group: user |
| 46 | +Octal Permissions: 644 |
| 47 | +File Size: 123 bytes |
| 48 | +Link Count: 1 |
| 49 | +Hidden File: No |
| 50 | +ACLs: none |
| 51 | +Extended Attributes: none |
| 52 | +Capabilities: None |
| 53 | +Immutable (chattr +i): No |
| 54 | + |
| 55 | +Category Read Write Execute |
| 56 | +Owner Yes Yes No |
| 57 | +Group Yes No No |
| 58 | +Public Yes No No |
| 59 | + |
| 60 | +Special Attributes: |
| 61 | +SUID: Not Set |
| 62 | +SGID: Not Set |
| 63 | +Sticky Bit: Not Set |
| 64 | +.fi |
| 65 | +.IP "" 0 |
47 | 66 | .SH "AUTHOR"
|
48 | 67 | This man page has been written by Patrick Schleizer (adrelanos@whonix\.org)\.
|
0 commit comments