From 983abc694f248c66ab9c882185493278ebcea8c9 Mon Sep 17 00:00:00 2001 From: lucky-vers Date: Sat, 21 Oct 2023 21:59:37 +0530 Subject: [PATCH] Add more info on 2>/dev/null --- Writeup.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Writeup.md b/Writeup.md index 883534e..89d6c30 100644 --- a/Writeup.md +++ b/Writeup.md @@ -206,7 +206,7 @@ find / -size 33c -user bandit7 -group bandit6 2>/dev/null - `/` tells find that we want to search the entire filesystem, i.e. the root directory, for the file. - `-size 33c` means the file's size has to be exactly 33 bytes long. - `-user bandit7` and `-group bandit6` filter for only those files owned by user bandit7 and group bandit6, respectively. -- `2>/dev/null` removes any error messages that might show up while running the command, e.g. `permission denied` errors. +- `2>/dev/null` removes any error messages that might show up while running the command, e.g. `permission denied` errors. `2` is the indicator for the error stream `stderr`, and `>/dev/null` means we are redirecting it to the null device, i.e. discarding its output. The result of the command is ```