The executable file in linux-general Linux technology-Linux technology and application information. The following is a detailed description. In linux, if the executable file is in/bin or/usr/bin, you can directly press the file name to run it. If it is in another folder, for example, run the time file in/root.
Advanced root folder cd/root
Run again./time
Linux File color meaning
Blue represents the Directory
Green indicates executable files
Red indicates the compressed file
Light blue indicates a linked file
Gray indicates other files
Red flashes indicate that the link file is faulty.
Yellow indicates the Device File
In linux. /xxx When running a program, first SHELL takes over your input, then use fork to dispatch the child process, and finally use the execv series to hand over the code of your program to the kernel
1. check the attributes of the file you run. The attributes are described in its I node. If your file is not an executable attribute, the execution is denied, if an executable attribute exists, but the executable permission is higher than the permission of the user you are currently using, the execution is denied.
2. Check whether the file is a SHELL file? If yes, call the corresponding SHELL to parse your script file.
3. Is it the ELF file format ?? Is it coff file format? Is it a. out file format? If either of them and the current Linux kernel supports these three file formats, the operating system kernel will analyze your file format, remove the file header information, and extract the real code, data is loaded into the memory (this is not the case in the actual process, but many details are omitted for the sake of simple description. For more details, see execv system calls in the kernel ).
4. the end of the promise (mainly to be close to the WINDOWS user's habits). ELF files do not require extensions. Therefore, when you say executable files, never say they are exe files. That is not a strict statement, it only means that you are a WINDOWS programmer.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.