Q. Can you tell me more about dot-files that shell and many UNIX command reads?
A. A dot file is nothing but a configuration file usually stored in users home directory. Dot files are used to configure the settings for many UNIX / Linux programs such as:
=> Bash / csh / ksh shell
=> Vi / Vim and other text editor
=> And many other applications
Usually UNIX like operating system is configured with hundreds of file located at /etc/ or /usr/local/etc or other special directories. Each application has a unique format. User can override many application defaults by creating their own configuration file in home directory. To hide configuration file from normal listing of the home directory, the name of the config file / directory prefixed with a dot (period). Thus, you got name dot file.
You can list dot files using ls command:
$ ls -a
$ ls -ld .*
$ ls -a | grep '^\.'
Output:
. .. .adobe .automatix .azureus .bash_history .bmp .cache .config .DCOPserver_vivek-desktop__0 .DCOPserver_vivek-desktop_:0 .dmrc .esd_auth .fontconfig .fullcircle ..... ...... ... .tvtime .update-manager-core .update-notifier .viminfo .vimrc .vlc .w3m .Xauthority .xine .xsession-errors
You can edit or update all dot files with standard text editor. You can also browse other users configuration file online here.
- 30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
- Top 30 Nmap Command Examples For Sys/Network Admins
- 25 PHP Security Best Practices For Sys Admins
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- Linux: 20 Iptables Examples For New SysAdmins
- Top 20 OpenSSH Server Best Security Practices
- Top 20 Nginx WebServer Best Security Practices
- 20 Examples: Make Sure Unix / Linux Configuration Files Are Free From Syntax Errors
- 15 Greatest Open Source Terminal Applications Of 2012

- My 10 UNIX Command Line Mistakes
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- The Novice Guide To Buying A Linux Laptop













{ 2 comments… read them below or add one }
Good to explain such common things, but your command (using ls and grep) could be simplified:
ls -ld .*
That should also work.
Robert,
Thanks for simplified version
I appreciate your comment.