Member-only story

Linux Strength Training Tryhackme Writeup

Vijay Kumar Gupta
24 min readAug 28, 2024

https://tryhackme.com/room/linuxstrengthtraining

Room link: https://tryhackme.com/room/malstrings
Note: This room is free

Task 2: Finding your way around linux — overview

As a security researcher you will often be required to find specific files/folders on a system based on various conditions ranging from, but not limited to the following:

  • filename
  • size
  • user/group
  • date modified
  • date accessed
  • Its keyword contents

Therefore, we can do this using the following syntax:-

Find files based on filename

find [directory path] -type f -name [filename]

find /home/Andy -type f -name sales.txt

Find Directory based on directory name

find [directory path] -type d -name [filename]

find /home/Andy -type d -name pictures

Find files based on size

find [directory path] -type f -size [size]

find /home/Andy -type f -size 10c(c…

--

--

Vijay Kumar Gupta
Vijay Kumar Gupta

Written by Vijay Kumar Gupta

Vijay Gupta is an inspiring public speaker and social entrepreneur who has dedicated his life to bringing about positive change and empowering communities.

No responses yet