Self-implemented Simple tail command under Linux

/*     Browse individual files, by row or by byte      format:  tail filename c/n num, No other formats currently supported */#include   #include   #include   #include  /*     error Handling */void oops (CHAR*S1,CHAR*S2) {     fprintf (stderr, 

Linux Terminal excellent color scheme

Import the color scheme file (configure the corresponding color scheme file see attachment)The color of annotations in Vim is asVim Consumer.java in Xshell650) this.width=650; "title=" capture. PNG "alt=" wkiom1wxpzjrsfumaaqx3k6j8vs957.jpg "src="

Linux Traffic Statistics Applet

The source code is as follows://2015/7/2 10:30:35//gino#include #include #include #include #include #include #include #define Flow_rx_file "/sys/class/net/eth0/statistics/rx_bytes"#define Flow_tx_file "/sys/class/net/eth0/statistics/tx_bytes"#define

Clean memory and cache methods under Linux

Clean memory and Cache methods under Linux/proc/sys/vm/drop_cachesFrequent file access results in a significant increase in the cache usage of the system$ free-mTotal used free shared buffers Cachedmem:3955 3926 28 0 55 3459-/+ buffers/cache:411 3544

Linux Boot management: Grub

Partition representation in 1.grubLinux/dev/sda1 in Grub for hd0,0 represents the first partition of the first hard diskLinux/DEV/SDB3 is an extended partition in grub for hd1,2 in the 3rd partition on the second hard diskLinux/DEV/SDB5 is the

Linux Common commands

1, "ls" displays all files and folders in the current directory"LL" is equivalent to ls-l, displaying all files and folders in detail2. "PWD" displays the current working directory3, "mkdir" set up the directoryExample: mkdir test, create Test

Linux under Disk Management

Set PasswordmkpasswdMkpasswd-s 0Mkpasswd-s 0-1 15 Specifies the length of the password1. View the capacity of a disk or directoryDF View Disk partition usageDo not add parameters in K unitsDf-i inode number, df-h with G or t or MDf-m shown in M

Linux Modify user Password

If you are logged in as root, modify the root password. Just enterpasswdit will appear:New Password:Retype new Password:follow the prompts to enter the password confirmation.If you want to change other user passwords, just enter passwd username.such

"Original" Linux compiled kernel

Before adding the necessary library, compile the software what please Baidu.Copy to User/srcsudo cp linux-4.0.6.tar.xz/usr/srcEnter the SRC directory:Cd/usr/srcNext unzipUnzip firstTAR.XZ file We enter firstsudo xz–d linux-4.0.6.tar.xzGet the tar

Linux/UNXI system environment variable, linuxunxi environment variable

Linux/UNXI system environment variable, linuxunxi environment variable1. What are environment variables? Simply put, it is to specify a directory. when running the software, the relevant program will find the relevant files according to the

In Linux, the/etc/shadow file,

In Linux, the/etc/shadow file, ** In a Linux operating system, a file is responsible for the passwords of all users. That is shadow. The permission for this file must be set:-R---(400) or-rw--(600)That is, the Linux/etc/shadow file is a file that

Docker installs and upgrades the Linux kernel (2.6.32-) 3.10.81). The installation is successful!

Docker installs and upgrades the Linux kernel (2.6.32-) 3.10.81). The installation is successful!Upgrade the Linux kernel (2.6.32-> 3.10.81) and install the docker1. prepare the kernel upgrade environment. # Check the installed and uninstalled

Install centos7.1 in vmware11

Install centos7.1 in vmware11 Open vmware11 and select create new vrtual machine. 2. select typical in the pop-up window and click next. 3. Select the installation source. Here there are three options: physical optical drive, iso image, and virtual

Configure Firewall in CentOS 7.1

Configure Firewall in CentOS 7.1 // View firewalld [Root @ wode006 sysconfig] # systemctl status firewalld. service Firewalld. service-firewalld-dynamic firewall daemon Loaded: loaded (/usr/lib/systemd/system/firewalld. service; enabled) Active:

CentOS 7.1 add and delete users

CentOS 7.1 add and delete users Add User [Root @ wode006 home] # adduser eric [Root @ wode006 home] # Change Password [Root @ wode006 home] # passwd eric Change the password of user eric. New password: Invalid password: the password must

Introduction to large-scale Web System Architecture

Introduction to large-scale Web System Architecture Dynamic applications refer to dynamic applications based on c/c ++, php, Java, perl, and ,. net and other network application software developed in server languages, such as forums, online albums,

Linux Learning 1

Linux Learning 1View ip: ifconfigNic startup: ifup eth0View rpm package installation: rpm-qa | grep sshSsh service start: service sshd start or/etc/init. d/sshd startSsh service restart: service sshd restartView ssh Port: grep

How to solve the serious problem of Ubuntu fever

How to solve the serious problem of Ubuntu fever It was quite geothermal when I first installed ubuntu, hot! The direct reason is that there is no corresponding video card driver, and then find the latest Nivida driver in the software update. It is

Getting started with linux

Getting started with linuxLinux is based on some transplantation and redevelopment on the unix kernel.* Linux is a general term for an operating system. There are many Vendors Based on linux. Compared For Everyone familiar with RedHat, its most

CentOS6.6 OpenVPN server combined with AD domain authentication

CentOS6.6 OpenVPN server combined with AD domain authentication1. Introduction to OpenVPN OpenVPN is a software package used to create a VPC encrypted channel. It was first written by James Yonan. OpenVPN allows the created VPN to use a public key,

Total Pages: 5467 1 .... 5036 5037 5038 5039 5040 .... 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.