securebytes.hashnode.devPermissions & Ownership - Linux Commands Vol 51. chmod Change file mode bits (permissions) Syntax: chmod [flags] Common Modes and Flags: -R — change files and directories recursively. u/g/o/a — User, Group, Others, All. +/-/= — Add, Remove, Set exact permission. r/w/x — Read, Write, Execut...Dec 18, 2025·3 min read
securebytes.hashnode.devThe Power of Search - Linux Commands vol 41. find Search for files or directories based on conditions Syntax: find <path> [expression]Common Expressions and Flags: -name <pattern> — match filenames with a pattern. Example: find . -name "*.txt" -type f|d — match files (f) or directories ...Dec 18, 2025·3 min read
securebytes.hashnode.devRegex - A Cheatsheet[abc] - a, b or c[abc]zz - azz or bzz or czz[a-c]zz - to define ranges[a-cx-z]zz - combining rangesfile[1-3] [^k]ing - ring, sing, $ing, but not king. - exclusion [^a-c]at will match - fat and hat, but not bat or cat`. a.c will match aac, abc, a0c, ...Dec 18, 2025·2 min read
securebytes.hashnode.devViewing & Editing - Linux Commands vol 31. cat Concatenate and display files Syntax: cat [flags] <file> Flags: -n — number all output lines -b — number nonempty output lines -s — squeeze multiple blank lines into one Notes: Can be used to combine files: cat file1.txt file2.txt > comb...Dec 18, 2025·3 min read
securebytes.hashnode.devFile Manipulation - Linux Commands vol 21. cp Copy files or directories Syntax: cp [flags] <source> <destination>Flags: -r — recursive copy (for directories) -a — archive mode (preserve structure, permissions, timestamps) -v — verbose output 2. mv Move or rename files and direct...Dec 9, 2025·2 min read