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 KILL command is used to terminate the run of the specified process.Sends the specified signal to the corresponding process. Not specifying a model will send Sigterm (15) to terminate the specified process. If the program can not be terminated with the "-kill" parameter, it sends a signal of Sigkill (9), which will force the end of the process, using the PS command or the jobs
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
chattr commandCommand function: Change file properties.Command syntax: chattr [parameter] [+/-/=This directive alters the properties of files or directories stored on ext2, ext3, Ext4, XFS, Ubifs, ReiserFS, JFS file systems, which have the following 8 modes:
A: Make the file or directory available for additional use only.
B: Do not update the last access time of the file or directory.
C: Compress the file or directory and store it.
D: Exclude files or directories from dumpin
In general, Bash is case-sensitive to commands, and can display the previous history command when you press the "Up" button. However, this is not very convenient, the following configuration, you can let bash ignore the case, and can be based on the input command header press "Up" key to display the history of the command, such as: input vim, and then press "Up"
The DF command is used to view the disk usage of the Linux file system, and to see how much space is currently occupied by the disk and how much space is left.Several of the commonly used commands areCommand 1 DF The default display size is in kilobytes, you can use the parameter-K 1024-byte units,-M 1024*1024 bytes,-I display innode information,-H displays the data in the appropriate units,-H is the same as the-H effect, but-H is in 1000 as a unit,-
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
1. Color command Save the current color settings---can be quickly restored later2. Copy commandExample: BGA fan outActivation command--tick--Remove tick--select--right-rotate--each rotation 90 degrees Matrix mode replicationReproduction of the form of a projectile3. Delete commandOnly check the corresponding property (find) When executing this command to prevent
Linux Command (1): cd command, linux Command cd
1. Role: Change the working directory;
2. Format: Cd [path]
The path is the working directory to be changed. It can be a relative path or an absolute path.
3. Use instances: [Root @ www uclinux] # cd/home/yourname/
4. Instructions for use:
This command changes the c
conversion work at this point. --version Displays version information. Mans :NAME : Command name and function brief descriptionSynopsis : Usage notes, including available optionsDESCRIPTION : A detailed description of the command function, which may include the meaning of each optionOPTIONS : Explains the meaning of each optionFILES : The configuration file associated with this commandBUGS :EXAMPLES : Usi
Linux Find File Lookup command with grep file Content Lookup commandWhen using Linux, file lookups are often required. The commands you find are primarily find and grep. Two commands are of a district. The Difference : (1) The Find command is based on the attributes of the file , such as file name, file size, owner, owning group, whether it is empty, access time, modification time, etc.(2) grep is a search
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
25, Shell special symbol Cut command, sort_wc_uniq command, tee_tr_split command, Shell special symbol underFirst, shell special symbol Cut commandSpecial symbols*: Wildcard.?: any one character.#: Comment characters, add to command before command will not take effect.\: de-
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
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.