1. This is normal. You run bash as another application. Must be terminated to get back to the main shell.
You can try this in .profile:
This should replace the primary login-shell by /bin/bash.
Safer is to change your login shell (in /etc/passwd), e.g. with command
2. use stronger quoting so evaluation can happen later:
Probably the same, and certainly more efficient is to leave PROMPT_COMMAND unset and instead use
3. when bash finds .bash_profile it takes this instead of .profile. If necessary (e.g. becomes appropriate when the login shell was changed to /bin/bash) you can do
Last edited by MadeInGermany; 04-11-2013 at 02:51 PM..
Hello again !
Thanks for response of my first question. there is my second quesiton why i have local.profile instead of .profile file ?
my all files in pwd shoes local. before any file.
is anybody can tell me about that ?
Thanks
Abid Malik (5 Replies)
hi , i added ls -F to .profile. and i need to do ./.profile for the effect to take effect BUT i didnt and YET the next day when i came to work and log in, the changes took effect. i am on aix.
please explain..
thanks (4 Replies)
Hi,
When I logon to UNIX I go to the root directory. I don't have an assigned user directory.
I need to get to my .profile so that I can change things like command prompt.
How do I do this? By the way I am using SUN Solaris
Thanks. (3 Replies)
Hi
I know from reading O Riley's Classic Shell Scripting' that the .profile file is " the shells configuration file" but I am unable to find a reference to what "..profile" means. I have searched on the net, Sams Teach Yourself Unix, Unix Visual Quickstart Guide and Linux in a Nutshell. I have... (2 Replies)
Hello
I really wonder what's trap in etc/profile and in each user .profile.
I try to google for it but I think I have no luck. Mostly hit is SNMP traps which I think it is not the same thing.
I want to know ...
1. What's a "trap 2 3" means and are there any other value I can set... (4 Replies)
hey'all
does anyway know how I can make a script which resides in dir:
/mypath/a/b/c/d
available to other users without them having to set their environment to
PATH=/mypath/a/b/c/d=$PATH
export PATH
in their profiles. This is done so they can simply type myscript on the... (4 Replies)
Hi,
I have entry in .profile like this :
alias GH='. /opt/dba/oraadmin/tools/gh.sh'
and gh.sh script has some thing like this :
#!/bin/ksh
echo "Setting the GRID_HOME env variables"
ORACLE_SID=GRID_HOME;export ORACLE_SID
ORACLE_HOME=$GRID_HOME;export ORACLE_HOME... (1 Reply)
Discussion started by: talashil
1 Replies
10. Post Here to Contact Site Administrators and Moderators
COMMAND-NOT-FOUND(1) http://en.opensuse.org/Sco COMMAND-NOT-FOUND(1)NAME
command-not-found - A command-not-found handler
SYNOPSIS
command-not-found {binary_name} {repository}
ARGUMENTS
The following arguments are required:
binary_name
The name of binary you are looking for.
repository
The name of repository for search. For most cases, use zypp
DESCRIPTION
command-not-found handler is designed to tell users which package contains a missing command.
The handler is integrated to bash(1) and zsh(1) shells and is not necessary to call it directly. Just type a name of the command in your
favourite shell and you'll get a result.
If you consider c-n-f handler useless, just add unset command_not_found_handle to your profile or remove the command-not-found package.
Handler doesn't call the command-not-found binary directly, it only prints info about it. If you want to invoke it automatically, just add
export COMMAND_NOT_FOUND_AUTO=1 to your bash profile.
EXAMPLE : NORMAL USAGE
For example you want to try blender, because you have heard that is an amazing program. So just type blender in shell:
$ blender
You get the following output:
The program 'blender' can be found in the following package:
* blender [ path: /usr/bin/blender, repository: zypp (openSUSE 11.1-0) ]
Try installing with:
sudo zypper install blender
bash: blender: command not found
SEE ALSO scout(1)AUTHOR
Pavol Rusnak <stick@gk2.sk>
Developer
http://gitorious.org/opensus 08/07/2009 COMMAND-NOT-FOUND(1)