-
Junior Member
registered user
Missing .bash_profile file
While trying to learn how to use the bash shell, I was asked on two different occasions to edit the .bash_profile file purportedly located in my home directory. Unfortunately neither the ls -a command nor a search via the Find applet were able to locate it. Is this file part of Knoppix and if so where/how can I locate it? If not, there must be a similar file that serves in the same manner as the missing one. Which one? Btw, what I wanted to do with it was to enter (1) an alias and (2) a path to a file containing my scripts so that the latter can be executed from any directory without the need to navigate to the directory that contains them first.
-
Junior Member
registered user
Missing .bash_profile file
You can just create one, and put your commands in it.
Many linux systems will fall back to /etc/bash_profile (note no dot) if it is there, but I don't see one on the image I am using.
google would get you lots of info on this - it is a very general linux question
-
Junior Member
registered user
Thanks! I will keep this in mind. Meanwhile, I found that the .bashrc file (which is the home directory) can do exactly what I wanted to get out of the missing .bash_profile file. Thanks again!
-
Senior Member
registered user
Re: Missing .bash_profile file
I think is necessary to clear something confusing here, knowing for what .bash_profile and .bashrc are in place:
.bash_profile is loaded on login shells (those that you go in loading the system in text-only mode or throught 'ctrl-alt-fx')
.bashrc came in place on non-login shells (such as xterm, konsole etc.)
In my knoppix .bash_profile doesn't exist by default.
Originally Posted by
wbatw
Many linux systems will fall back to /etc/bash_profile (note no dot) if it is there, but I don't see one on the image I am using.
Maybe you are talking about /etc/profile.
Both .bashrc and .bash_profile residing in the home directory are strictly user-related. '/etc/profile' instead affect all the system, so what you put in it take effect even on root-user and all other users.
Similar Threads
-
By Rey Flores in forum Hardware & Booting
Replies: 3
Last Post: 10-18-2005, 09:18 PM
-
By s-m-n in forum Hardware & Booting
Replies: 4
Last Post: 04-23-2005, 05:27 PM
-
By mmarks in forum General Support
Replies: 0
Last Post: 04-14-2005, 07:20 PM
-
By Kellymyrick in forum General Support
Replies: 1
Last Post: 07-16-2004, 11:52 PM
-
By krix in forum Customising & Remastering
Replies: 0
Last Post: 06-29-2004, 09:39 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Samsung Galaxy Tab A8 10.5" SM-X200 128GB Wifi Only Tablet Open Box
$149.99
Genuine Samsung Book Cover Keyboard for 14.6" Galaxy Tab S8 Ultra | S8 Ultra 5G
$89.99
Samsung - S Pen Creator Edition - White
$40.00
Samsung Galaxy Tab A9 (X110) 64GB 4GB RAM International Version (New)
$129.99
Samsung Galaxy 12.4 Inch Slim Keyboard For S7+ | S7 FE | S8+ | S8+ 5G EF-DT730
$49.99
SAMSUNG AM-P613NZBMXAR Galaxy S6 Lite 2022 10.4" 64GB Wi-Fi Tablet With S Pen,
$134.00
Samsung Galaxy Tab E 8" 16GB Black SM-T377V (Verizon) Android Tablet IG1000
$30.35
Samsung USB 3.1 Flash Drive Bar Plus 256gb TITAN Gray
$24.10
Samsung 870 EVO 500GB 2.5" SSD MZ-77E500
$30.00
SAMSUNG 24" Monitor Full HD LED/LCD - GRADE A CONDITION - S24E650PL
$69.95