Common commands in Linux

Find./-name "makefile" Search for the file path listing the current directory named "makefile" Grep-Nr "test "./ Recursively search all files including "test" in the current directory Perl-pi-E's | str1 | str2 | g'' find./-type F' Replace

Configure JDK in Linux

Statement: I am a fedora8 Linux User. Assume that the current user is Abin. 1. Download The jdk-6u4-linux-i586.bin to www.sun.com, assuming it is downloaded to the current user directory;2. Create the Software Directory under/home/Abin and copy the

Linux: decompression problem tar: child returned status 1

When extracting a file # Tar-zxvf xxxxx.tar.gz The following error message is displayed: Gzip: stdin: Not in GZIP formatTar: child returned status 1Tar: Error exit delayed from previous errors You used "Tar-zxvf" for the second command.

Asynchronous operations in Linux Device Drivers

First, open the target device. Second, set the sigio Signal Processing for the target device. Program . Third, you need to call the fcntl system to make the current process the master of the file. (In this way, the signal in the file can be used To

Compile and install Linux Kernel

$ Compile and install Linux kernel: [Bady] # cd/tmp/* first put the downloaded installation package in the/tmp/directory */ [Bady] # tar jxvf linux-2.6.16.tar.bz2-C/usr/src // * decompress the kernel package to the/usr/src/directory */ [Bady] #

Linux Process Communication Summary (4)-Message Queue

Message Queue (also called Message Queue) can overcome some shortcomings of the early UNIX communication mechanism. As one of the early UNIX communication mechanisms, the amount of information that a signal can transmit is limited. Although POSIX 100

Linux signals and their meanings

Http://kenby.iteye.com/blog/1173862 Command line Input Kill-L, which can list all signals supported by the system: 1) sighup 2) SIGINT 3) sigquit 4) sigill 5) sigtrap 6) SIGABRT 7) sigbus 8) sigfpe 9) sigkill 10) SIGUSR1 11) SIGSEGV 12) sigusr2 13)

LINUX serial port Program

LINUX serial port Program Original link http://www.plugcomputer.org/plugwiki/index.php/Serial_terminal/Linux/Programs   Putty Serial Port Terminal command line program  Putty N install putty Run the command as root On Debian or Debian-based

System Time Synchronization for two Linux machines

When writing server code, services may not be distributed on the same machine (for example, a cluster). It is necessary to synchronize the system time of these machines as follows: 1. Install ntpdate Command Line: sudo apt-Get install ntpdate 2.

Summary of common Linux commands

Basic File Operations1. Create a file with touch2. CP copy and link (s, L) files3. rename a music video. This process is called mobile4. rm delete files (-RF can also delete directories) Directory Processing5. Create a directory using mkdir6. Delete

Linux Network Programming memo

0. Related header files # Include # Include # Include # Include # Include # Include # include # Include # Include # Include # Include # Include # Include 1. Socket InitializationS = socket (af_inet, sock_dgram,Ipproto_udp ); If(S =-1)Return-1; S

Use rsync in Linux to implement incremental automatic data backup before different servers

Server A (Server 1) IP Address: 192.168.0.108 Server B (Server 2) IP Address: 192.168.0.109 Server 1 Configuration1) edit the/etc/rsyncd. conf file. The main configuration file of rsync:# [Globale]Strict modes = Yes# Check passwd filePort = 873#

Simple Analysis of waiting queue in ARM Linux

Author-------Dansen-----xzd2734@163.com Wait_queue_head_t wait_q;First, let's look at the structure of the waiting queue wait_queue_head_t.This structure is defined in wait. h.Typedef struct _ wait_queue_head wait_queue_head_t;Struct _

Linux Security Settings Manual

This article describes how to use basic security measures to make your Linux system reliable. 1. BIOS SecurityYou must set a password for the BIOS to prevent starting from a floppy disk by changing the startup sequence in the BIOS. This can prevent

View and add PATH environment variables in Linux

$ Path: determines which directories The shell will look for commands or programs. The path value is a series of directories. When you run a program, Linux searches for compilation links under these directories. Edit your path declaration in the

Modify Linux kernel boot logo and center full screen display

Modify Linux kernel boot logo and center full screen display 1. Prepare Images Using the Graph Software gimp that comes with Ubuntu is the fastest way to convert images. You can also use commands to convert images. In actual testing, an error is

Linux dynamic library function Introduction

Header file # include     Load dynamic library Void * dlopen (const char * filename, int flag ); Possible flag values: L rtld_lazy L rtld_now L rtld_global L rtld_local L rtld_nodelete (since glibc 2.2) L rtld_noload (since glibc 2.2) L

Linux Mount code analysis

1. Data Structure Vfsmount Struct vfsmount {Struct list_head mnt_hash; // hash tableStruct vfsmount * mnt_parent;/* FS we are mounted on */Struct dentry * mnt_mountpoint;/* dentry ofmountpoint */Struct dentry * mnt_root;/* root of the mounted tree */

How to-register and trigger-Soft Interrupt in ARM Linux

1. The Soft Interrupt of registration is, of course, through open_softirq Example: void __init init_timers(void){int err = timer_cpu_notify(&timers_nb, (unsigned long)CPU_UP_PREPARE,(void *)(long)smp_processor_id());init_timer_stats();BUG_ON(err ==

Linux memory File System

 Memory File System (Linux, FreeBSD)In Linux, part of the memory can be used as a partition, which is called ramdisk. For frequently accessed files that are not changed, you can place them in the memory through ramdisk to significantly improve the

Total Pages: 5467 1 .... 3852 3853 3854 3855 3856 .... 5467 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.