Sponsored Content
Full Discussion: OS errors/missing commands
Operating Systems Linux OS errors/missing commands Post 302145154 by wcmmlynn on Tuesday 13th of November 2007 02:49:06 AM
Old 11-13-2007
OS errors/missing commands

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 [/]#
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Adapter Errors and Link Errors

$ errpt | more IDENTIFIER TIMESTAMP T C RESOURCE_NAME DESCRIPTION 3074FEB7 0802050205 T H fscsi1 ADAPTER ERROR B8113DD1 0802050205 T H fcs1 LINK ERROR B8113DD1 0802050205 T H fcs1 LINK ERROR 3074FEB7 0802050205 T H fscsi0 ADAPTER ERROR B8113DD1 ... (0 Replies)
Discussion started by: mcastill66
0 Replies

2. AIX

Adapter Errors and Link Errors

$ errpt | more IDENTIFIER TIMESTAMP T C RESOURCE_NAME DESCRIPTION 3074FEB7 0802050205 T H fscsi1 ADAPTER ERROR B8113DD1 0802050205 T H fcs1 LINK ERROR B8113DD1 0802050205 T H fcs1 LINK ERROR 3074FEB7 0802050205 T H fscsi0 ADAPTER ERROR B8113DD1 ... (2 Replies)
Discussion started by: mcastill66
2 Replies

3. 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

4. Shell Programming and Scripting

Can BASH execute commands on a remote server when the commands are embedded in shell

I want to log into a remote server transfer over a new config and then backup the existing config, replace with the new config. I am not sure if I can do this with BASH scripting. I have set up password less login by adding my public key to authorized_keys file, it works. I am a little... (1 Reply)
Discussion started by: bash_in_my_head
1 Replies

5. Solaris

Compile errors on Solaris 10 (missing libwrap)

I'm trying to compile tacacs+-F4.0.4.18 on Solaris 10 (sparc based server). It fails during the "./configure" phase with the following error: checking whether to use libwrap... yes configure: error: Could not find libwrap. You must first install tcp_wrappers. I do a have tcpwrappers... (4 Replies)
Discussion started by: pingmeback
4 Replies

6. SuSE

How to resolve missing missing dependencies with opensuse 11.3 and 12.3?

Hello, This is a programming question as well as a suse question, so let me know if you think I should post this in programming. I have an application that I compiled under opensuse 12.2 using g77-3.3/g++3.3. The program compiles and runs just fine. I gave the application to a colleague who... (2 Replies)
Discussion started by: LMHmedchem
2 Replies

7. Red Hat

Yum - resolving missing dependencies that are not missing

I am trying to install VirtualBox on RHEL 5 but I need the 32 bit version for 32 bit Windows. When I run yum I get the following: sudo yum localinstall /auto/spvtg-it/spvss-migration/Software/VirtualBox-4.3-4.3.2_90405_el6-1.i686.rpm Loaded plugins: fastestmirror Setting up Local Package... (13 Replies)
Discussion started by: gw1500se
13 Replies

8. Shell Programming and Scripting

How to catch errors in a shell script ( multiple commands )?

Hi I have a shell script like that Main() { DAY=$(date +"%d-%m-%Y") TIME=$(date +"%T") Command 1 Command 2 ... Command n } I would like to catch errors from all commands in Main() and write these errors into a file , something likes this: Main if < error > then echo... (3 Replies)
Discussion started by: bobochacha29
3 Replies

9. UNIX for Dummies Questions & Answers

Missing FTP configuration files/commands

I was asked if I can create an FTP only user on a UNIX system I've inherited at work. (Solaris). I've worked on UNIX systems for a long time, but never really as an admin. I searched the web, and on this forum, for information on exactly how to do this. (The new user will also need to be... (4 Replies)
Discussion started by: HeyMoe
4 Replies

10. Shell Programming and Scripting

Systemd errors of missing file “No such file or directory” inspite of file being present

The contents of my service file srvtemplate-data-i4-s1.conf is Description=test service for users After=network.target local-fs.target Type=forking RemainAfterExit=no PIDFile=/data/i4/srvt.pid LimitCORE=infinity EnvironmentFile=%I . . . WantedBy=multi-user.target (0 Replies)
Discussion started by: rupeshkp728
0 Replies
BZEXE(1)						      General Commands Manual							  BZEXE(1)

NAME
bzexe - compress executable files in place SYNOPSIS
bzexe [ name ... ] DESCRIPTION
The bzexe utility allows you to compress executables in place and have them automatically uncompress and execute when you run them (at a penalty in performance). For example if you execute ``bzexe /bin/cat'' it will create the following two files: -r-xr-xr-x 1 root bin 9644 Feb 11 11:16 /bin/cat -r-xr-xr-x 1 bin bin 24576 Nov 23 13:21 /bin/cat~ /bin/cat~ is the original file and /bin/cat is the self-uncompressing executable file. You can remove /bin/cat~ once you are sure that /bin/cat works properly. This utility is most useful on systems with very small disks. OPTIONS
-d Decompress the given executables instead of compressing them. SEE ALSO
bzip2(1), znew(1), zmore(1), zcmp(1), zforce(1) CAVEATS
The compressed executable is a shell script. This may create some security holes. In particular, the compressed executable relies on the PATH environment variable to find gzip and some other utilities (tail, chmod, ln, sleep). BUGS
bzexe attempts to retain the original file attributes on the compressed executable, but you may have to fix them manually in some cases, using chmod or chown. BZEXE(1)
All times are GMT -4. The time now is 08:49 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy