The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
sourcing the .bashrc Nusy UNIX for Dummies Questions & Answers 3 05-27-2008 05:23 PM
.bashrc question re: rm -i & ls --colors kthatch UNIX for Dummies Questions & Answers 16 04-21-2008 05:06 PM
alias rm = 'rm -i' in .bashrc and vnc cy163 UNIX for Dummies Questions & Answers 0 05-23-2007 09:57 AM
history -c in my .bashrc yankee428 UNIX for Dummies Questions & Answers 1 06-23-2005 04:13 PM
from bashrc to sh..?? moxxx68 Shell Programming and Scripting 3 09-13-2004 05:39 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-28-2008
oxoxo oxoxo is offline
Banned
  
 

Join Date: Sep 2008
Posts: 38
.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 (permalink)  
Old 10-29-2008
oxoxo oxoxo is offline
Banned
  
 

Join Date: Sep 2008
Posts: 38
.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 (permalink)  
Old 10-29-2008
vino's Avatar
vino vino is offline Forum Staff  
Supporter (in vino veritas)
  
 

Join Date: Feb 2005
Location: Bangalore, India
Posts: 2,796
You may be looking for /etc/bashrc. It should have a PS1 entry. The local .bashrc refers to that global /etc/bashrc
  #4 (permalink)  
Old 10-29-2008
oxoxo oxoxo is offline
Banned
  
 

Join Date: Sep 2008
Posts: 38
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 (permalink)  
Old 10-29-2008
oxoxo oxoxo is offline
Banned
  
 

Join Date: Sep 2008
Posts: 38
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?
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 08:37 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0