Hidden config files in Linux and UNIX
Categories: Information Technology, System Administration, UNIXThere are some files within the home directory that are ordinarily hidden. Hidden files have names that begin with a period; hence, they have been given the nickname of dot files. Hidden files are not displayed by the ls command unless the –a option is used in the format of ls –a.
The table below lists some of the more common dot files that users should know about. This is by no means a totally comprehensive list. Additional dot files can be found in the user’s home directory; however, some searches may not find some of the files listed here. The files found are dependent upon the applications installed on the server, the utilities that are in use and the command shell that is being used. Since the default shell for Linux is the bash shell, the home directory typically contains the bash related scripts indicated below.
|
File |
Description |
|
.bash_history |
For users of the bash shell, a file containing up to 500 of the most recent commands available for recall using the up and |
|
.bash_logout |
Script that is run by the bash shell when the user logs out of the system |
|
.bash_profile |
Initialization script that is run by the bash shell upon login in order to setup variables and aliases. When bash |
|
.bashrc |
Initialization script executed whenever the bash shell is started in some way other than a login shell. It is better to put |
|
.gtkrc |
GTK initialization file. GTK+ |
|
.login |
The initialization script that is run whenever a user |
|
.logout |
The script that is automatically run whenever a user |
|
.profile |
Put default system-wide environment variables in /etc/profile. |
|
.viminfo |
Initialization file for the Vim text editor that is |
|
.wm_style |
Specifys the default window manager if one is not |
|
.Xdefaults & .Xresources |
Initialization files for Xterm resources for the user. |
|
.xinitrc |
The initialization file used when running startx, which can be used to activate applications and run a particular window manager. |
|
.xsession |
This file is executed when a user logs in to an X-terminal |
For more tips like this check out my book Easy Linux Commands, only $19.95 from Rampant TechPress.Buy it now!
2 Responses to “Hidden config files in Linux and UNIX”
-
Atul Saxena Says:
May 29th, 2007 at 6:00 amHow to list on the hidden files present in a specific directory???
-
Bluto Says:
May 31st, 2007 at 11:55 amAtul,
first change to the directory
% cd /path/stuff/mydirectory
then list ALL (including hidden)
% ls -a
Or, just do this single command to see the hidden files and directories
% ls -a cd /path/stuff/mydirectory
In UNIX / Linux, the hidden attribute is a convention. All directories that start with a DOT are “hidden” in a normal listing.
Of more use is to see a bit more info, so we might prefer a LONG listing.
% ls -al
Hope this helps – Bluto
