Hi
Can anyone tell me if it is at all possible to edit ones .bash_profile, to make the setting on of line numbers (in vi/vim), permanent?
I've been to a few IRC channels and people keep telling me it is more of a vi/vim thing and to use something called ".vimrc", however I heard that it is... (3 Replies)
Hi Guys,
I modified my .bash_profile script , and tried to change the prompt.
Following is the line of code in my .bash_profile script.
export PS1=" \W "
But I get the output as:
\W
This appears to be my prompt now.
Any idea what should be done..
Thanks! (0 Replies)
We are more users using the oracle account, and people want to include theyr own files in .bash_profile. Like this:
while ; do
echo -n "LOGNAME is '$LOGNAME' (no sens), who are you? " >/dev/stderr
read ln
export LOGNAME=$ln
done
This works well when logging in to... (1 Reply)
Hi all. when i connect as user megaguru i have a problem my .bash_profile does not working^:(
if i do:
. ./.bash_profile
all enviroment variables are in place. How can i force linux to use .bash_profile before logon process?
thanx in advance. (1 Reply)
Hello Friends,
I was trying to give a text/welcome message to a specific user just after his login.
For that i had added a echo test message line in .bash_profile of that user.
Which is not working ....
Also i had to execute a script on his login
for that i had tried to enter the... (6 Replies)
I am using solaris 10 x86. I have created a .bash_profile under root's home directory(/). The contents of the file are:
Solaris10u8/# cat .bash_profile
export PATH=$PATH:/usr/sfw/bin
export PS1='\h\w\$ '
export PAGER="less -imsq"
alias ll='ls -l'
alias la='ls -a'
The problem is that:
... (7 Replies)
Hi,
happy new year.
on AIX 6.1 , for user oracle , there are two files :
bash_profile and .profile
I do not know which one is executed when login ? How to know ,
More over in both of them we have :
in .profile :
ORACLE_HOME=/appli/oracle/product/10.2.0/db_1... (5 Replies)
Hi,
I wanted to do the following, but the command does not seem to work. Any ideas or suggestions please help.
#1. If the particular ENV variable IMPACT_HOME is not there in a file
grep -q IMPACT_HOME infile || sed -i 'i IMPACT_HOME=/my/new/path' infile
#2. If the ENV variable... (4 Replies)
Hi,
Unexpectedly i entered wrong entries in .bash_profile for my user which has administrative permissions. So, i am getting errors for every command. I dont have backup file also, so any body can help me how to recover it.
Regards,
Mastan (7 Replies)
Hi All
Please can you tell , what is the difference between bash_profile and bashrc. How to create them? (8 Replies)
Discussion started by: fretagi
8 Replies
LEARN ABOUT LINUX
finger
finger(1) User Commands finger(1)NAME
finger - display information about local and remote users
SYNOPSIS
finger [-bfhilmpqsw] [username...]
finger [-l] [ username@hostname 1 [ @hostname 2 .. .@hostname n...]]
finger [-l] [ @hostname 1 [ @hostname 2 .. .@hostname n...]]
DESCRIPTION
By default, the finger command displays in multi-column format the following information about each logged-in user:
o user name
o user's full name
o terminal name (prepended with a `*' (asterisk) if write-permission is denied)
o idle time
o login time
o host name, if logged in remotely
Idle time is in minutes if it is a single integer, in hours and minutes if a `:' (colon) is present, or in days and hours if a `d' is
present.
When one or more username arguments are given, more detailed information is given for each username specified, whether they are logged in
or not. username must be that of a local user, and may be a first or last name, or an account name. Information is presented in multi-line
format as follows:
o the user name and the user's full name
o the user's home directory and login shell
o time the user logged in if currently logged in, or the time the user last logged in; and the terminal or host from which the user
logged in
o last time the user received mail, and the last time the user read mail
o the first line of the $HOME/.project file, if it exists
o the contents of the $HOME/.plan file, if it exists
Note: when the comment (GECOS) field in /etc/passwd includes a comma, finger does not display the information following the comma.
If the arguments username@hostname1[@hostname2...@hostnamen] or @hostname1[@hostname2...@hostnamen] are used, the request is sent first to
hostnamen and forwarded through each hostnamen-1 to hostname1. The program uses the finger user information protocol (see RFC 1288) to
query that remote host for information about the named user (if username is specified), or about each logged-in user. The information dis-
played is server dependent.
As required by RFC 1288, finger passes only printable, 7-bit ASCII data. This behavior may be modified by a system administrator by using
the PASS option in /etc/default/finger. Specifying PASS=low allows all characters less than decimal 32 ASCII. Specifying PASS=high allows
all characters greater than decimal 126 ASCII. PASS=low,high or PASS=high,low allows both characters less than 32 and greater than 126 to
pass through.
OPTIONS
The following options are supported, except that the username@hostname form supports only the -l option:
-b Suppresses printing the user's home directory and shell in a long format printout.
-f Suppresses printing the header that is normally printed in a non-long format printout.
-h Suppresses printing of the .project file in a long format printout.
-i Forces "idle" output format, which is similar to short format except that only the login name, terminal, login time, and idle time
are printed.
-l Forces long output format.
-m Matches arguments only on user name (not first or last name).
-p Suppresses printing of the .plan file in a long format printout.
-q Forces quick output format, which is similar to short format except that only the login name, terminal, and login time are
printed.
-s Forces short output format.
-w Suppresses printing the full name in a short format printout.
FILES
$HOME/.plan user's plan
$HOME/.project user's projects
/etc/default/finger finger options file
/etc/passwd password file
/var/adm/lastlog time of last login
/var/adm/utmpx accounting
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWrcmds |
+-----------------------------+-----------------------------+
SEE ALSO passwd(1), who(1), whois(1), passwd(4), attributes(5)
Zimmerman, D., The Finger User Information Protocol, RFC 1288, Center for Discrete Mathematics and Theoretical Computer Science (DIMACS),
Rutgers University, December 1991.
NOTES
The finger user information protocol limits the options that may be used with the remote form of this command.
SunOS 5.10 6 Nov 2000 finger(1)