Linux System Programming _1_ folder read (implement simple LS command)

There is nothing to spare. Simply write and implement the simple LS command:| 1 #include | 2 #include | 3 #include | 4 #include | 5| 6 int main (int argc, char **argv) | 7 {| 8 DIR *pdir;| 9 struct Dirent *stdir;| Ten int flag = 0;| 11| if

Linux directory structure

Bin (binaries) holds binary executable fileSbin (Super User binaries) holds binary executable files, only root can accessETC (etcetera) store system configuration files (configure IP, configure environment variables)USR (Unix shared resources) is

Construction of Hadoop2.7.1 cluster environment under Linux (Super detailed version)

This article is intended to provide the most basic, can be used in the production environment of Hadoop, HDFS distributed environment of the building, Self is a summary and collation, but also to facilitate the new learning to use.first, the basic

Linux installation JDK

Jdk1.8:http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.htmlJDK Installation1. Upload JDK installation files to LinuxThere are many kinds of methods, such as mount, share files, FTP, wget, etc., I use the SCP commandSCP

Introduction to Linux system catalog

/bin Binary executable command /dev   device special files /etc  system administration and configuration Files /etc/rc.d   Startup configuration files and scripts /home  base point of user home directory, such as user's home directory is/home/

Linux wildcard characters

Common wildcard characters:*: matches any character of any length?: matches any one character[List]: matches any one of the characters in the list[!list]: matches any one of the characters except the list[C1-C2]: matches any one of the characters in

Frequently used commands for Linux (2)-shutdown

Shutdown commandShutdown?h now to shut down the machine.Shutdown?r Now it's time to start the computer again.-T sec:-T followed by seconds, i.e. "shutdown after a few seconds"-K: not to really shut down, just send a warning message-R: Start again

Linux Automation One-click Configuration rsync

function Introduction1, one-click Configuration rsync2, does not support multi-module or multi-user3,-a All random4, do not add-a need to manually enter the account password5, the progress bar is only good-looking, does not represent the real

SED learning Summary of common commands under Linux

sed function Description:SED is a powerful text file processing tool for Linux, which can be used to add, delete, find, query, and match regular expressions to meet the needs of the work. It is also a core skill that an OPS person must master.-------

Linux extension root space

Transferred from: http://blog.chinaunix.net/uid-363820-id-2181838.htmlHow do Linux users extend disk space?here to B type VPS as an example, the specific expansion method for disk space is as follows:screenshot001.jpg1. dividing unallocated disk

Linux file size and quantity statistics

To monitor the file status of the node (number of time holders)Start monitoring the number of files with find./-type F |wc-lMonitor file size Du-skProblems that arise:1, the same files in different versions (centos6.5 and centos5.8) the size of the

Linux Shutdown restart command

Using the Shutdown command, the parameters are as follows:-K do not perform any shutdown operation, only send a warning message to all users- r-= Restart the computer -H= power off and completely shut down-F Fast shutdown and Skip

A magical script under Linux

Script is a magical command that can record the session of a terminal and then use Scriptreplay to play the results of its recordings to others. The benefit of script is that all of your actions in the terminal, the commands you've knocked out, and

Linux File Structure---forwarding

Linux file structure to see what each folder is used for/bin binary executable command/ Dev Device Special files/etc system administration and configuration Files/etc/rc.d startup configuration files and scriptsthe base point of the home user

The Linux find grep combination uses

Transfer from http://blog.csdn.net/cupidove/article/details/87674501. Find all ". h" Filesfind /PATH -name "*.h"2. Find all files in the ". h" file that contain "HelloWorld" stringsfind /PATH -name "*.h" -exec grep -in "helloworld" {}

Common commands for Linux 2

-R Recursive Delete, can delete subdirectories and files-F Force DeleteRM-RF Delete a directory recursively (use as little as possible)Find searches a file system for a file (the search scope and criteria are later written, but only by file

5 recommendations for a proper learning of Linux systems

The Linux system has been used more and more in recent years, so many people are eager to learn Linux. But we all grew up learning windows, from Windows 98 to the present Windows 10, and based on the experience of learning Windows systems to learn

Installing JDK under Linux

Method One: Manually install the JDK installation package, configure the environment variables1. Create a Java directory under the/usr/directory[Email protected] ~]# mkdir/usr/~]# Cd/usr/java2. Download and unzip the installation package[[email

Passwd file, passwd

Passwd file, passwd 1. View/etc/passwd [Admin @ localhost/] $ cat-n/etc/passwd1 root: x: 0: 0: root:/bin/bash2bin: x: 1: 1: bin:/sbin/nologin3 daemon: x: 2: 2: daemon:/sbin/nologin ... 29 sshd: x: 74: 74: Privilege-separated SSH:/var/empty/sshd:/

How does the server LIUNX solve the problem of mining machines and the server liunx solves the problem of Mining

How does the server LIUNX solve the problem of mining machines and the server liunx solves the problem of Mining Basically, it is difficult to open the connection terminal of the liunx Mining Machine (cpu carrying 300%) card.After opening the

Total Pages: 5467 1 .... 2948 2949 2950 2951 2952 .... 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.