Test command
Command function
The test command is a utility for testing conditional expressions in a shell environment.
Command syntax
Test (options)
Option description
-b〈 file If the file is a block special file, it is true;
-C "File", if the file is a character special file, then true;
-d〈 file: True if the file is a directory;
-e〈 file: True if the file exists;
-f〈 file: True if the file is a normal file;
-g〈 file: True if the SG old bit of the file is set;
-g〈 file: True if the file exists and is owned by the group;
-k〈 file: True if the file's sticky bit is set;
-o〈 file: True if the file exists and is owned by the user;
-p〈 file: True if the file is a named pipe;
-R File: True if the file is readable;
-s〈 file: True if the length of the file is not zero;
-S file: True if the file is a special file for a socket;
-u〈 file: True if the su old bit of the file is set;
-w〈 file: True if the file is writable;
-X File: True if the file is executable.
Expr command
Command function
The expr command is an expression evaluation tool that uses it to perform the evaluation of an expression.
Command syntax
Expr (options) (parameters)
Option description
--help: Display the help information of the instruction;
--version: Displays instruction version information.
Parameter description
Expression: An expression that requires a value.
GCC command
Command function
The GCC command uses the GNU-launched table-based 1119.www.qixoo.qixoo.com/c/c++ compiler, the burst open source field application
The most extensive compiler, with powerful, compiled code to support performance optimization features.
Command syntax
GCC (options) (parameters)
Option description
-O: Specifies the generated output file;
-e: Only compile preprocessing is performed;
-S: Converts C code to assembly code;
-wall: Display warning message;
-C: Only the compilation operation is performed and no connection operation is made.
Parameter description
C Source file: Specifies the C language source code file.
GDB command
Command function
The GDB command is included in the GNU GCC Development Kit and is a powerful program debugger.
Command syntax
GDB (options) (parameters)
Option description
-CD: set working directory;
-Q: Quiet mode, do not print the introduction of information and version information;
-D: Add file apricot find path;
-X: Executes the GDB command from the specified file;
-S: Sets the read symbol table file.
Parameter description
File: Binary executable program.
L d Command
Command function
The LD command is a GNU connector that connects the target file to an executable program.
Command syntax
LD (option) (parameter)
Option description
-O: Specifies the output file name;
-E: Specifies the entry symbol for the program.
Parameter description
Destination file: Specifies the destination file to which you want to connect.
LDD command
Command function
The LDD command is used to print a list of shared libraries on which a program or library file depends.
Command syntax
LDD (option) (parameter)
Option description
--version: Print instruction version number;
-V: Detailed information mode, print all relevant information;
-U: Print unused direct dependencies;
-D: Perform relocation and report any missing objects;
-R: Performs relocation of data objects and functions, and reports any missing objects and functions;
--help: Displays help information.
Parameter description
File: Specifies an executable program or library.
Make command
Command function
The Make command is a GNU Engineering compilation tool for compiling numerous interconnected source code text
To achieve engineering management and improve development efficiency.
Command syntax
Make (options) (parameters)
Option description
-F: Specifies the makefile file.
Parameter description
Goal: Specify the compilation target.
As command
Command function
As command is an assembly language compiler launched by the GNU organization that supports many different types of places
Manager.
Command syntax
As (option) (parameter)
Option description
-AC: ignoring failure conditions;
-ad: ignoring debug commands;
-ah: Including high-level sources;
-ai: Including assembly;
-am: including macro expansion;
-an: ignoring form processing;
-as: including symbols;
-file: Sets the name of the listed file;
--alternate: Start with interactive macro mode;
-F: Skip whitespace and comment preprocessing;
-G: Generate debug information;
-J: No warning message for signed overflow;
-L: Preserves local symbols in the symbol table;
-O: Specifies the target file to be generated;
--statistics: The maximum amount of space and total time that is used to print the assembly.
Parameter description
Assembly file: Specifies the source file to assemble.
Gcov command
Command function
The Gcov command is a tool for code coverage of a test program.
Command syntax
Gcov (option) (parameter)
Option description
-H: Displays help information;
-V: Displays version information;
-A: Outputs the execution count of all the basic blocks;
-N: and create the output file.
Parameter description
V language file: C language source code file.
NM command
Command function
The NM command is used to display the symbol table of the binary target file.
Command syntax
NM (option) (parameter)
Option description
-A: Displays the file name before each symbol;
-D: Show dynamic symbols;
-G: Show only external symbols;
-R: Reverse-sequence explicit non-symbol table.
Parameter description
Target file: A binary destination file, typically a library file and an executable file.
Perl command
Command function
The Perl command is the Perl language interpreter, which interprets the execution of the Perl language program.
Command syntax
Perl (options) (parameters)
Option description
-W: outputs useful warning messages;
-u: Allow unsafe operation;
-C: Check only the syntax of the file;
-D: Run the script under debugging.
Parameter description
File: The Perl script to run.
PHP command
Command function
PHP command is a popular web development language command-line interface for PHP, which can be developed using the PHP language
A command-line-based System administration script program.
Command syntax
PHP (options) (parameters)
Option description
-A: Enter interactive mode;
-C: Specifies the search path for php.ini.
Parameter description
File: The php script to execute.
Protoize command
Command function
The Protoize command belongs to the GCC suite, which adds a function prototype to the C language source code file and converts the GNU-C code to ansi-c code.
Command syntax
Protoize (option) (parameter)
Option description
-D: Set the directory where the code needs to be converted;
-X: Files that are excluded when converting code.
Parameter description
File: The C language source file that needs to convert the code.
Unprotoize command
Command function
The Unprotoize command belongs to the GCC suite, which removes the function prototypes from the C language code file.
Command syntax
Unprotoize (option) (parameter)
Option description
-D: Set the directory where the code needs to be converted;
-X: Files that are excluded when converting code.
Parameter description
File: The C language source file that needs to convert the code.
Mktemp command
Command function
The Mktemp command is used to create temporary files for use by shell scripts.
Command syntax
Mktemp (option) (parameter)
Option description
-Q: If an error occurs during execution, no information will be displayed;
-U: The staging file will be deleted before the end of Mktemp;
-D: Create a directory instead of a file.
Parameter description
File: Specifies the temporary file created.
Linux Programming Development Commands