09-25-2007
Can I modify the .bashrc file instead of .profile file to customize my login?
Hello,
I got this question which tells me to customize my login script. Some people in the forums suggested to modify the .profile file in my home directory. I did so, but none of my customizations show up when I open the terminal after.
So, I tried to modify other files in my home directory, and found out that my customizations only works when written in the .bashrc file. When I open the terminal after modifying the .bashrc file, the terminal automatically displays my customizations (the directory that I have been sent to, the date and time, my customized prompt, etc).
This is great....only that I am not sure that I did the right thing. After all, everyone told me that I have to modify the .profile file. I'm getting headaches out of this. Any help? Thxs.
7 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I search the web and found the following statements
.....
The /etc/profile file is a system wide initialization script which is run at login time for each user, while .profile is the users own login initialization. The .bashrc file is an initialization file run by each interactive invocation... (1 Reply)
Discussion started by: cy163
1 Replies
2. Shell Programming and Scripting
Hi,
I am realatively new to UNIX (I started 1 week ago), and I need some help on an assignment.
I am trying to find the file that will allow me to modify my login. I did some research, and most of my sources tell me to modify the ~/.cshrc and ~/.login files. The problem is that I cannot find... (1 Reply)
Discussion started by: Hyunkel
1 Replies
3. Shell Programming and Scripting
hi i am using cygwin and would like to modify my .bashrc file. How can search to find where it is? I have looked at multiple bashrc file in /etc but none of them seemed to work..thanks (12 Replies)
Discussion started by: npatwardhan
12 Replies
4. Shell Programming and Scripting
Hi experts,
I am using bash shell and I cant find any .bashrc file in my home dir. Can anybody please help me out here....
If .bashrc file is not there, from where my shell config operates? Also I want to set my prompt like...
$
Please advice. (5 Replies)
Discussion started by: gentleDean
5 Replies
5. UNIX for Dummies Questions & Answers
Hi there, I am really new to unix (about 3 days using it). In my assignment spec i have been told to modify my .profile file and create an environmental file.
Until now all tasks have been file manipulation, etc learn how to use chmod or grep etc.
I literally can't find this .profile file, I... (1 Reply)
Discussion started by: paulbuckley221
1 Replies
6. OS X (Apple)
It deletes my .bashrc file rarely but predictability after some unknown count of Mac's restarts. Has someone ever faced such behavior?
How do I prevent OS X from modifying .bashrc? What ownership/permission should I set up to not let it happen?
OS X Lion. (6 Replies)
Discussion started by: scrutinizerix
6 Replies
7. Shell Programming and Scripting
Hi,
I dont find any .profile under my user home directory.
These are the only files i see in my home directory.
# ls -laq
total 44
drwx------ 4 user1 adm 4096 Nov 23 05:10 .
drwxr-xr-x. 12 root root 4096 Nov 22 13:05 ..
-rw-r--r-- 1 user1 adm 18 Nov 22 13:05 .bash_logout... (3 Replies)
Discussion started by: mohtashims
3 Replies
LEARN ABOUT CENTOS
semanage-boolean
semanage-boolean(8) semanage-boolean(8)
NAME
semanage boolean- SELinux Policy Management boolean tool
SYNOPSIS
semanage boolean [-h] [-n] [-N] [-s STORE] [ --extract | --deleteall | --list [-C] | --modify ( --on | --off ) boolean ]
DESCRIPTION
semanage is used to configure certain elements of SELinux policy without requiring modification to or recompilation from policy sources.
semanage boolean command controls the settings of booleans in SELinux policy. booleans are if-then-else rules written in SELinux Policy.
They can be used to customize the way that SELinux Policy rules effect a confined domain.
OPTIONS
-h, --help
show this help message and exit
-n, --noheading
Do not print heading when listing the specified object type
-N, --noreload
Do not reload policy after commit
-S STORE, --store STORE
Select an alternate SELinux Policy Store to manage
-C, --locallist
List local customizations
-m, --modify
Modify a record of the specified object type
-l, --list
List records of the specified object type
-E, --extract
Extract customizable commands, for use within a transaction
-D, --deleteall
Remove all local customizations
-1, --on
Enable the boolean
-0, --off
Disable the boolean
EXAMPLE
Turn on the apache can send mail boolan
# semanage boolean -m --on httpd_can_sendmail
List customized booleans
# semanage boolean -l -C
SEE ALSO
selinux (8), semanage (8) setsebool (8) getsebool (8)
AUTHOR
This man page was written by Daniel Walsh <dwalsh@redhat.com>
20130617 semanage-boolean(8)