help with setting up path in linux

Discussion in 'OT Technology' started by D1G1T4L, Aug 13, 2004.

  1. D1G1T4L

    D1G1T4L Active Member

    Joined:
    May 4, 2001
    Messages:
    16,489
    Likes Received:
    0
    Location:
    Bay Area
    Code:
    [[email protected] sbin]# pwd
    /usr/local/sbin
    [[email protected] sbin]# ls
    comp_err           mysqlbug                    mysql_setpermission
    isamchk            mysqlcheck                  mysqlshow
    isamlog            mysql_config                mysqltest
    msql2mysql         mysql_convert_table_format  mysql_zap
    myisamchk          mysqld_multi                pack_isam
    myisamlog          mysqldump                   perror
    myisampack         mysqldumpslow               replace
    my_print_defaults  mysql_find_rows             resolveip
    mysql              mysql_fix_privilege_tables  resolve_stack_dump
    mysqlaccess        mysqlhotcopy                safe_mysqld
    mysqladmin         mysqlimport
    mysqlbinlog        mysql_install_db
    [[email protected] sbin]# mysqladmin
    -bash: /usr/bin/mysqladmin: No such file or directory
    [[email protected] sbin]# set PATH=$PATH:/usr/local/sbin
    [[email protected] sbin]# mysqladmin
    -bash: /usr/bin/mysqladmin: No such file or directory
    [[email protected] sbin]#
    
    why is it looking for /usr/bin/mysqladmin and how do i change it so it looks in /usr/local/sbin
     
  2. crontab

    crontab (uid = 0)

    Joined:
    Nov 14, 2000
    Messages:
    23,458
    Likes Received:
    12
    Use

    export PATH=$PATH:/usr/local/sbin

    instead.

    Stick this in your .profile too.

    Whenever you set variables, echo $VARIABLE to see if you actually set it. `set` in bash doesn't set any variables like in bourne.
     

Share This Page