Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using Interpid (I know I need to upgrade). When I try and use the -h option with ls I get an error. I swear this used to work, and the man page says it should. Any ideas?

$ sudo ls -lh
ls: invalid option -- 'h'
Try `ls --help' for more information.
share|improve this question
indeed it should work - does it work without sudo, in a directory readable by your user account? also, can you verify where the system is getting ls from by typing which ls and also ls -l `which ls` , also perhaps there is a strangely named file in that directory, does it affect all directories you try to run ls in? – Simon B Feb 7 '11 at 15:36
If you want to find out if your ls is compromised or corrupted, you could get a hash of the ls binary with shasum /bin/ls (check that whereis ls outputs /bin/ls), but I don't have Intrepid installed to give you the correct one to compare it to. – Stefano Palazzo Feb 7 '11 at 16:02
also check if ls is aliased to another command: type alias command to see which commands are aliased. – Simon B Feb 7 '11 at 16:06
up vote 6 down vote accepted

I expect you're dealing with the SHV5 rootkit.

Please run RootKit Hunter to check for rootkits.

Keep me informed.

share|improve this answer
Why '-1'? .. .. – Ilias Feb 7 '11 at 17:04
I get the following warnings: cbRootKit, SHV4 RootKit ,SHV5 RootKit – FigBug Feb 7 '11 at 17:09
@figbug - it's worth running rkhunter and chkrootkit and paste the full outputs onto pastebin and provide links to the pastebin files. if you suspect somebody has compromised your machine then the best action is to unplug it from the network to avoid data loss and further infection – Simon B Feb 8 '11 at 12:51 I am currently backing up and planning for format / reinstall – FigBug Feb 8 '11 at 15:11

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.