Tags: log file file distinguishes TXT access short expression pipe character class
Shell Special Symbol Cut command
Special symbols* wildcard characters, any of any character? Any one character# comment Characters\ de-Semantic charactersC=\ $a \ $bEcho $c| Pipe characterCat 1.txt |lessCat 1.txt |moreCut intercept stringShow first 2 rowsCAT/ETC/PASSWD |head-2Cut ":" First paragraph cut-d ":"-F 1Cut two: cut-d ":"-FETC/PASSWD the firs
The date command is used to display the time, and the CAL command is used to display the calendar.Some of the common formats for the date command are%H hours (expressed in 00-23).%IHours (expressed in 01-12).%K hours (expressed in 0-23).%l hours (expressed in 0-12).%M minutes (expressed in 00-59).%P am or PM.%r time (including hours, minutes and seconds, hour is
Linux Command: cp command learning and use, linux Command cp Learning
The cp command is used to copy files or directories. It is one of the most common commands in Linux. In general, shell sets an alias. When copying a file under the command line, if the target file already
Linux Command learning Summary: rm command, linux Command summary rm
Command introduction:
This command is used to delete files or directories in Linux. Normally, rm will not delete the directory. You must specify the-r or-R parameter to delete the directory. In addition
Linux Command (2): ls command, linux Command ls
1. Role: List the contents of a directory;
2. Format: Ls [Option] [file]
[Option] specifies the file-related content to be viewed. If no file is specified, all files in the current directory are viewed by default;
3. Common Parameters:
4. Use instances:
[Yourname @ www/] $ ls-l (can be abbreviated as ll)
Total 220
Linux command rpm installation command, linux command rpm
In Linux, almost all software is installed, uninstalled, and managed through RPM. RPM is called Redhat Package Manager. It is a software developed by Redhat to manage software packages in Linux. During Linux installation, almost all modules except several core modules are installed through RPM. RPM has fiv
The adb shell pm command is first recognized, and the auto-start command of the application is forbidden. The adbpm command
Many people on the Forum wanted to cancel the auto-start startup of the application, so they wanted to know how it was implemented. However, Baidu once found out how to enable the application to boot, there is no hope for Baidu search materi
or stale[neigh]10.104.64.1 dev eth0 lladdr fe:ee:ff:ff:ff:ff according to its status stale[neigh]10.104.64.1 Dev eth0 lladdr fe:ee:ff:ff:ff:ff reachable[neigh]10.104.64.1 Dev eth0 lladdr fe:ee:ff:ff:ff:ff stale[neigh]10.104.64.1 Dev eth0 lladdr fe:ee:ff:ff:ff:ff reachable[neigh]10.104.64.1 Dev eth0 lladdr fe:ee:ff:ff:ff:ff stale[neigh]10.104.64.1 Dev eth0 lladdr fe:ee:ff:ff:ff:ff reachable# IP neighbour // View the MAC address of the device that is accessing your local area network 10.104.64.1
1. Add the following section at the end of the/etc/profile:user_ip= ' who-u am I 2>/dev/null| awk ' {print $NF} ' |sed-e ' s/[()]//g "Export histtimeformat= "[%F%t][' WhoAmI '][${user_ip}]"2. Source/etc/profile3. Execute whatever command you want,4. Perform the history and see the results:311 [2013-08-28 14:39:20][root][192.168.80.1] History312 [2013-08-28 14:39:43][root][192.168.80.1] Df-h313 [2013-08-28 14:39:45][root][192.168.80.1] Df-g314 [2013-08
Linux Command: rcp command usage details, linux Command rcp details
Rcp stands for "remote file copy" (remote file copy ). This command is used to copy files between computers. The rcp command has two formats. The first format is used to copy files to files. The second forma
Linux Command (8): cp command, linux Command cp
The cp command is used to copy files or directories. It is one of the most common commands in Linux. In general, shell sets an alias. When copying a file under the command line, if the target file already exists, it will ask wh
Shell Special character Cut command
Any of any characters? Any one character#注释字符\ de-Semantic characters·| pipe characterCut intercept string-D Specify delimiter-f Specifies the Intercept paragraphBy looking at what we can see,/etc/passwd is divided into 7 segments.·If you use ":" to intercept the first paragraph of the delimiter·Intercept the first to second paragraph (comma in English)·Intercept one to three segments (with a horizontal bar)·-c
Rm-rf mydir/* Delete the mydir directory */Cd mydir/* enter the mydir directory */Cd-/* Go back to the upper-level directory */Cd ~ /* Return to the root directory */Mv tools tool/* rename the tools directory to tool */Ln-s tool bac
/* Create a symbolic link named bac for the tool directory. The most familiar thing is that www in FTP is linked to the public_html directory */
Cp-a tool/home/leavex/www/* Copy all files in the tool directory to the www directory */Rm go.tar/* Delete the go.tar file
"Ipconfig is not an internal command or an external command" solution, ipconfig is an external command
1. Right-click "computer" and select "properties" from the drop-down menu ".
Second, select "Advanced System settings" in system properties ". In the system Properties dialog box, find the "advanced" tab at the top of it, which contains an "environment variabl
Linux Command File Content Query command-od, linux Command query od
Name: od
Location:/usr/bin/od
Permission: All Users
Purpose: view non-plain text files, such as binary files
Usage: od [-t TYPE] File
-T can be followed by outputs of various types
A: Default reason characters are output.
C: output using ASCII characters
D [size]: output data in decimal
records (limit 3, 5)Db.users.find (). Skip (3). Limit (5);Sort sortsWith age ascending ASCDb.users.find (). Sort ({age:1}); With age descending desc db.users.find (). Sort ({Age:-1});Cursorfor (var C = Db.t3.find (); C.hasnext ();) {Printjson (C.next ());}MongoDB also has another way to handle cursors> Db.t3.find (). ForEach (function (u) {printjson (U);});Stored ProceduresThe first thing you need to know about stored procedures is that it's written in JavaScript.MongoDB stored procedures are s
10) db.char.find ({' name ': ' Weixiaobao '}). Skip (2). Limit (10)f) The query returns the number of bars Db.char.find ({' name ': ' Weixiaobao '}). Count ()g) sort (by name ascending, age descending) Db.char.find (). Sort ({' name ': 1, ' age ':-1})h) Query the specified column to db.char.distinct (' name ')i) Remove the set Db.char.drop ()j) Create index Db.char.ensureIndex ({' Name ': 1, ' Age ': 1},{unique:true})k) View index db.char.getIndexes ()L) Delete index Db.char.dropIndex (' IndexN
Linux basic command date command, linuxdate command
1. Time Command: date
The parameter passed to the date command applies to '+' (plus sign). In the parameter passed
% Y indicates year
% M indicates month
% D Indicates day
% H indicates the hour (the time is 00-23)
%
Ls- L : Long Format File type: the - : Normal file (f)D: Catalog FilesB: block device files (blocks)C: character device files (character)L: Symbolic Link file (symbolic Linkfile)P: command Pipe file (pipe)S: socket file (socket) File permissions: 9-bit, every 3-bit group, each group: rwx (Read, write, execute), r-- Number of hard links to files owner of the file Genus Group of files File size (size), in bytes timestamp (timestamp): Last Modified time
Linux Command head command, linux Command head
The head and tail are just as easy to understand as their names. They are used to display a certain number of text blocks at the beginning or end, and the head is used to display the beginning of the file to the standard output, and tail takes it for granted that it is the end of the file.
1.
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.