.bashrc question


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers .bashrc question
# 1  
Old 10-29-2008
.bashrc question

Hi,

I was instructed to find all the .bashrc files on my system, that MODIFY the PS1 varaible.

here is what i've come up with so far:

ls / .bashrc -print

woo.

But thats not all. I need to display the full file name ( Including the full path ) and protection.

- I can display the protection ( ls - l ) but not including the .bashrc files
- I dont know how to find .bashrc files that modify PS1 varaible
- the full file name?

Any help is apprecatied.
# 2  
Old 10-29-2008
.bashrc files that modify the PS1 varaible.
or
the .bashrc files that run on login that give me my prompt

right?

im having a hard time finding what to read ( besides man ) that can help with these questions.
# 3  
Old 10-29-2008
You may be looking for /etc/bashrc. It should have a PS1 entry. The local .bashrc refers to that global /etc/bashrc
# 4  
Old 10-29-2008
what i've done is: find / -name .bashrc

which lists all the files on the system that have a name ".bashrc"

when i redirect that output to a file i only get the the .bashrc files that are in the home directory

without redirecting the output i get the .bashrc files that are on the system.

again my question is:

-Find all files on the system named ".bashrc" that modify the PS1 variable. -List the full file name (including the full path) and protection.


Im running the PuTTY configuration system on windows.
# 5  
Old 10-29-2008
i have no way of knowing if what i've found modifies the PS1 variable.

ls -lha .bashrc

give me: -rw-r--r-- <user> size and date .bashrc

i dont think thats all the .bashrc files in the system tho

and how would i get the full path name to the .bashrc file?
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

.bashrc questions

Are there any advantages of doing one over the other in your .bashrc? They both seem to do the same thing. HISTFILESIZE=10000 HISTSIZE=10000export HISTFILESIZE=10000 export HISTSIZE=10000 (4 Replies)
Discussion started by: cokedude
4 Replies

2. Fedora

.bashrc in Ubuntu 14.04

I am getting this: cmccabe@DTV-A5211QLM:~$ cat ~/.bashrc Command 'cat' is available in '/bin/cat' The command could not be located because '/bin' is not included in the PATH environment variable. cat: command not found cmccabe@DTV-A5211QLM:~$ nano .bashrc Command 'nano' is available in... (9 Replies)
Discussion started by: cmccabe
9 Replies

3. UNIX for Advanced & Expert Users

unset .bashrc

Could someone please tell me how to unset your .bashrc? I have tried all of these. I can't find anything useful from google. unset -f .bashrc unset .bashrc (9 Replies)
Discussion started by: cokedude
9 Replies

4. Shell Programming and Scripting

bashrc not saving changes

I am trying to do some changes at bashrc file located at /etc directory of my server. First I tried to edit bashrc via FTP downloaded on my pc changed it and loaded back, but it seems like changes are not reflecting. Therefore I tried to change it via putty shel using vim bashrc command. but... (4 Replies)
Discussion started by: ninadgac
4 Replies

5. Shell Programming and Scripting

.bashrc file

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

6. Shell Programming and Scripting

bashrc

i have made a few changes to my bashrc file...have set a few environmental variable that my shell scripts use. Is there any way that these changes can reflect in evryone else's bashrc who are in the network or do all of them have to copy those changes to their own bashrc file. (2 Replies)
Discussion started by: lassimanji
2 Replies

7. Ubuntu

/etc/bashrc umask

Hi, I got this redhat ent 4 assigned to me now. /etc/bashrc if ; then umask 022 else umask 077 fi What does it mean? I created already three user and it never had 022 umask, always 077. Thank you in advance. (3 Replies)
Discussion started by: itik
3 Replies

8. UNIX for Dummies Questions & Answers

Having trouble with .bashrc

hey guys, Im trying to find all my .bashrc files in the home directory. ~/etc/bash.bashrc is the only thing i can find but its outside of my /home Could the files be hidden? I want to see all my .bashrc files in my /home structure... <cries> (5 Replies)
Discussion started by: oxoxo
5 Replies

9. UNIX for Dummies Questions & Answers

.bashrc question re: rm -i & ls --colors

QUESTION #1: I have this in my .bashrc file: alias rm='rm -i' Problem is, there are 3 files that I remove many times a day and would like this command to ignore these 3 files. In other words, prompt me on everything EXCEPT these 3 files. Is this possible? QUESTION #2: Also in... (16 Replies)
Discussion started by: kthatch
16 Replies

10. Shell Programming and Scripting

from bashrc to sh..??

:) as soon as i installed my software a couple of weeks ago.. (fedora core 2 vs, 2.6.8-1.521) i decided to switch the shell to sh shell and i know that .bashrc is the bash profile file(???) i want to use the sh version of the same file and make it the main profile file.. how can I switch it and... (3 Replies)
Discussion started by: moxxx68
3 Replies
Login or Register to Ask a Question