Bash: command not found after piping

Hi,
I'm trying something quite commonly found in an Unix environment, namely piping the output of one command into the input of a subsequent one, eg.
   bash$ ps ax | grep -i bash
But unfortunately I'm receiving--and now comes the most curious part--most of the times (not always!!) an error message
   bash: grep: command not found
When calling grep directly
   bash$ grep
the resulting output is
   Usage: grep [OPTION]... PATTERN [FILE]...
   Try `grep --help' for more information.
"which"-ing the commands
   bash$ which bash ps grep
results in
   /bin/bash
   /bin/ps
   /usr/bin/grep
Cheers,
MMHein

Good, you tried a different shell.  sh and bash are essentially the same executable on Mac OS X.
Did you try a new user account?  What were those results?
Have you tried installing your own bash?  Either build from sources, or use something like MacPorts.org to install one already configured for Mac OS X.
You also have ksh and zsh if they happen to rock your boat (see /etc/shells for a list of installed shells).
I think both Linc an dI agree that we have never seen this situation before either, which is why we suspect something has become corrupt.  The "Nuke and Pave" approach tends to eliminate that possibility.  But since you have lots of Unix experience (even though you missed a few Unix flavors ), and want to find the root cause, then you need to start doing tests that eliminate components.
The shells on my Mac OS X 10.7.2 Lion system have the following chksum's
cksum /bin/*sh
188949626 1371648 /bin/bash
1672788767 772992 /bin/csh
4164734636 2180736 /bin/ksh
1711289041 1371712 /bin/sh
1672788767 772992 /bin/tcsh
2366092939 1103984 /bin/zsh
I would expect yours to be identical.  But that does not take into account any libraries used.  And if you have the same values, then you need to look at something else (again, a new account can go a long way to eliminating things in your environment, or pointing to a system component).

Similar Messages

  • (OEL 4.7) -bash: sqlplus: command not found after install of 10g R2

    Hi all
    I'm new to Linux and I would like your help and directions on a few things:
    After 2 days of battle with RPM's (i386 vs x86_64) i was finally able to install 10g R2 on OEL 4.7 x86_64 system without any errors.
    please check if all these settings are correct and help me how to start sqlplus? or create a database with dbca
    I followed all the directions in Doc ID: 339510.1.
    During installation i choose this path as the ORACLE_HOME
    /u01/app/oracle/product/10.2.0/
    I did not however installed the default database.
    I then ran the two scripts at the end of the installation as root.
    Here are my settings:
    oracle bash_profile:
    # .bash_profile
    # Get the aliases and functions
    if [ -f ~/.bashrc ]; then
    . ~/.bashrc
    fi
    # User specific environment and startup programs
    PATH=$PATH:$HOME/bin
    export PATH
    unset USERNAME
    :q
    ORACLE_BASE=/u01/app/oracle
    export ORACLE_BASE
    ORACLE_HOME=/product/10.2.0/db_1;
    export ORACLE_HOME
    export PATH=$ORACLE_HOME/bin:$PATH
    here is my oracle env result
    [oracle@nycoralp01 /]$ env | grep -i ORACLE
    OLDPWD=/home/oracle/oraInventory
    USER=oracle
    ORACLE_BASE=/u01/app/oracle
    MAIL=/var/spool/mail/oracle
    PATH=/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/oracle/bin
    HOME=/home/oracle
    LOGNAME=oracle
    ORACLE_HOME=/product/10.2.0/db_1
    here is my echo $ORACLE_HOME result:
    [oracle@nycoralp01 /]$ echo $ORACLE_HOME
    /product/10.2.0/db_1
    Can someone please tell me what did i miss or did not set?
    When i try to run sqlplus i get this error
    [oracle@nycoralp01 /]$ sqlplus
    -bash: sqlplus: command not found
    Any help appreciated

    I change it in my bash_profile
    $ vi ~oracle/.bash_profile
    # .bash_profile
    # Get the aliases and functions
    if [ -f ~/.bashrc ]; then
    . ~/.bashrc
    fi
    # User specific environment and startup programs
    PATH=$PATH:$HOME/bin
    export PATH
    unset USERNAME
    :q
    ORACLE_BASE=/u01/app/oracle
    export ORACLE_BASE
    ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1;
    export ORACLE_HOME
    export PATH=$ORACLE_HOME/bin:$PATH
    and i'm still getting the same error
    -bash: sqlplus: command not found
    Is there anything else i'm missing? do i have to restart anything?

  • [SOLVED] "ip: command not found" after power failure

    Hello,
    After a power failure my Arch box has no network connection available. An 'ip addr' command showed me the outrageous error message :
    bash: ip: command not found
    How could this ever happen ? How do I recover from such an error ?
    Last edited by singleton (2014-12-19 17:34:58)

    I wasn't doing any system maintenance when the power failed, just some regular browsing.
    Here's the output of each command :
    pacman -Qk
    https://bpaste.net/show/e06fb962c42c
    echo $PATH
    /usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
    ls -l /usr/bin/ip
    ls: cannot access /usr/bin/ip: No such file or directory
    pacman -Qi iproute2
    error: package 'iproute2' was not found
    I 'm suspecting I will need to use a fresh installation CD to get over this. Any guidance will be greatly appreciated though!

  • Receiving command not found after modifying .bash_profile in OEL 5.6 64 bits

    Hi guys,
    After the installation of Oracle Database 11gR2 on OEL 5.6, I added the following entries into the .bash_profile of the oracle user:
    # Oracle Settings
    TMP=/tmp; export TMP
    TMPDIR=$TMP; export TMPDIR
    ORACLE_HOSTNAME=ol5-112.localdomain; export ORACLE_HOSTNAME
    ORACLE_UNQNAME=DB11G; export ORACLE_UNQNAME
    ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
    ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1; export ORACLE_HOME
    ORACLE_SID=DB11G; export ORACLE_SID
    PATH=/usr/sbin:$PATH; export PATH
    PATH=$ORACLE_HOME/bin:$PATH; export PATH
    LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
    CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH
    # I added my own values relative to my environment.
    But now, when I tried to login as the oracle user on my terminal, I received the following error:
    command not found
    command not found
    So I deleted all the entries I added to the .bash_profile file. But it didn't solve the problem. When I log in as oracle, I still receive the error:
    command not found
    command not found
    This is really weird. How can I do to solve this error?
    Thanks in advance
    Clamarion.

    The following command might show you where the problem is:
    bash -l -x
    See "man bash" for details.

  • Lircd: command not found after install of lirc

    Hi!
    I've had some problems with lirc and had to uninstall it from my system. I also deleted
    the files named lirc* after I uninstalled. I then cleaned the pacman cache and reinstalled
    lirc.
    I did this in a hope of getting a complete reinstall of lirc. The installation went fine, but my
    system doesn't seem to see that lirc has been reinstalled. When I do #lircd (which used to
    start lircd) I get #bash: lircd: command not found
    I've tried to reinstall several more times by #pacman -S lirc and it runs through the installation.
    I still get #bash: lircd: command not found though.
    What am I doing wrong? Why won't lirc go back to working like it should do after reinstallation??

    azleifel wrote:
    The lircd daemon expects to be run at startup and needs root permissions because it will create device nodes in /dev.  Try "man lircd" for more information.
    To run lircd at startup, add it to the DAEMONS line in /etc/rc.conf.  If needed, add any necessary kernel module to the MODULES line of /etc/rc.conf while you're there.  As an example, I have MODULES=(lirc-mceusb2) for my trusty Microsoft MCE remote control and DAEMONS=(@lircd).
    That did it!! Thanks.
    I spent hours and hours yesterday trying to figure out how to autostart lircd. Now everything works.
    When I try #irw every button I push is mapped with the right name and function. But in Freevo things are not that smooth. It seems
    freevo only understands a few of the buttons.
    I've seen that in myth there's a config file (or something) that seems to map out the remote functions in relation to myth itself. Do I
    need a similar config file for freevo?
    EDIT: nwm... I found out that yes, I do.
    Last edited by Perre (2008-04-13 10:59:09)

  • Bash commands not working after upgrade to Lion

    After upgrade, many BASH commands not working. For example, such a fundamental thing as "ls". 
    iMac20:bin a$ ls
    Launch of "ls" failed: the PowerPC architecture is no longer supported.
    What does it have to do with PowerPC? My computer is 2.66 GHz Inter Core Duo

    Linc,
    iMac20:~ a$ which ls
    /sw/bin/ls
    Also, I managed to look (using tcsh's ls-F command) into the contents of /usr/. Here's what I see there:
    [iMac20:/bin] a% ls-F
    [*          csh*        echo*       ksh*        mkdir*      rcp*        stty*       wait4path*
    bash*       date*       ed*         launchctl*  mv*         rm*         sync*       zsh*
    cat*        dd*         expr*       link*       pax*        rmdir*      tcsh*      
    chmod*      df*         hostname*   ln*         ps*         sh*         test*      
    cp*         domainname* kill*       ls*         pwd*        sleep*      unlink*    

  • Bash: command not found

    Since two days, I have a problem running some system commands, for example:
    mkinitcpio
    reboot
    lspci
    etc.
    The result being: bash: mkinitcpio: command not found
    The files are there, but work only if I give full path to them. I know it has something to do with the PATH variable not being loaded at the start of system, but I do not know how to fix it.
    Help, please.
    Last edited by Lockheed (2011-05-13 21:31:31)

    $ echo $PATH
    /usr/lib/libfm:/bin:/usr/bin:/usr/local/bin:/home/juha/bin
    $ cat /etc/profile
    # /etc/profile
    #Set our umask
    umask 022
    # Set our default path
    PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin"
    export PATH
    # Load profiles from /etc/profile.d
    if test -d /etc/profile.d/; then
    for profile in /etc/profile.d/*.sh; do
    test -r "$profile" && . "$profile"
    done
    unset profile
    fi
    # Source global bash config
    if test "$PS1" && test "$BASH" && test -r /etc/bash.bashrc; then
    . /etc/bash.bashrc
    fi
    # Termcap is outdated, old, and crusty, kill it.
    unset TERMCAP
    # Man is much better than us at figuring this out
    unset MANPATH

  • Kde4-config: command not found (after upgrade of kde4 to version 4.6)

    When I upgraded my KDE desktop to latest version, it seems that it has removed the kde4-config command.
    Unfortunately I don't know which package it belongs to?
    I get the error when I execute startkde script from ~/.xinitrc
    I have tested to re-install KDE but it doesn't resolve my problem.
    Anyone know which package it is?

    Ok, very weird, I re-installed latest version of kdelibs again and now I have the kde4-config command.
    Problem solved.
    Thanks!

  • [FIXED] bash: #: command not found

    Hi all,
    Getting this bash error every time I open a terminal. I've done a bit of reading on this error but I can't quite figure out how to fix it.
    $ echo $PATH
    /usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
    Any suggestions?
    Last edited by Gwynplaine (2014-11-13 15:03:37)

    I removed it from .bashrc and used "sudo pacman -Rns alsi" to remove it and the problem remains.
    Also, the contents of out.txt:
    1325 open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libvte.so.9", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libX11.so.6", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libxfce4ui-1.so.0", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libgtk-x11-2.0.so.0", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libgdk-x11-2.0.so.0", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libatk-1.0.so.0", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libgdk_pixbuf-2.0.so.0", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libgio-2.0.so.0", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libpango-1.0.so.0", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libgobject-2.0.so.0", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libxfce4util.so.6", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libglib-2.0.so.0", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libpangocairo-1.0.so.0", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libpangoft2-1.0.so.0", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libfontconfig.so.1", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libfreetype.so.6", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libcairo.so.2", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libXext.so.6", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libncursesw.so.5", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libm.so.6", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libxcb.so.1", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libSM.so.6", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libICE.so.6", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libstartup-notification-1.so.0", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libgmodule-2.0.so.0", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libXfixes.so.3", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libXrender.so.1", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libXinerama.so.1", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libXi.so.6", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libXrandr.so.2", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libXcursor.so.1", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libXcomposite.so.1", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libXdamage.so.1", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libpng16.so.16", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libffi.so.6", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libpcre.so.1", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libz.so.1", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libresolv.so.2", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libgthread-2.0.so.0", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libharfbuzz.so.0", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libexpat.so.1", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libbz2.so.1.0", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libpixman-1.so.0", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libEGL.so.1", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libxcb-shm.so.0", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libxcb-render.so.0", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libGL.so.1", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/librt.so.1", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libXau.so.6", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libXdmcp.so.6", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libuuid.so.1", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libxcb-util.so.1", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libX11-xcb.so.1", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libgraphite2.so.3", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libxcb-dri2.so.0", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libxcb-xfixes.so.0", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libxcb-shape.so.0", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libgbm.so.1", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libwayland-client.so.0", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libwayland-server.so.0", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libglapi.so.0", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libdrm.so.2", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libxcb-glx.so.0", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libxcb-dri3.so.0", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libxcb-present.so.0", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libxcb-randr.so.0", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libxcb-sync.so.1", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libxshmfence.so.1", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libXxf86vm.so.1", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
    1325 open("/usr/share/locale/locale.alias", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/share/locale/en_GB.UTF-8/LC_MESSAGES/xfce4-terminal.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
    1325 open("/usr/share/locale/en_GB.utf8/LC_MESSAGES/xfce4-terminal.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
    1325 open("/usr/share/locale/en_GB/LC_MESSAGES/xfce4-terminal.mo", O_RDONLY) = 3
    1325 open("/usr/lib/gconv/gconv-modules.cache", O_RDONLY) = -1 ENOENT (No such file or directory)
    1325 open("/usr/lib/gconv/gconv-modules", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/share/locale/en_GB.UTF-8/LC_MESSAGES/glib20.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
    1325 open("/usr/share/locale/en_GB.utf8/LC_MESSAGES/glib20.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
    1325 open("/usr/share/locale/en_GB/LC_MESSAGES/glib20.mo", O_RDONLY) = 3
    1325 open("/usr/share/locale/en.UTF-8/LC_MESSAGES/glib20.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
    1325 open("/usr/share/locale/en.utf8/LC_MESSAGES/glib20.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
    1325 open("/usr/share/locale/en/LC_MESSAGES/glib20.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
    1326 +++ exited with 0 +++
    1325 +++ exited with 0 +++

  • Bash command not found - ssh

    Hi there
    How to set up common PATH for both local and remote login?
    When I type # echo $PATH from a ssh , only /usr/bin is shown so I cannot use commands like shutdown or devfsadm since they are in /usr/sbin
    If I issue the same command locally the echo $PATH shows a longer path: /usr/dt/bin, /usr/openwin/bin, and so on.
    Thanks in advance
    Regards
    Vicente

    To make the variables availble for both remote and local logins, you should edit/create the following file on your home directory:
    ~/.profile
    Somewhere in the file you should have the line setting the PATH variable, such as this:
    PATH=$PATH:/usr/sbin:/usr/local/bin
    export PATH

  • -bash: then : command not found

    Hi
    Sorry i have post the same problem in Infrastruture but i am not getting a quick reply.Thats why i am posting this in the database thread.
    I have installed OEL 5.I am going to install Oracle 11g.I have configured Kernel for oracle.But now when give the command su - oracle there is an
    -bash: then : command not found
    -bash: : command not found
    When i give su - then also same these lines appear.Please send me a solution.
    Will this give nay problem in database installation
    Regards
    Bobby

    user12119634(bobs) wrote:
    Hi
    Sorry i have post the same problem in Infrastruture but i am not getting a quick reply.Thats why i am posting this in the database thread.
    I have installed OEL 5.I am going to install Oracle 11g.I have configured Kernel for oracle.But now when give the command su - oracle there is an
    -bash: then : command not found
    -bash: : command not found
    When i give su - then also same these lines appear.Please send me a solution.
    Will this give nay problem in database installation
    Regards
    BobbyTry
    export PATH=/bin:$PATHthen do again

  • I want to disable 'Spotlight' for repairing my disk "Macintosh HD" , but somehow the command 'sudo mdutil -a -i off' does not work in 'Terminal'. I get result as ' bash: sudo: command not found' .I am using OS 10.10.  Please help.

    I want to disable 'Spotlight' for repairing my disk "Macintosh HD" , but somehow the command 'sudo mdutil -a -i off' does not work in 'Terminal'. I get result as ' bash: sudo: command not found' .I am using OS 10.10.  Please help.

    It appears that you may not have a properly installed OS X system.
    You must be connected to the Internet to reinstall OS X.
    In the menu bar, choose Apple menu > Restart. Once your Mac restarts (and the gray screen appears), hold down the Command (⌘) and R keys.
    Select “Disk Utility,” and then click Continue.
    Select your startup disk from the list on the left, and then Repair Disk.
    After disk is repaired, select Reinstall OS X, then click Continue.
    Follow the onscreen instructions. In the pane where you select a disk, select your current OS X disk

  • How start KDE, then - bash: startx: command not found?

    I install new copy of Arch Linux, and download KDE, then as user or root werite:
    startx
    computer write:
    - bash: startx: command not found
    That, me need do, that KDE run every time automaticly or other Deskop Environment after I login as user or how resolve problem with startx?

    alikas wrote:I install new copy of Arch Linux, and download KDE, then as user or root werite:
    startx
    computer write:
    - bash: startx: command not found
    That, me need do, that KDE run every time automaticly or other Deskop Environment after I login as user or how resolve problem with startx?
    did you install Xorg?
    pacman -S xorg
    Xorg is required to use the startx command... and even to view a Desktop Enviroment. Just installind KDE won't do it

  • -bash: sudo: command not found

         Hello all,
    I have had WAY too many problems with this laptop, and at this point in its miserable little life, I've decided to just wipe the hard drive and start fresh, not caring at all what happens to the files left on there. As previously stated in one of my earlier questions (That was, might I add, never fully answered.), this late 2008 MacBook (aluminum) has a problem where it does not boot up, and just endlessly shows the gray spinning pinwheel. Four months later, that just stops, and now when trying to boot up with my normal startup disk, it brings me right to the Recovery disk and tries to reinstall OS X. I tried, it failed 5 minutes in. So I tried to wipe the hard drive, and it says:  Disk Erase failed with the error: Couldn't unmount disk.   I looked it up and I saw that if I went into the Terminal and typed: sudo diskutil unmountDisk /dev/disk0 , it would unmount the disk. But whenever I type that, it says: -bash: sudo: command not found. I have no idea how to fix this, and I would really like to be able to use my laptop again without giving somebody my money to do it for me.
                                                 Thanks,
                                                      Luke

    Clean Install of Snow Leopard
    Be sure to make a backup first because the following procedure will erase
    the drive and everything on it.
         1. Boot the computer using the Snow Leopard Installer Disc or the Disc 1 that came
             with your computer.  Insert the disc into the optical drive and restart the computer.
             After the chime press and hold down the  "C" key.  Release the key when you see
             a small spinning gear appear below the dark gray Apple logo.
         2. After the installer loads select your language and click on the Continue
             button. When the menu bar appears select Disk Utility from the Utilities menu.
             After DU loads select the hard drive entry from the left side list (mfgr.'s ID and drive
             size.)  Click on the Partition tab in the DU main window.  Set the number of
             partitions to one (1) from the Partitions drop down menu, click on Options button
             and select GUID, click on OK, then set the format type to MacOS Extended
             (Journaled, if supported), then click on the Apply button.
         3. When the formatting has completed quit DU and return to the installer.  Proceed
             with the OS X installation and follow the directions included with the installer.
         4. When the installation has completed your computer will Restart into the Setup
             Assistant. After you finish Setup Assistant will complete the installation after which
             you will be running a fresh install of OS X.  You can now begin the update process
             by opening Software Update and installing all recommended updates to bring your
             installation current.
    Download and install Mac OS X 10.6.8 Update Combo v1.1. You may then open App Store, click on the Purchases icon in the toolbar, and re-download any OS X upgrade you purchased except Mavericks. Since Yosemite has been released the App Store may not let you re-download Mavericks, but it will let you download Yosemite.

  • [SOLVED] bash: $'\302\240grep': command not found [frequent CLI error]

    For the past several days I've been getting the following error frequently on the command line:
    bash: $'\302\240grep': command not found
    I think I'm only getting this error in response to commands that are piped to grep, such as the following:
    $ ps -ef | grep xyz
    or
    $ locate | grep abc
    However, I don't think I've gotten the error if I type the same commands as above, but without the space between '|' and 'grep'.  And, although the error is frequent, it doesn't happen every time; it is seemingly random.
    Anybody else experiencing this?  Any idea what might be causing it? 
    I'm using rxvt-unicode as my terminal.
    Jay
    Last edited by jt512 (2011-04-06 04:38:56)

    anonymous_user wrote:Post your ~/.bashrc
    # Check for an interactive session
    [ -z "$PS1" ] && return
    function timer () {
    at -f /home/jay/.timercmd now + $1 min
    function cpufs () {
    sudo cpufreq-set -c 0 $1 $2
    sudo cpufreq-set -c 1 $1 $2
    alias ls='ls --color'
    alias kc='~/scripts/kc.py'
    alias diff='colordiff'
    alias s2ram='sudo s2ram -f'
    alias grep='grep --color=always'
    alias Terminal='Terminal -T Terminal'
    alias emacsnw='emacs -nw -f menu-bar-mode'
    alias rm='rm -I'
    alias lpstd='lp -o "StpQuality=Standard"'
    alias paps='paps --paper letter --font="Courier 10"'
    alias mp='mplayer'
    alias mps='mplayer -softvol-max 600'
    alias mysql='$HOME/scripts/mysql'
    if [ $TERM = 'linux' -a $SHELL = '/bin/bash' ] ; then
    PS1='\033[?17;0;40c[\u@\h \W]\$ '
    else PS1='[ \[\e[0;32m\]\u@\h\[\e[m\] \[\e[0;31m\]\W\[\e[m\] \[\e[m\]]\[\e[0;32m\] \$ \[\e[m\]'
    fi
    eval `dircolors -b`
    # Allow tab completion for sudo'ed commands
    complete -cf sudo
    export PATH=$PATH:~/.local/usr/bin
    export EDITOR="vim"
    export BROWSER='conkeror:uzbl-browser:firefox'
    export GREP_COLOR="1;33"
    export LESS_TERMCAP_mb=$'\E[01;31m'
    export LESS_TERMCAP_md=$'\E[01;31m'
    export LESS_TERMCAP_me=$'\E[0m'
    export LESS_TERMCAP_se=$'\E[0m'
    export LESS_TERMCAP_so=$'\E[01;44;33m'
    export LESS_TERMCAP_ue=$'\E[0m'
    export LESS_TERMCAP_us=$'\E[01;32m'
    export SWEAVE_STYLEPATH_DEFAULT="TRUE"

Maybe you are looking for

  • OneDrive for Business - where do I find a log file?

    I'm having problems with MS OneDrive for Business and SharePoint 2013: I tried to copy a lot of documents at once into my local SharePoint directory, synced with a SharePoint library. Now, there is a problem with the syncing process and some (most) o

  • Links open in browser window

    I inherited a Help project in RoboHelp 6. I have both context-sensitive topics and am developing a total Help system. I am frustrated with several "features" of RoboHelp. 1) I can't figure out how to control how links open. I want them all to open in

  • Database movement from Hp 11.00 to AIX 5.3 (db version : 8.1.7.3 )

    Hi. I need to move a database from HP 11.00 machine to IBM AIX 5.3 machine. the database version is 8.1.7.3. and is around 400gb. Will the normal database cloning work? or what the best method to do it. pls help me in doing this activity. Thanks in a

  • T42 resolution - set to 1400x1050 without panning.

    I have a need to set my resolution to 1400x1050, so i installed the driver updates http://www-307.ibm.com/pc/support/site.wss/MIGR-41918.html which talks about the feature given below: (New) The external monitor resolution can be set to 1400x1050 wit

  • Setting for MobileONE (M1) MMS

    Just to share this information to any M1 user on the iPhone3G Setting->General->Network->Cellular Data Setting APN: miworld Username: 65 Password: user123 MMSC: http://mmsgw:8002/ MMS Proxy: 172.16.14.10:8080 MMS Max Message Size: Once you input the