In a nutshell: Get the source code in a way that apt-get source package_name .Learning Linux system Programming the best reference example is the existing source code (source) in Linux, such as to achieve a LS command the same function of the
The last command lists information about the users that are currently logged in to the system. Its main parameters are:(1)-a displays the host name or IP address of the login system in the last line.(2)-D converts the IP address to the host name.(3)-
The Linux Sort command is used to sort the contents of a text file in a way that is ASCII by default:Syntax Description:
sort[-bcdfimmnur][-o][-t][-k][file]
Common parameters:
-B ignores whitespace characters that begin before each
Find the file name called test and enter the path where the file exists/is an absolute path. As a relative pathFind/-name test-printThe Find command with test1 Find. -newer Test-printFind a new file in the current directory than the test
The LS command is one of the most commonly used commands under Linux, LS is the same as the dir command under DOS, is used to list the files under the directory, let's take a look at the use of LSEnglish Full Name: list is the meaning of lists, when
Graphical use of the top command in LinuxLine four: Memory status8306544k Total Physical Memory (8GB)7775876k used total memory in use (7.7GB)530668k free Memory Total (530M)79236k Buffers Cache Memory (79M)Line five: Swap swap partition2031608k
Recently idle to have no matter, occasionally see someone in QQ group ask questions, about-rw-similar commands, these commands I also knows, is in Linux inside only then appear, now I come to carefully detailed about this command meaning:-RWXRWX---1
Common file Finder Tools on Linux systems:FindReal-time Lookup tool to complete file search by traversing the file system hierarchy under the specified starting path;Operating characteristics:The search speed is slightly slower;Accurate
How to disable ping response under Linux:Echo 1 >/proc/sys/net/ipv4/icmp_echo_ignore_allIf you want to disable ping response as soon as you boot, add the above statement to/etc/rc.d/rc.local.If you want to resume using the ping command, you can
How to disable ping response under Linux:Echo 1 >/proc/sys/net/ipv4/icmp_echo_ignore_allIf you want to disable ping response as soon as you boot, add the above statement to/etc/rc.d/rc.local.If you want to resume using the ping command, you can
---linux delete files or directories command using Linux under RM commandUsers can use the RM command to delete unwanted files. The function of this command is to delete one or more files or directories in a directory, and it can delete all files
Find commandCommand format: Find [Search Range] [search criteria]#搜索文件使用Example: Find/-name Install.log#避免扩大搜素的范围, wasting system resources#-name can only find the name of the file, need a fuzzy match, you can use wildcard characters, but the
Reprint: http://q928856957.iteye.com/blog/22278501. Set-eThe-e parameter of the SET command, Linux comes with the following description:"Exit immediately if a simple command exits with a Non-zero status."In other words, the code that appears after
SED basic usage:Sed:stream Editor Editor, unlike the VI editor, the VI editor is a full-screen editor.SED: Mode spaceBy default, the original file is not edited, only the data in the pattern space is processed, and after the processing is finished,
The data command displays and changes the system timeDate Syntax and parameters:Date [OPTION] ... [+format]Date [-u|--utc|--universal] [MMDDHHMM[[CC]YY][.SS]]
Parameters
Words
Description
-S
Set
1. Basic ReadingThe read command receives input from the standard input (keyboard) or other file descriptor (which is said later). After the input is received, the Read command puts the data into a standard variable. Here is the Read commandIn the
Sentence notation: Find corresponds to the directory -mtime + days-name "file name"-exec rm-rf {} \;Example 1: Place all 10 days before the/usr/local/backups directory with "." The file deletionFind/usr/local/backups -mtime +10-name "* *"-exec RM-RF
The while command is a bit like a combination of if-then and for loops. The while test command returns a 0 exit state, looping through a set of commands.While basic format:While Test commandDoOther commandsDoneExample:#!/bin/bashVarl=5While
CP command--file copyCopy commands for directories and filesCP command syntax and parameters:CP [OPTION] ... SOURCE ... DIRECTORY
-A
All
Equivalent to DPR
-D
When you copy a symbolic link source
The case command checks multiple values of a single variable in a list-guided formatCommand format:Case variable inPattern 1 | PATTERN2) Command1;;Pattern 3) Command2;;*) default commands;;EsacThe case command compares the specified variable to a
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.