One of the most troubling problems with C + + is memory management, and sometimes it takes days to find a memory leak or a memory access crossing, and if there is a tool that can help us do this, Valgrind is just one of those tools.
Valgrind is a software suite that runs on the x86, AMD64, and PPC32 architectures based on a simulation Linux program debugger and profiler. Valgrind contains a core that provides a virtual CPU run program and a series of
*linux Driver vermagic* Check
In the development of kernel driver, there will always be annoying vermagic checks, so long as the kernel version of Run is inconsistent with the driver version used in kernel, there is no way to insmod.
bash-3.2# Insmod Sdio.ko
Sdio:version Magic ' 2.6.28-271-gec75a15 preempt mod_unload modversionsARMv7 'Should be ' 2.6.28 preempt mod_unload ARMv7 'Insmod:init_module ' Sdio.k
One[ROOT@LINUXZGF ~] #getconf long_bit[ROOT@LINUXZGF ~] #getconf word_bit(the int and long types in a 32-bit system are generally 4 bytes, and the int type in the 64-bit system is still 4 bytes, but LONG has become a 8-byte inux "getconf word_bit" and "getconf long_bit" are available in the system Gets the number of digits for word and long. 64-bit systems should be 32 and 64, respectively. )Two[ROOT@LINUXZGF ~] #uname-AIf there's a x86_64, it's 64, and there's no 32-bit.The following is X686 or
Student letter, Linux is the most basic skills, to try to transfer their work platform to Linux, programming script, this will greatly improve work efficiency, find a job is not too counseling. All of Linux's tasks are accomplished by command, with a high degree of uniformity. Many Linux commands, can not be, according to the specific needs of the master part. In
Original translation to: http://www.cyberciti.biz/faq/find-out-linux-serial-ports-with-setserial/How do I check and configure the serial port for various purposes (such as a modem, connecting an empty module, or connecting to a dumb terminal) under Linux?Linux offers a variety of tools.
If you are managing a Debian or Ubuntu server, you may often use dpkg or apt-get commands. These two commands are used to install, uninstall, and update packages.
In this article, let's look at how to check if a package is installed under a Deb based system.
To check for specific packages, such as whether Firefox is installed, use this command:
Dpkg-s Firefox
Sample output:
Package
#说明: Everyone usually on the Linux server security is mainly to the system user check, login server IP check, and firewall status check!1. The correct system user name needs to be stored in the/root/liu_shell/local_user.txt file and then compared!2. Determine whether the IP that is starting with 192.168.1 and 192.168.2
with the./configure--help to see detailed instructions to help
Make
This step is compiled, it reads the instruction from the makefile, and then compiles the
This step is compiled, and most of the source code packages are compiled in this step
Of course, some perl or Python-written software needs to call Perl or Python to compile
If error occurs during the make process, you need to write down the error code (note that it is not just the last line), an
Linux displays the correct syntax in the check settings file[emailprotected]:~$ apachectl [conflgtest] program "APACHECTL" is not installed. You can use the following command to install: sudo apt-get install apache2[emailprotected]:~$ sudo apt-get install Apache2[sudo] password for Youhaidong:e: Dpkg is interrupted, you must manually run sudo dpkg--configure-a to resolve this issue. [emailprotected]:~$ sudo
following IP, and recording time and IP.4 procuratorial Anomaly AccountProsecution Statement :more/etc/passwdMore/etc/sudoerprocuratorial method : View user identification number : Group identification number if one of the 0 is an exception user ( except ROOT and self-established ). Also See if the/etc/sudoer file has other users such as :5 Login IP and TimeProsecution Statement :Who/var/log/wtmpprocuratorial method : Check the abnormal login time a
Because Linux installs a lot of software, there is no common way to find out if some software is installed. This is a summary of the following categories:1, RPM package installed, you can see with RPM-QA, if you want to find a package is installed, with Rpm-qa | grep "The name of the software or package".rpm -QA | grep Ruby 2, with the Deb package installed, can be seen with dpkg-l. If you are looking for a specified package, use Dpkg-l | grep
Instruction: DFCheck the disk space usage of the file systemYou can view the total capacity, usage space, remaining space, mount location, and so on for all mounted disksSyntax:# DF [OPTION] [FILE]File is an optional list of one or more path names, such as selecting this option to display disk usage for the file system where the file residesPs:1: All users have permission to use the DF command2: Disk space is displayed by default in 1KB3: Default display of available space for all currently moun
viewed through PS) as follows:$ pmap-d 14596
3. See how much memory is actually usedTo view memory usage for all processes in the system, execute the following command:$ ps-e-O ' pid,comm,args,pcpu,rsz,vsz,stime,user,uid '查看系统指定进程Oracle的内存使用量,执行以下命令:$ ps-e-o ' pid,comm,args,pcpu,rsz,vsz,stime,user,uid ' | grep Oracle | Sort-nrk5
Comments:Where Rsz is the actual memory, the above example is implemented by memory sort, from large to small
4. See the N processes that currently oc
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.