I am newbie to Solaris and system administration in general, and I have a couple of questions about files in my HOME directory.
When I perform ls -la, I get the following list of files:
This week-end, I found out that I could not access 'svcadm' may be because my path was missing /usr/sbin/. I am getting the bash shell when I log in (echo $SHELL returns /usr/bin/bash).
I have been doing some reading on the Internet and it seems like:
i) local.cshrc is the shell start-up initialization file for the C shell, correct? If yes, it is not executed because I am under bash, correct?
ii) local.login is the login initialization file for the C shell, correct? If yes, it is not executed because I am under bash, correct?
iii) local.profile is the shell start-up initialization for the Bourne and Korn shells, correct? If yes, it is not executed because I am under bash, correct?
iv) What is the '.profile' file exactly? In my case, it exports a couple of variables and defines the default prompt. Is this file executed when I log in?
v) What is the '.bashrc' file exactly? It define the default prompt in my case. Is this file executed when I log in?
vi) '.bash_login' is a file I had to create as part of installation instructions for Maven. It exports the Maven path and adds it to the PATH variable. This file is obviously executed when I log in, because without it, I cannot run Maven from anywhere.
My question is: is there a way to export those variables for everyone who logs in? If yes, how should I proceed?
vii) '.bash_history' contains the list of commands I have been using recently. I have no questions about it.
viii) When I echo $PATH, I get
which fits perfectly with what I am doing in .bash_login. It seems that only .bash_login is executed when I am logging in? Is this correct? Or are other default files executed too?
---------- Post updated at 07:24 PM ---------- Previous update was at 05:28 PM ----------
# ls -l
-rw-r--r-- 1 dummy2 other 140 Jun 19 21:37 local.cshrc
-rw-r--r-- 1 dummy2 other 136 Jun 19 21:37 local.cshrc~
-rw-r--r-- 1 dummy2 other 157 Jun 19 21:37 local.login
-rw-r--r-- 1 dummy2 other 178 Jun 19 21:37 local.profile... (6 Replies)
I have to create a sh script which return users who have un-sanctioned(forbidden) files in their home directory.
I tried to do:
for i in `grep -v '^+' $PASSWORD_FILE | cut -d: -f1,6`
username=`echo... (6 Replies)
hey there folks! I cant figure out, for the life of me, how to procede in removing alll the files in my home directory that are not owned by me.
would i have to list them, but after that what do i do. or is there some way I am not aware of.
my employer heard i could script in unix, but i havent... (3 Replies)
Is there a shell command that will allow me to list index files in the /home directory for all users on a server that have been updated within the past 24 hours?
(e.g. index.htm .html .php in/home/user1/public_html /home/user2/public_html /home/user3/public_html etc ) (2 Replies)
really strange files keep appearing in my home directory. I have absolutely no idea where they come from and I'm a little concerned that they could come from some kind of malware activity or Firefox exploit. I searched Google for parts of the file names but without a result. The... (6 Replies)
I have been an apple customer for years now, and am not satisfied with the direction that they are going. So I just ordered my first PC notebook the other day. I have no desire to use windows, however with microsoft's hold on the market, I feel that I may have a hard time doing this. I want to... (2 Replies)