LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-12-2007, 01:35 AM   #1
Linux_Kidd
Member
 
Registered: Jan 2006
Location: USA
Posts: 737

Rep: Reputation: 78
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]#
 
Old 01-12-2007, 03:36 AM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
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?
 
Old 01-12-2007, 03:37 AM   #3
kdrlx
Member
 
Registered: Feb 2006
Distribution: Ubuntu Hardy Heron
Posts: 130

Rep: Reputation: 17
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 ?
 
Old 01-12-2007, 11:18 AM   #4
Linux_Kidd
Member
 
Registered: Jan 2006
Location: USA
Posts: 737

Original Poster
Rep: Reputation: 78
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.....
 
Old 01-12-2007, 01:18 PM   #5
merchtemeagle
Member
 
Registered: Oct 2004
Location: Belgium
Distribution: Slackware 13.37
Posts: 512

Rep: Reputation: 31
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.....
 
Old 01-12-2007, 02:10 PM   #6
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
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.
 
Old 01-12-2007, 04:16 PM   #7
Linux_Kidd
Member
 
Registered: Jan 2006
Location: USA
Posts: 737

Original Poster
Rep: Reputation: 78
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration