From ee09ff9c5aa9f6e00f88712fe94711bb3592c6b6 Mon Sep 17 00:00:00 2001 From: Anmol Singh Jaggi <4741415+Anmol-Singh-Jaggi@users.noreply.github.com> Date: Fri, 12 Oct 2018 13:13:30 +0530 Subject: [PATCH] namei: add page (#2427) --- pages/linux/namei.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pages/linux/namei.md diff --git a/pages/linux/namei.md b/pages/linux/namei.md new file mode 100644 index 0000000000..211f24f585 --- /dev/null +++ b/pages/linux/namei.md @@ -0,0 +1,24 @@ +# namei + +> Follows a pathname (which can be a symbolic link) until a terminal point is found (a file/directory/char device etc). +> This program is useful for finding "too many levels of symbolic links" problems. + +- Resolve the pathnames specified as the argument parameters: + +`namei {{path/to/a}} {{path/to/b}} {{path/to/c}}` + +- Display the results in a long-listing format: + +`namei --long {{path/to/a}} {{path/to/b}} {{path/to/c}}` + +- Show the mode bits of each file type in the style of `ls`: + +`namei --modes {{path/to/a}} {{path/to/b}} {{path/to/c}}` + +- Show owner and group name of each file: + +`namei --owners {{path/to/a}} {{path/to/b}} {{path/to/c}}` + +- Don't follow symlinks while resolving: + +`namei --nosymlinks {{path/to/a}} {{path/to/b}} {{path/to/c}}`