LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   How could this be ?? (https://www.linuxquestions.org/questions/linux-general-1/how-could-this-be-518567/)

Linux_Kidd 01-12-2007 01:35 AM

How could this be ??
 
how could a box do this? look closely.


Code:

[root@mail2 root]# iowait 3
-bash: iowait: command not found
[root@mail2 root]# whi iowait
-bash: whi: command not found
[root@mail2 root]# which iowait
/usr/bin/which: no iowait in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin)
[root@mail2 root]# cd /root
[root@mail2 root]# ls
anaconda-ks.cfg  appfin  fin  install.log  install.log.syslog  sysstat.tar
[root@mail2 root]# tar -xvf sysstat.tar
iostat
mpstat
sar
[root@mail2 root]# ls
anaconda-ks.cfg  appfin  fin  install.log  install.log.syslog  iostat  mpstat  S10ouroborus  sar  static-routes  sysstat.tar
[root@mail2 root]# mv iostat /usr/local/sbin
mv: overwrite `/usr/local/sbin/iostat'? n
[root@mail2 root]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin
[root@mail2 root]# which iostat
/usr/local/sbin/iostat
[root@mail2 root]#


gilead 01-12-2007 03:36 AM

I could be missing something (it's Friday night and I've got a beer near), but you're looking for iowait at the start and iostat at the end. They're different - is that what you meant?

kdrlx 01-12-2007 03:37 AM

First things first ... don't login and run commands as root all the time.

Second, I did not notice a problem at all .. I mean .. first you search for ioWAIT,which it couldn't find and then you search for ioSTAT, which it found -- am I missing something ?

Linux_Kidd 01-12-2007 11:18 AM

Quote:

Originally Posted by kedar_damle
First things first ... don't login and run commands as root all the time.

Second, I did not notice a problem at all .. I mean .. first you search for ioWAIT,which it couldn't find and then you search for ioSTAT, which it found -- am I missing something ?

why not root? besides, its the only user that has a shell.

and yeah, i f'd up. it was late and i was trying to finish some tests...

there is no iowait binary.....

merchtemeagle 01-12-2007 01:18 PM

Quote:

Originally Posted by Linux_Kidd
why not root? besides, its the only user that has a shell.

and yeah, i f'd up. it was late and i was trying to finish some tests...

there is no iowait binary.....

:confused:

pixellany 01-12-2007 02:10 PM

Huh?? All users have shell access. Perhaps you mean that not everyone has PATH setup the same---thus normal users can't always run every command.

Linux_Kidd 01-12-2007 04:16 PM

Quote:

Originally Posted by pixellany
Huh?? All users have shell access. Perhaps you mean that not everyone has PATH setup the same---thus normal users can't always run every command.

root is the only user account on the box.


All times are GMT -5. The time now is 12:14 AM.