Skip to main content

Linux command: find - search for files in a directory hierarchy

seek and you shall find

find - search for files in a directory hierarchy

Hint:

find WHERE WHAT

Find files larger than 1GB

$ find . -type f -size +1G

Find files smaller than 1GB

$ find . -type f -size -1G

Find ALL files larger than 100MB and sort by size

$ find / -type f -size +100M 2>/dev/null -exec ls -sh {} \; | sort -h

For ethical hacking

Find files with SUID

find / -perm -u=s -type f 2>/dev/null
find / -perm -4000 -type f 2>/dev/null
On Windows, use dir to search for files/directories:
dir filename /s

Popular posts from this blog

Powershell: Install-WindowsFeature DHCP

Install-WindowsFeature DHCP Powershell: Install-WindowsFeature DHCP

Linux command: lspci

Linux command: lspci - list pci devices tuyendq@ubuntu001:~$ man lspci NAME        lspci - list all PCI devices SYNOPSIS        lspci [options] DESCRIPTION        lspci is a utility for displaying information about PCI buses in the system and devices connected to them.        By  default,  it  shows a brief list of devices. Use the options described below to request either a more verbose output or output intended for parsing by        other programs.        If you are going to report bugs in PCI device drivers or in lspci itself, please include output of "lspci -vvx" or even better  "lspci  -vvxxx"  (however,        see below for possible caveats).        Some  parts of the output, especially in the highly verbose modes, are probably intelligible only to experienced PCI hac...

Microsoft Windows: Commonly Used Shortcuts

Windows shortcuts Shortcuts Description Windows + Up Arrow Maximize active window Windows + Down Arrow Restore active window Windows + Left Arrow Move active window to half left of screen Windows + Right Arrow Move active window to half right of screen Windows + A Open Notifications window Windows + C Open C ortana Windows + E Open Windows E xplorer Windows + F Open Windows' F eedback Hub Windows + I Open Windows Settings Windows + L L ock screenr Windows + M M inimize all active windows Windows + P Send screen to P rojector Windows + R Open R UN dialog Windows + Pause Open System Properties window Windows + SHIFT + S Open S creenClipping tool CTRL + SHIFT + ESC Open Task Manager