Gcovr tool that shows C code coverage and related command examples
Recently, I accidentally found the gcovr tool online to show the code coverage rate of a unit test for a project. After using the tool, I thought it was quite good, so I wrote this article for reference by related developers.
In short, gcovr is a tool that shows code coverage in unit tests in a variety of ways (including list, XML, and HTML
Find is a commonly used Linux Command, but we generally look for it not only, but also further operations. At this time, the role of exec becomes apparent.
Example:
find./-name"*.txt"-execls-l"{}"\;
Find the TXT file of the current directory and list it in the form of a list
find./-name"*.txt"-execmv"{}""{}d"\;
Modify the batch quantity to the suffix of the. txt file under the current directory and change i
Linux Command: scp command, linux Command scp
Scp is short for secure copy. It is used to remotely copy files in Linux. Similar Commands include cp, but cp only Copies files on the local machine and cannot be copied across servers
Note: The red is for my personal opinion compared to the usual amount of parameters.
Introduced
Linux wget is a tool for downloading files, which is used at the command line. This is an essential tool for Linux users, especially for network administrators, who often download software or restore backups from remote servers to a local server. If we us
Linux Command sharing: lsof command, linux Command sharing lsof
Lsof (listopenfiles) is a tool used to list open files in the current system. In linux, everything exists in the form of a file. Through a file, you can not only acc
an already established connection.>invalid: The package does not match any connections, usually these packets are drop.For example:(1) Add a rule to the input chain to match the established connection or the new connection established by the established connection. That is, all TCP response packets are matched.#iptables-A input-m state–state related,established(2) Add a rule to the input chain to match all connection request packets from the non-eth0 interface.#iptables-A input-m State-–state n
Lsof (listopenfiles) is a tool used to list open files in the current system. In linux, everything exists in the form of a file. through a file, you can not only access common data, but also access network connections and hardware.
Therefore, for example, the Transmission Control Protocol (TCP) and User Datagram Protocol (UDP) sockets, the system assigns a file descriptor to the application at the backend, regardless of the nature of the file, this fi
If you often use Linux Command lines, using the history (History) command can effectively improve your efficiency. This article describes the 15 Use Cases of the History command.
Display timestamp with histtimeformatAfter you execute the history command from the
Linux Command: rcp command, linux Command rcp
Rcp stands for "remote file copy" (remote file copy ). This command is used to copy files between computers. The rcp command has two format
Linux Command curl command details, linux Command curl detailsCommand: curlIn linux, curl is a File Transfer tool that uses URL rules to work under the command line. It can be said that
The route command in Linux is used to display and operate the IP route table (show/manipulatetheIProutingtable ). To achieve communication between two different subnets, you need a router that connects two networks or a gateway that is located in both networks.
In Linux, routing is usually set to solve the following problems: the
Linux Command (2): ls command, linux Command ls
1. Role: List the contents of a directory;
2. Format: Ls [Option] [file]
[Option] specifies the file-related content to be viewed. If no file is specified, all files in the current directory are viewed by default;
3. Common Par
Linux command rpm installation command, linux command rpm
In Linux, almost all software is installed, uninstalled, and managed through RPM. RPM is called Redhat Package Manager. It is a software developed by Redhat to manage softw
://in.archive.ubuntu.com/ubuntu/utopic/universe icinga amd64 1.11.6-1build1 [1,474 B]fetched1,474 In1s (1,363 b/s)The above directory will download the Icinga package to your current working directory.Example: 12 cleanup of disk space consumed by a local package[Email protected]:~$ sudo apt-get cleanThe above command empties the disk space consumed by the Apt-get downloaded package.We can also use the "autoclean" option instead of "clean", the main di
Rmdir command usage introduction for one linux Command every day, And rmdir command sharing for linux commands
Rmdir command. Rmdir is a common command used to delete an empty director
MySQL database source command details and examples, mysqlsource
MySQL database source command details and examples
MySQL database source command, which is a Database Import command. The usage of the source
Tags: Linux daily operation and maintenance management skillsw command: View system loadWLoad average the number of active processes that use CPU activity during the unit timeTo view the number of system CPUs (logical CPUs)Cat/proc/cpuinfo(When our process does not exceed the number of logical CPUs in our system per unit of time, it is the optimal state,When our process is larger than the CPU, be aware of w
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.