1. WC: number of bytes, words, and lines of statistics filesformat: WC [OPTION] ... [FILE] ...Wc[option] ...--files0-from=fParameters:- C : Count bytes- M : Statistics of characters- L : Count Rows- W : Counting Words Example:[Email protected] ~]#
This record reads the following commands such as mkdir, rmdir, tree, Dirname,basename, Cat, TAC, more, less, tail, head, touch, file, CP, MV, RM, WC, cut, sort, u Niq use formats, common options, and what they have to use.
Directory
1,echo "AA" > Test.txt and Echo "BB" >> test.txt//> Empty the original file, and the content is written to the file,>> put the content to the end of the file2,chmod go+w-r/home/zhangy//Add Write permission to group users and other users3,TAR-TZVF
One. ls commandThe LS command is the most commonly used command under Linux. The LS command is the abbreviation for list. LS is used to print out the list of current directories if LS specifies a different directory then the list of files and
Today I learned the understanding of Linux commands and the basic commands for managing files and directories in a Linux system.In Linux systems, a command is required to implement a function, and the execution of a Linux command relies on the shell
Knowledge before learning shell scripts1) Record command historyThe commands we've knocked on, Linux will be recorded, and presets can record 1000 historical commands. These commands are saved in the. bash_history file in the user's home directory.
the role of the shell is to convert a user-entered text command into an internal nuclear identification data instruction to the kernel for execution, and the kernel needs to be translated into binary to be executed by the CPU bottomthe user
Consider the next, just own a little record, according to their own situation to record it, follow up with new things to add at any time. Oh, yes.
First, getting started with common sense1. Several commands1)!n: Executable nth command in
1. Cut [Options] file name-F column number #提取第几列 (delimited defaults think \ t)-D delimiter #指定分隔符Example: Cut-f 2 a.txt #截取文件a The second column of content (column number starting from 1)Cut-f 2,4 A.txt #截取文件a The second and fourth columns of the.
Summarize some of the commonly used Linux commands:1). Man-format and display the on-line manual pagesThe segmentation mechanism of the man command: 1: User command: 2: System call 3: library call 4: Device file 5: File format (typically defined as
WC calculates the number of lines , words , and bytes of a file# wc/etc/passwd1800/etc/passwd# wc-l/ETC/PASSWD40/etc/passwd# wc-w/ETC/PASSWD59/etc/passwd# wc-c/ETC/PASSWD1800/etc/passwdgrep Regular Introduction^ Beginning of the line$ End of lineV
PS: Red font is an important part, look carefullyFirst, Shell features1. History view the command record, default records 1000;[Email protected] ~]# history 1 vim/etc/hosts 2 Ifconfig 3 cd/etc/sysconfig/network-scripts/ifcfg-4
1. lsDisplaying folder folders and filesHow to use: ls-lt-A display folder under All files and folders included. And.. -A display folder where all files and folders are not included. And.. -L Show All files and folders under folder specific
Content of the lesson:Linux system originVarious common commands for Linux and familiarity with command parameter options:Directory Operations Command ("jump; View your current location-absolute path; View directory contents under any path" PWD
Summarize some Linux commands for easy memory and learningCommon command format for Linux commandscommand word [options] [parameters]Example: ls-l/etcSeveral auxiliary operations for command line editingTab key: Auto-completingBackslash "\": Force
Jquery.gantt is an open source JS library based on the jquery library's extensible functionality for Gantt Chart effects.Add the following div where you want the Gantt chart to appear.Component ConfigurationGantt Configuration$ (". Selector"). Gantt
(a) file creation command 1.touch commandFor example, the Touch ABC command creates an empty file named ABC in the local directory2.CP commandThe CP command allows us to copy the contents of a file to a file of the same name or name, and copy the
Code statistics
C Ode as follows:
Xargs Description:Xargs reads the value of the stdin and defaults to a blank or carriage return as a delimiter, passing the split value as an argument to the command-line operation immediately
In our daily system operations, it is often necessary to use the shell to write some automated scripts, which are very much dependent on the proficiency of the advanced operational commands of Linux, so we look at some of the most frequently used
awk command:1.Print line number and content:awk ' {print NR ': ' $ A} '2.Output: Even lines and odd lines to fileawk ' {print $0.txt > nr%2.txt} ' File3.Print surprisingly few lines of content: (three equivalent)awk ' nr%2==1 ' fileawk ' nr%2 '
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.