Home
About
Pricing
Log In

What are you looking for?

Ls Filedot ((top)) Review

ls -a ~ | grep "\.zshrc"

Beyond simple text files, the "hidden file" property is not an attribute in the file system itself. Instead, it is a convention implemented by the ls command: it simply checks the first character of a filename. If that character is a dot, ls ignores it by default. This approach also means that hidden directories, such as .ssh or .config , operate under the same rules, keeping your home directory organized.

or

: Represents the parent directory one level up.

Typing ls -lah or ls -lA continuously can become tedious. You can permanently save these commands into your shell's filedot configurations ( .bashrc or .zshrc ) as shortcuts. Open your configuration file: nano ~/.bashrc Use code with caution. Add custom aliases at the bottom of the file: alias l.='ls -d .[!.]*' alias la='ls -la' Use code with caution. Save the file and reload the shell configuration: source ~/.bashrc Use code with caution. ls filedot

ls -la ~ | grep "\.config"

In shell scripting, you might see:

ls -ld .* drwx------ 2 user user 4096 Jan 1 .ssh -rw-r--r-- 1 user user 124 Jan 1 .bashrc

touch filedot echo "secret" > filedot ls filedot ls -a ~ | grep "\

To see permissions, ownership, and file sizes for your hidden files, combine the "all" flag with the "long" listing format. Why use it: