Linux test command details, linux test command details
Test mark
Meaning
File name and type
-E
Whether the file name exists
-F
Whether the file name exists and is a file
-D
Whether the file name exists and is a directory
-B
Whether the file
of the template block to the end of the file. ! The indicates that the following command does not work for all rows that are not selected. S/re/string Replaces the regular expression re with a string. = Prints the current line number. # extends the annotation before the next line break.
The following is a replacement tagG means full replacement in line.P represents the print line.W indicates that the line is written to a file.X represents th
First, the common command quick-check
Ls
Cd
Pwd
Cat
More
Less
Tail
Head
Cp
Scp
Mv
Mkdir
RmDir
Touch
Rm
Ps
Kill
Top
Free
Clear
Tree
Wc
Stat
The above is the common command quick-check table, the following is a detailed command.
One linux command every day (18): locate command link: One linux command every day (1): ls command http://www.2cto.com/os/201210/163049.html ; One linux
The Linux skill command sends a signal to the program being executed. The preset message is TERM (interrupted), and the commonly used messages are HUP, INT, KILL, STOP, CONT, and 0.Message Syntax:-9,-SIGKILL, and-KILL. You can use-l or-L to list available messages.Permission: all users.Other related commands: killSyntaxSkill [signal to send] [options] Select program rulesGeneral parameters: -F fast mode/
user would try * anything like that and we just wait for the timeout. *//* Erase suspend *//* It ' s harmless to issue the erase-suspend and Erase-resume * commands when the Erase algorithm isn ' T in progress. */map_write (Map, CMD (0xb0), chip->in_progress_block_addr); chip->oldstate = Fl_erasing;chip->state = FL_ erase_suspending;chip->erase_suspended = 1;for (;;) {if (Chip_ready (map, ADR)) Break;if (Time_after (jiffies, Timeo)) {/* should has suspended the erase by now. * Send a Eras E-res
functions that are needed in the main function.
VI test.h test.c MAIN.C
Step two: Compile the test.c into the target file.
Gcc-c test.c
The previous two steps are consistent with creating a static library.
Step three: By. o file to create a dynamic library file.
Gcc-shared-fpic-o libtest.so TEST.O
Step Fourth: Use dynamic libraries in your programs.
Gcc-o main main.c-l.-ltest
When a static library and a dynamic library have the same name, the GCC c
in /usr/share/doc/ifupdown/examples .ifupTypically, a physical interface name is given as its first parameter without an option. ifupThis name is also used as the initialization logic name for the interface, unless it is specified with a "=logical" format suffix, which ifup uses "LOGICAL" as the initialization logical name for the interface.Network adapter Configuration Instance loopback parameter configuration## The loopback network interface(配置环回口)
In Linux, the top command is used to display the real-time status of processes running in the system. it displays some useful information, such as CPU utilization and memory consumption, and the status of each process. But, do you know? There is another command line tool hto
In Linux, the top
Although GUI desktops, such as KDE and GNOME, can help users take advantage of Linux features without the functional knowledge of command-line interfaces, they often require more functionality and flexibility. Moreover, familiarity with these commands is still necessary to automate certain functions in the shell script correctly.
This article is an "accelerated tutorial" on
This original article belongs to "Linux greenhouse" blog, the blog address is http://roclinux.cn. The author of the article is rocrocket.In order to prevent the vicious reproduction of some websites, special in each article before adding this information, but also hope that readers understand. ===[Start of body]LN is a magical command that can create a shadow of a file or go to another place through a chan
In Linux, the time command is often used to calculateProgramRunning time (real), user-mode CPU time (user), and system-mode CPU time (sys)
The most common use of time commands is to follow the commands and parameters directly after them:Time
Example 1:
Bixiaopeng @ bixiaopengtekimacbook-pro ~ $ Time sleep 2 Real 0m2. 005 suser 0m0. 001 SSYS 0m0. 002 s
Slight explanation:Real 0m2. 005 S: sleep the
Linux unzip command for extracting Zip files
Unzip is the decompression program for the. zip compressed file.
Grammar
Unzip [-cflptuvz][-agcjlmnoqsvx][-p
Parameters:
-C Displays the uncompressed results to the screen and converts the characters appropriately.
-F to update existing files.
-L Displays the files contained within the compressed file.
-P, similar to the-c parameter, displays
The Linux who command is used to display which users are on the system, the displayed information includes the user ID, terminal used, connection from which side, online time, idle time, CPU usage, and action.Permission: all users can use it.SyntaxWho-[husfV] [user]Parameter description: -H: do not display title columns -U: do not display user actions/work -S: Display in short format -F: do not
In Linux, all peripheral devices have their names and codes, which are stored in the/dev directory as special files. You can run the tty (teletypewriter) command to query the file name of the currently used terminal.SyntaxTty [-s] [-- help] [-- version]Parameter description: -S or -- silent or -- quiet does not display any information, but only returns the status code. -- Help online help. -- Versi
When the ping command is executed, the ICMP transmission protocol is used to send the request response message. If the network function of the remote host is normal, the system returns the response message, so that the host operates normally.SyntaxPing [-dfnqrRv] [-c [-S Parameter description: -D: Use the SO_DEBUG function of Socket. -C -F limit detection. -I -I -L -N: only numbers are output. -P -Q does not display the
Before giving you a detailed introduction to the Linux mount command, first let you know about the Linux mount command, and then give a comprehensive introduction to the Linux mount command. The
examples (20): find command exechttp: // www.bkjia.com/ OS /201211/168901.htmllinuxlinuxcommand every day (21): find command xargshttp: // example (22 ): detailed description of the parameters of the find command http://www.bkjia.com/ OS /201211/168912.htmla linuxcommand every day (23):
The LS command is the most commonly used command under Linux. ls command is the abbreviation of List save LS used to print out the list of the current directory if LS specifies a different directory then the list of files and folders in the specified directory is displayed. The LS
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.