How to change /usr/bin/grep To /usr/local/bin/grep

Hi
I have installed GNU Grep but when I am giving the command #which grep it is showing me solaris grep i.e /usr/bin/grep.
My question is how do I change it to /usr/local/bin/
Thanks in advance
Sukrut

You have a few options:
1) place /usr/local/bin before /usr/bin in your PATH environment variable
2) remove /usr/bin/grep altogether
3) move /usr/bin/grep to something else (ie: /usr/bin/solaris/grep) and symlink /usr/bin/grep to /usr/local/bin/grep just in case any hard coded programs/scripts rely on /usr/bin/grep being present.
I prefer step #3 since most of the various gnu utilities are virtually 100% drop-in replacements.

Similar Messages

  • How to change the dictionary-managed taclespaces to locally managed

    Hi,
    how to change the dictionary-managed taclespaces to locally managed tablespaces in 9i?
    Many thanks.

    Hi
    execute DBMS_SPACE_ADMIN.TABLESPACE_MIGRATE_TO_LOCAL ('TABLESPACE_NAME');

  • How to change value of instance variable and local variable at run time?

    As we can change value at run time using debug mode of Eclipse. I want to do this by using a standalone prgram from where I can change the value of a variable at runtime.
    Suppose I have a class, say employee like -
    class employee {
    public String name;
    employee(String name){
    this.name = name;
    public int showSalary(){
    int salary = 10000;
    return salary;
    public String showName()
    return name;
    i want to change the value of instance variable "name" and local variable "salary" from a stand alone program?
    My standalone program will not use employee class; i mean not creating any instance or extending it. This is being used by any other calss in project.
    Can someone tell me how to change these value?
    Please help
    Regards,
    Sujeet Sharma

    This is the tutorial You should interest in. According to 'name' field of the class, it's value can be change with reflection. I'm not sure if local variable ('salary') can be changed - rather not.

  • How to Change Date Format according to the Locale/Country of Portal User

    Hi,
    In a webdynpro applicaiton, how to chage the  Date Format according to the Locale/Country of Portal User.
    Consider for INDIA: mm/dd/yyyy
    Consider for UK: yyyy/mm/dd
    So when i select the date from the Date Picker[input ui element bound to date context variable], the date format should be displayed accroding the portal users country/locale.
    Creating a simple type for every date format in the dictionary would not be the right solution.
    Please help.
    Thanks,
    Regards,
    Aditya Metukul

    Hi Aditya,
    Check out the following post in SDN and refer the
    Bertram's reply on the same topic.
    date format
    Regards,
    Shubham

  • How to change Transport request into local object $temp.?

    Hi experts,
    I would like to know to how to change a Transport request into and local object.
    I have already assigned Infopackage to TR, but its not required. We dont want this infopackage to be transported to prod. So how can i change that as a local object.
    Please put our valuable inputs.
    Thanks in advance.
    Regards,
    Dubbu

    Go To that Infopackage ,
    Extras Menu----Object catalog entry.  There you can change package name.
    or
    In SE09---Under the transport requests you can search for the infopackage name and delete from the TR.
    Regards,
    Srikanth
    Edited by: srikanth on Feb 19, 2009 2:26 PM
    Edited by: srikanth on Feb 19, 2009 2:27 PM

  • How to change the local decimal separator on windows xp OS ?

    Hi all,
    I would like to known how to change programmatically with LV8.5 the local decimal separator ? I want to force this parameter to the point separator, so to be sure that it's not the comma (if it's the comma when installing the executable, the ascii files are not read properly).
    Thanks.
    Wilfried.

    GerdW wrote:
    Hi Wilfried,
    you can use the format code "%.;" to get points as decimal separator in each string formatting function.
    This is the important one. Put it at the beginning of every format specifier!
    Some functions have a boolean control 'use local decimator' make sure this is 'F'
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • How do I change permisson to write on /usr/local/bin??

    Hi
    I'm installing a software by source (PKG-CONFIG) as needed by bluefish, however which I was doing " Make install" the terminal told me that it can't write on /usr/local/bin/pkg-config......so how do I change the permission so that I can start installing??
    Thanks
    Chris

    Precede the install command with "sudo" and use your password (provided you are an admin). Then the insatller will have permission to write as if you are the "root" user.
    eg:
    $ sudo install
    will run "install" as if run by root - who does have permission to write to the dir.
    MacBook (BootCamp), various Macs and servers   Mac OS X (10.4.7)  

  • How to put g95 in usr/local/bin?

    Hi all,
    I am trying to compile a program called elmerice.  When I type the "make compile" command, I get the following message:
    elmerf90-nosh -c Solvers/AIFlowSolve_nlD2.f90 -o Solvers/AIFlowSolve_nlD2.o
    /usr/local/bin/g95 -O5 -ffast-math -ftree-vectorize -march=nocona -fprefetch-loop-arrays -fomit-frame-pointer -fstrict-aliasing -momit-leaf-frame-pointer -falign-loops -I. -Ibinio -I/Applications/ElmerGUI.app/Contents//share/elmersolver/include -c Solvers/AIFlowSolve_nlD2.f90 -o Solvers/AIFlowSolve_nlD2.o
    /Applications/ElmerGUI.app/Contents/bin/elmerf90-nosh: line 18: /usr/local/bin/g95: No such file or directory
    I did install (I think successfully) g95 using macports, i.e. the command "sudo port install g95" but apparently it is not in /usr/local/bin, which seems to be where elmerice wants to find it.
    One complicating factor might be that /usr/local/bin does have gfortran it.
    It seems like elmerice will only use g95.  Can I put g95 in the /usr/local/bin directory from wherever I have it now, and if so, how?  Or can I just reinstall g95 in that directory?
    Thanks,

    Try creating a symbolic link from /usr/local/bin/g95 to wherever MacPorts put it. That is probably the easiest solution. Ideally, you would fix the makefile, but that wouldn't be easy.

  • How do I add /usr/local/bin to path

    Hi.
    I have installed arch linux on a server.
    It seems really very good - manged to install latest snort-inline easily...
    However (and this is really a completely NOOB question)
    - how do I add /usr/local/bin to the default (root) path ?
    I have tried to add
    PATH=/usr/local/bin
    to /etc/enviornment
    But it did not show up when using the - env command (after re-logging in)
    I know that I could sym link to /usr/bin but i would like to know.
    Any help would be good
    Cheers
    Last edited by yossarianuk (2008-10-02 10:31:21)

    There's a place for all three of /usr/bin, /usr/local/bin, and ~/bin --- even on Arch.
    If you download package whizbang-1.2.3 from some non-Arch site, its installer will often by default try to install its files into the /usr/local hierarchy. When making a PKGBUILD, you want to tell it instead to install into $pkgdir/usr, so that when you install the resulting pkg file with pacman, it goes into the /usr hierarchy. That's what the wiki page is saying: pacman-managed stuff goes into the /usr hierarchy.
    /usr/local/* is for files you want to install systemwide without making a PKGBUILD. Your own scripts are a great example. Also you might want to install some compiled files that way, if making a PKGBUILD isn't worth it or you don't have the time to write (*and maintain!*) one.
    ~/bin is for scripts (could be compiled files too) that you want to only be available to that specific user.

  • How do I delete Unix scripts in /usr/local/bin/

    Well, I download a program call mpgtx (mpeg editor). After install, it put all its files to /usr/local/bin/, and there are unix scripts, mpgdemux, mpgcat..etc. So I just wander how I can delete them. Can just do rm mpg* from Terminal?
    Pls, help.

    I don't even HAVE a /usr/local/bin folder on either of my Leopard installs. One install does have a /usr/local folder, but everything in it was installed by the latest version of Privoxy, the other install doesn't have a /usr/local folder at all. So you won't mess up anything from the system. Whether you'll mess up some third party something or other you have installed only you can know. I suspect they probably don't take up much room, you could check that. If the amount of space consumed is trivial, you could just leave them.
    Francine
    Francine
    Schwieder

  • Cuyo binary goes with makepkg to /usr/games instead of /usr/bin

    Hi,
    I'm trying to write PKGBUILD for the game Cuyo. In the final package, the binary goes always to /usr/games instead of /usr/bin. I'm pretty new to this and I can't figure out, how to change it Can anyone tell me, or give an advice? Thanx
    -------------------------PKGBUILD-----------------------
    pkgname=cuyo
    pkgver=2.1.0beta1
    pkgrel=1
    pkgdesc="Cuyo is a Tetris-style puzzle game for up to two players with a twist"
    arch=(i686)
    url="http://www.karimmi.de/cuyo/"
    license=('GPL')
    groups=()
    depends=('sdl_mixer' 'sdl_image')
    makedepends=()
    provides=()
    conflicts=()
    replaces=()
    backup=()
    options=()
    install=
    source=(http://download.savannah.gnu.org/releases/cuyo/$pkgname-2.~-1.0~beta1.tar.gz)
    noextract=()
    md5sums=('2c49f8b2111be4bdd86163b2be4a9485')
    build() {
      cd "$startdir/src/$pkgname-2.~-1.0~beta1"
      ./configure --prefix=/usr
      make || return 1
      make DESTDIR="$startdir/pkg" install

    That helped me Now its looks like this:
    -------------------------PKGBUILD-----------------------
    pkgname=cuyo
    pkgver=2.1.0beta1
    pkgrel=1
    pkgdesc="Cuyo is a Tetris-style puzzle game for up to two players with a twist"
    arch=(i686)
    url="http://www.karimmi.de/cuyo/"
    license=('GPL')
    groups=()
    depends=('sdl_mixer' 'sdl_image')
    makedepends=()
    provides=()
    conflicts=()
    replaces=()
    backup=()
    options=()
    install=
    source=(http://download.savannah.gnu.org/releases/cuyo/$pkgname-2.~-1.0~beta1.tar.gz)
    noextract=()
    md5sums=('2c49f8b2111be4bdd86163b2be4a9485')
    build() {
      cd "$startdir/src/$pkgname-2.~-1.0~beta1"
      ./configure --prefix=/usr
      make || return 1
      make DESTDIR="$startdir/pkg" install
      mkdir $startdir/pkg/usr/bin
      mv $startdir/pkg/usr/games/$pkgname $startdir/pkg/usr/bin
      rm -r $startdir/pkg/usr/games
    Can someone more experienced in this please tell me, if it's right and clean way or not?
    Thanx anyway )

  • Not able to see make in /usr/local/bin even after installing the package

    Hi,
    I have installed the package make-3.8 for solaris 9 on my machine with sun os 5.9. But still I can not see 'make' in /usr/local/bin .
    Does anyone have an idea why?
    I installed the same as root using the command:
    pkdadd -d <packagename>
    But it gives me quite many warnings like :
    WARNING : /usr/local/bin/make <not present on Read only file system>
    WARNING : /usr/local/bin/doc/make/ABOUT-NLS <not present on Read only file system>
    At the end it says Installation of SMCmake was successful
    Still I can't see make in /usr/local/bin.
    Regards
    Manmeet

    Seems like /usr/local is mounted read-only? Run
    mount | grep local
    or
    touch /usr/local/test
    and see if you can write files in the directory.
    /M.

  • /usr/local/bin

    Hello everyone,
    Whenever i am installing any s/w from source by compiling,its executable is getting stored in /usr/local/bin.Now im unable to use the s/w by just typing its executable name in the terminal,its giving me an error as "command not found".what i have to do is browse to the directory /usr/local/bin n then run the executable as ./xxxxx.How can i add the directory /usr/local/bin so that it too is checked for executables.
    Thanks in advance,
    Rajiv Nair.

    Anyway, /usr/local is made just for those things you do not want to be touched by your package manager. So, if for any reason you do not want to write a PKGBUILD for something (if e.g., it is just a little script you wrote and you want to install it system-wide; or you have some reasons to make the compilation routine step by step), then /usr/local is then just the right place: /usr/local/bin and /usr/local/sbin for executable with various permissions, /usr/local/lib for the libraries, may be /usr/local/src for the sources, etc. Then you should just modify your /etc/profile (or your .bashrc, .zshrc).
    This is not what is supported by arch, but it is something you can always do, if you like so, in any linux system of the world.

  • Usr/local/bin...or where?

    hey guys,
    I just made a package of sylpheed claws 2.00.  Everything went ok, but the binary was placed in /usr/local/bin.  For reasons I don't quite understand, this is not an arch-like place to be.  So where should I put it, and how should I modify my pkgbuild to put it there?
    btw, here's the fairly plain pkgbuild;
    pkgname=sylpheed-claws
    pkgver=2.0.0
    pkgrel=1
    pkgdesc="The stable extended version of sylpheed"
    url="http://claws.sylpheed.org/"
    licence=""
    depends=(pkgconfig libetpan)
    makedepends=()
    conflicts=()
    replaces=()
    backup=()
    install=
    source=(http://internap.dl.sourceforge.net/sourceforge/sylpheed-claws/$pkgname-$pkgver.tar.gz)
    md5sums=('7ddfc626484ae0954a78c5233931e21a')
    build() {
    cd $startdir/src/$pkgname-$pkgver
    ./configure --with-gtk2
    make || return 1
    make DESTDIR=$startdir/pkg install
    also, what forum should I have posted this to?
    thanks!

    Well ... it CAN be set to anywhere you like, but compliance with the Arch Packaging Standards would be preferable - or mandatory, if you want to submit your PKGBUILD to the AUR. A quick read of the AUR User Guidelines would also be useful in that case.
    General hints -
    ./configure --help
    will give you all the options for most apps. The ABS wiki pages provide the Arch-specific stuff.

  • Question about /usr/local/bin in Mavericks ...

    I just did a clean install of Mavericks on a 2010 MacPro. I understand Mavericks does not replicate this path (/usr/local/bin) when doing a clean install. Prior to this I was running 10.7.xx and I had a few compiled binaries installed in the bin folder. How do I address this? Can I simply recreate the path manually without risk?
    Thanks.
    -paul.

    etresoft The 905
    Re: Question about /usr/local/bin in Mavericks ... 
    Jan 15, 2014 9:30 AM (in response to Paul Figgiani)
    So why would you expect /usr/local/bin to be there? If you install custom, low-level software like this on one system, it will not get migrated to the new system.
    As I stated in my original post I did not expect it to be there. All I'm asking is how do I adreess the issue? Do I recreate it manually without any risk of screwing something up?

Maybe you are looking for

  • Mass Creation of Variants

    I have hundreds of products that all have the same variant configurations, and I understandably don't want to pay someone to manually go through the WebTools interface to create all the variants.  After looking through the WebTools database, I am pla

  • Upside down video correction

    Help.  accidentally shot clips using my little go-pro cam upside down.  is there a way to correct in FCPX?

  • How to dereference objects during export flow

    Hello! I would like to export information from a referenced object during export flow but the referenced object is not part of the connector space object of the affected management agent. This is my demo configuration: testEmployeeData: - employeeId

  • HTML Tile loaded dynamically based on user interaction is invisible

    When I include an HTML Tile in my application XML file, it shows up fine.  When I load it dynamically, it doesn't throw a runtime error but it's invisible. Thoughts? Thanks in advance!

  • Trouble importing LOA files

    Hello, I've got 300+ laptops that require 2 new AC profiles added and an old profile removed. I've followed the AC profile deployment guide which is relatively straight forward, but when I try to silently import the LOA file using the qctray /imports