Bash/Unix Command Errors


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Bash/Unix Command Errors
# 1  
Old 11-13-2007
Bash/Unix Command Errors

Hi all, I have major errors on entering the shell. On login I get:

-bash: dircolors: command not found
-bash: tr: command not found
-bash: fgrep: command not found
-bash: grep: command not found
-bash: grep: command not found
-bash: id: command not found
-bash: [: =: unary operator expected
-bash: whoami: command not found
-bash: grep: command not found
-bash: mesg: command not found
-bash: dircolors: command not found
-bash: who: command not found
-bash: cut: command not found
-bash: cut: command not found
-bash: hostname: command not found
-bash: mail: command not found
-bash: date: command not found
-bash: who: command not found
-bash: hostname: command not found
-bash: date: command not found
-bash: who: command not found
-bash: hostname: command not found
-bash: date: command not found
-bash: who: command not found
-bash: cut: command not found
-bash: cut: command not found
-bash: who: command not found
-bash: mail: command not found
-bash: hostname: command not found
-bash: date: command not found
-bash: who: command not found


Using Centos 4.5 on a dual Xeon server with WHM/CP and a few rpm's.

This happened after installing Flash Media Server which has been removed.

Many crucial unix commands are not functioning. Can't even use ping or mkdir, etc.

Any thoughts? Can I avoid an OS restore?

root@host [/bin]#
root@host [/bin]# pwd
/bin
root@host [/bin]# echo #path

root@host [/bin]# cd /
root@host [/]# echo /bin/*
/bin/arch /bin/ash /bin/ash.static /bin/awk /bin/basename /bin/bash /bin/bsh /bin/cat /bin/chgrp /bin/chmod /bin/chown /bin/cp /bin/cpio /bin/csh /bin/cut /bin/date /bin/dd /bin/df /bin/dmesg /bin/dnsdomainname /bin/doexec /bin/domainname /bin/dumpkeys /bin/echo /bin/ed /bin/egrep /bin/env /bin/ex /bin/false /bin/fgrep /bin/gawk /bin/gettext /bin/grep /bin/gtar /bin/gunzip /bin/gzip /bin/hostname /bin/igawk /bin/ipcalc /bin/kbd_mode /bin/kill /bin/ksh /bin/link /bin/ln /bin/loadkeys /bin/login /bin/ls /bin/mail /bin/mailx /bin/mkdir /bin/mknod /bin/mktemp /bin/more /bin/mount /bin/mt /bin/mv /bin/netstat /bin/nice /bin/nisdomainname /bin/passwd /bin/pgawk /bin/ping /bin/ping6 /bin/ps /bin/pwd /bin/red /bin/rm /bin/rmdir /bin/rpm /bin/rvi /bin/rview /bin/sed /bin/setfont /bin/setserial /bin/sh /bin/sleep /bin/sort /bin/stty /bin/su /bin/sum /bin/sync /bin/tar /bin/tcsh /bin/touch /bin/tracepath /bin/tracepath6 /bin/traceroute /bin/traceroute6 /bin/true /bin/umount /bin/uname /bin/unicode_start /bin/unicode_stop /bin/unlink /bin/usleep /bin/vi /bin/view /bin/ypdomainname /bin/zcat
root@host [/]# echo /usr/bin*
/usr/bin
root@host [/]#
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

New bash menu printing errors but closes too quickly

I am beginning to write a new version of the bash menu below. The previous version worked great and now when I start the updated bash it opens and a some lines print in the terminal and it closes quickly. I know there are errors but how can I see them or fix them, I tried set -x with the same... (12 Replies)
Discussion started by: cmccabe
12 Replies

2. Shell Programming and Scripting

sed command errors

When try to execute the sed command from shell script I'm getting the below error sed command used: sed -e 's/$//' -e 's/*|*/|/g' -e '/^$/d'` sed: -e expression #1, char 840: unknown option to `s' Kindly let me know what that error means. what are all the steps i've to take care to... (1 Reply)
Discussion started by: BrahmaNaiduA
1 Replies

3. Ubuntu

Bash to Ash, errors and adjustments

I wrote Bash script and now I want to convert it to Ash. One headache is this function: do_adduser() { setaddprompt _arr_add=("Add manually" "Add via TXT" "return to main menu" "exit program") select add_action in "${_arr_add}" do case "$REPLY" in 1)... (7 Replies)
Discussion started by: fzivkovi
7 Replies

4. Shell Programming and Scripting

Converting from Linux bash (GNU) to Solaris script syntax errors

Original script written on CentOS 6.3 with GNU bash 4.1.2 Destination system is Solaris 9 with GNU bash 2.05 (not changeable by me) I have a script written on the linux side but now we need to provide a version to another site that "doesn't like linux". I've been going through changing the ] or... (13 Replies)
Discussion started by: oly_r
13 Replies

5. Shell Programming and Scripting

Bash script errors when executing

I'm working on a script that will search through a directory for MKV files and remux them to MP4. I found a few other scripts around the net that do this, but they all have limitations that don't always get the job done. The main limitation I've found is that most scripts look for the video track... (2 Replies)
Discussion started by: rayne127
2 Replies

6. Shell Programming and Scripting

Errors in bash with if statements

Hello everyone, I got this type of error when programming in bash new.bat: 16: cannot create : Directory nonexistent $bool new.bat: 37: Syntax error: "then" unexpected (expecting "fi") Does anyone know why? Here is my code #!bin/bash #function helps(){... (4 Replies)
Discussion started by: bbbash
4 Replies

7. UNIX for Dummies Questions & Answers

unix command - bash shell

Hey all, I need to know how many lines of C code are in a source bundle. I have extracted the bundle and hence there is a big directory tree with C files everywhere. So far I have something like: find . -name "*.c" | grep \ ./*/*/*/*/*/* obviously wrong, if someone could help me out... (3 Replies)
Discussion started by: zigga15
3 Replies

8. Shell Programming and Scripting

bash variable - unix command

I want to just run this command from a bash script and put it in variable. date '+%M' gives the minutes in solaris. (2 Replies)
Discussion started by: photon
2 Replies

9. UNIX for Dummies Questions & Answers

Major OS errors/Bash errors help!!!!

Hi all, dummy here.... I have major errors on entering the shell. On login I get: -bash: dircolors: command not found -bash: tr: command not found -bash: fgrep: command not found -bash: grep: command not found -bash: grep: command not found -bash: id: command not found -bash: [: =: unary... (12 Replies)
Discussion started by: wcmmlynn
12 Replies

10. UNIX for Dummies Questions & Answers

unix script errors

#!/bin/ksh sqlplus -s user/passwd@remoteserver << EOF > errors2.log set pagesize 0 feedback off verify off heading off echo off select directory_nm || '/' || file_nm || '|' ||venue_id || '|' || time_id from file_control; EOF The output of this script is; ... (2 Replies)
Discussion started by: pavan_test
2 Replies
Login or Register to Ask a Question