executable files under LinuxLinux under How to find executable files, as a Linux side dish just got this problem,In Windows, you can use the suffix name to determine if an executable file, such as. Exe,.bat, is an executable file, but under
1. Find the latest modified files in 30 minutesFind./-mmin-30-type F | Head-12. Find the earliest modified files within 30 minutesfind./-mmin-30-type F | Tail -13. Find the latest modified files within 24 hoursFind./-mtime 0-type F | Head-14. Find
Macro definitions for Offsetof and container_of in the Linux kernel#define OFFSETOF (Type, MEMBER) ((size_t) & ((TYPE *) 0)->member)/*** Container_of-cast a member of a structure out to the containing structure* @ptr: The pointer to the member.*
Linux kernel kernel_ nuclear travel_ Travel Linux kernelLinux 2.61Hellomod.c001Hello World driver for Linux 2.6#include /* All modules use header files module.h*/#include /*kernel.h contains common kernel functions */#inlcude /* init.h contains
Memory allocation is a more complex and important part of Linux, similar to SSD drivers: the mapping of physical and virtual addresses. The following summarizes the most recently seen about memory allocations and their own understanding of the
Study on the function of switch interruption series of LinuxInterrupts and locksInterrupts are a way for Linux to respond to asynchronous events, unlike traps, exception directives, and errors that occur after the execution of an instruction, which
File I/O mode comparison1. Blocking file I/OThe process starts from the calling function until the time it is returned is blocked.2. Non-blocking file I/OIf no data is currently operational, the current process is not blocked and an error message is
Self-organized a bit, share to everyone, these exercises are really very classic!1. What is an absolute path versus a relative path?The absolute path is relative to the/directory path, such as/home/user;Relative path is relative to the current
Linux View system hardware information, not as intuitive as windows, here I listed the view system information of the practical commands, and do a classification, examples of interpretation.CPUThe LSCPU command, which looks at the CPU
locate allows users to quickly search the file system for specific files. The method is to set up a database that includes all the file names and paths within the system, and then simply query the database when looking for it, rather than actually
If the two machines often have the action of the packet, such as the compiler to the publisher, or provide the tool to install the media machine to other machines, often log in need to enter a password is more troublesome, and the script also
Facl:filesystem access Control list to save additional access controls with file extensions
Access order for general permissions: Owner--group--other
If there is an access order for additional permissions:
In production, sometimes due to security reasons, usually non-Linux administrators are only ordinary users of the account, but sometimes some operations require root permissions, this can be done by sudo, the steps are as follows:A. For example, our
I. OverviewIn the actual C software development project, different software will generate files in different directories, due to the limited storage space of the disk, developers have to consider the deletion of outdated files in the directory.
Regular Expressions: There are two classes, one: Basic RegExp two: extended (extended regular expression) their partial metacharacters are different, the meanings are different.
grep: Commands that filter text using basic regular expressions or
Jni debugging 3 (thread debugging env variable issues), jnienv
Cause of thread crash in jni layer debugging
1. Cause of crash:In the thread function in the jni layer, if you add a function that calls env, it will crash. 2. solution 1: ①
Shell script analysis mysql slow query log (slowlog)
Percona pt-query-digest is used to analyze slow query logs. The analysis and statistics results are clear.
#! /Bin/shslowlog_path =/root/slow_query_logeveryslow =/tmp/everydayslow # need to
Mcrypt. h not found. Please reinstall libmcrypt "solution
Libmcrypt-devel cannot be installed on CentOS sources. For copyright reasons, there is no package containing mcrypt.
There are two solutions: one is to use the third-party source, which can
Build Hadoop2.6.0 + Spark1.4.0 standalone environment under Windows 7 Virtual Machine
For how to install and configure Hadoop, refer to my previous article: Build a pseudo-distributed environment of Hadoop2.6.0 under Windows 7 virtual machine.
This
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service