Đặng Thị Mỹ Linh
New member
How do I view an executable file in Linux?
Answer
If you don’t known a path to the command you can use which to check where it is (of course, if you have it in $PATH). If you know a path to command file use
if -x /path/to/command statement. If the command has execute permission ( x ) set, then it is executable.
Answer
If you don’t known a path to the command you can use which to check where it is (of course, if you have it in $PATH). If you know a path to command file use
if -x /path/to/command statement. If the command has execute permission ( x ) set, then it is executable.