Working in Linux/Unix platform, if any command dose not
work, say # ls reports as command not found.
what to do?

Answers were Sorted based on User's Feedback



Working in Linux/Unix platform, if any command dose not work, say # ls reports as command not foun..

Answer / bc

Check whether PATH variable as got the entry /bin

It should be something like this
=========================
[root@bc ~]# echo $PATH
/usr/kerberos/sbin:/usr/kerberos/bin:/bin:/sbin:/usr/bin
=========================

Is This Answer Correct ?    9 Yes 0 No

Working in Linux/Unix platform, if any command dose not work, say # ls reports as command not foun..

Answer / senthil

Check the PATH first

By echo $PATH

2.See the binary is there in that PATH

if not there please install binary

Is This Answer Correct ?    4 Yes 1 No

Working in Linux/Unix platform, if any command dose not work, say # ls reports as command not foun..

Answer / cp

Need to check the path first body ....

Is This Answer Correct ?    5 Yes 3 No

Working in Linux/Unix platform, if any command dose not work, say # ls reports as command not foun..

Answer / vinod thakur

all right as discussed above.but if PATH varible is set
properly and then we facing same problem then we hav to
check whether we hav losted sbin or bin if we have losted
bin we can recover it as whole but if sbin then up to
limited level we can recover it ..

VINOD THAKUR

Is This Answer Correct ?    0 Yes 0 No

Working in Linux/Unix platform, if any command dose not work, say # ls reports as command not foun..

Answer / naresh

reinstall that shell

Is This Answer Correct ?    1 Yes 5 No

Post New Answer

More Linux Commands Interview Questions

How to FTP user access other directory except his own home directory ?

2 Answers   IBM,


How do I find the umask value in linux?

0 Answers  


What is FC command?

0 Answers  


Display the Disk Usage of file sizes under each directory in currentDirectory ?

8 Answers  


How do I find the linux version?

0 Answers  


How would you check the available disk space on a Linux system?

1 Answers  


i am working in one company and i attend intervew they asked why do u want to chage company pls give me inteligent answar

3 Answers  


How do I find my hostname in linux?

1 Answers  


What is the example of command sentence?

0 Answers  


State and explain about features of UNIX?

0 Answers  


How do you kill a process in linux?

0 Answers  


in unix how to change old name to new name

7 Answers   Google,


Categories