From c1e96ad15bc14d636c3a39884e5739404413e4f8 Mon Sep 17 00:00:00 2001 From: gunboy001 Date: Sun, 18 Nov 2018 18:03:02 +0100 Subject: [PATCH] added find --- linux_general.txt | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/linux_general.txt b/linux_general.txt index fd8b9f0..77767ab 100644 --- a/linux_general.txt +++ b/linux_general.txt @@ -58,13 +58,24 @@ "whoami" and "groups": they respectively output the current user and groups NOTE: one alternative to "whoami" is "echo $USER" which can be used in scripts - --Adding users to groups: - "usermod -a -G grup user" - reboot - --Listing all groups: - "cut -d: -f1 /etc/group | sort" + FIND: + Sources: + https://www.cyberciti.biz/faq/how-do-i-find-all-the-files-owned-by-a-particular-user-or-group/ + refer to man for all the available options + Basic syntax: + "find [OPTIONS]" + OPTIONS: + "-user " find files owned by a particular user + "-group " find files owned by a particular group + "-ls" list results in "ls" format: + "-name " find a specific file or pattern (*.txt) + +-Groups: + Adding users to groups: + "usermod -a -G grup user" + reboot + Listing all groups: + "cut -d: -f1 /etc/group | sort" -Linux afterinstall (how to get thing working): Bluetooth usage: