Kristen Directories

What is the relationship between folders and directories? Some people believe that Windows 95 renamed directories to folders, but it's actually more than that. Windows Explorer lets you view folders, which are containers in the shell namespace. Directories are one type of folder, namely, folders which correspond to file system locations.

grep -r "texthere" / (recursively grep all directories and subdirectories) grep -r "texthere" . (recursively grep these directories and subdirectories) grep recursive grep [options] PATTERN [FILE...] [options] -R, -r, --recursive Read all files under each directory, recursively. This is equivalent to the -d recurse or --directories=recurse option.

kristen directories 2 Exclusive Content Member Only — Sign Up Free 🔒 Unlock full images & premium access

How do I create a directory at a given path, and also create any missing parent directories along that path? For example, the Bash command mkdir -p /path/to/nested/directory does this.

kristen directories 3 Exclusive Content Member Only — Sign Up Free 🔒 Unlock full images & premium access

4 */ is a filename matching pattern that matches directories in the current directory. To list directories only, I like this function:

kristen directories 4 Exclusive Content Member Only — Sign Up Free 🔒 Unlock full images & premium access

This is wrong, you should never use include_directories over target_include_directories. The former sets it recursively for all targets in that directory; whereas the latter sets it for a target. Doing the former breaks the notion of a target graph in CMake, and instead relies on side effects to your file hierarchy.

kristen directories 5 Exclusive Content Member Only — Sign Up Free 🔒 Unlock full images & premium access

Ignore all files and directories that start with a dot at any level: */. Explanation: **/ allows the subsequent pattern to apply to all directories located anywhere in the directory structure, from the root (where the .gitignore file resides) to any nested subdirectory (e.g., dev/, src/subdir/).

gitignore - How to ignore all hidden directories/files recursively in a ...

How can I hide specified files/directories (e.g., .git) in the sidebar ...