What could be the problem when a command that was issued gave a different result from the last time it was used?

DWQA QuestionsCategory: LinuxWhat could be the problem when a command that was issued gave a different result from the last time it was used?
Editor Staff asked 10 months ago

What could be the problem when a command that was issued gave a different result from the last time it was used?

2 Answers
Editor Staff answered 10 months ago

One highly possible reason for getting different results from what seems to be the same command has something to do with case sensitivity issues. Since Linux is case sensitive, a command that was previously used might have been entered in a different format from the present one. For example, to lists all files in the directory, you should type the command ls, and not LS. Typing LS will either result in an error message if there is no program by that exact name exist or may produce a different output if there is a program named LS that performs another function.

Editor Staff answered 10 months ago

One highly possible reason for getting different results from what seems to be the same command has something to do with case sensitivity issues. Since Linux is case sensitive, a command that was previously used might have been entered in a different format from the present one. For example, to lists all files in the directory, you should type the command ls, and not LS. Typing LS will either result in an error message if there is no program by that exact name exist or may produce a different output if there is a program named LS that performs another function.