Edit The User Account Profile | What is .bash_profile File Personal Setting File

.bash_profile it is hidden file.
This file is locate in the every user home directory.
But you can not see that file in the ordinary ls -l command
How To See Linux Hidden File
using ls -la command you can see list of hidden files present in the particular directory
Example
[root@localhost user1]# pwd
/home/user1
[root@localhost user1]# ls
[root@localhost user1]# ls -la >> see the list of hidden files
total 9
drwx------ 3 user1 user1 3072 May  6 10:37 .
drwxr-xr-x 4 root  root  1024 May  6 09:07 ..
-rw------- 1 user1 user1    0 May  6 10:24 .bash_history
-rw-r--r-- 1 user1 user1   33 May  6 09:07 .bash_logout
-rw-r--r-- 1 user1 user1  176 May  6 09:07 .bash_profile
-rw-r--r-- 1 user1 user1  124 May  6 09:07 .bashrc
-rw-r--r-- 1 user1 user1  515 May  6 09:07 .emacs
drwxr-xr-x 4 user1 user1 1024 May  6 09:07 .mozilla
By through these command you can confirm  bash profile file located in the every user home directory
you can find these file using locate command
[user1@localhost ~]$ locate .bash_profile
/etc/skel/.bash_profile
/home/user1/.bash_profile
Edit User Account Profile

You can set the lot of setting in the every user by through editing these bash profile .Example for setting  user1 he can able to see the list of command only two command
login into the user1
[root@localhost ~]# su - user1
Edit bash profile setting file
Add these two lines
HISTSIZE=2 HISTFILESIZE=2

[user1@localhost ~]$ vi ~/.bash_profile 
HISTSIZE=2
HISTFILESIZE=2
Then restart the system Try it
[user1@localhost ~]$ history
    1  vi ~/.bash_profile
    2  history

Related post