I always wanted to ask: Why some commands I must start as ./command and some just command?
I think that if I type just command it should be in my path when I type ./command not in my path. Correct?
Example:
[root@localhost sbin]# ./iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
RH-Lokkit-0-50-INPUT all -- anywhere anywhere
[root@localhost sbin]# iptables -L
bash: iptables: command not found
[root@localhost sbin]#
./iptables -> works
iptables -> error
Thanks
M.S.
I think that if I type just command it should be in my path when I type ./command not in my path. Correct?
Example:
[root@localhost sbin]# ./iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
RH-Lokkit-0-50-INPUT all -- anywhere anywhere
[root@localhost sbin]# iptables -L
bash: iptables: command not found
[root@localhost sbin]#
./iptables -> works
iptables -> error
Thanks
M.S.