Find file search commands in linux and grep file content search commands, grep Content Search
When using linux, you often need to find files. The search Commands include find and grep. The two commands are partitioned.
Differen
Summary of common functions used to execute linux commands in PHP, and summary of phplinux commands
In general, php is rarely used to execute linux commands, but in special cases, you may use these functions. I used to know that there are two functions that can execute
Scp commands for Linux learning and XCOPY commands for Windows 1. basic concepts scp commands are used for communication between Linux and Linux hosts, simply put, a linux host can use
execution file, simply said it is just a link to the original file.The permissions of the soft link file are equivalent to the permissions of the shortcut keys, and do not affect the permissions of the original fileThe three main features of a soft link file:(1) All soft link files are identified by the letter "L"(2) All soft link files have an arrow "-" pointing to the original file(3)
The linux cd command is one of the two commands with the highest usage in Linux. The other is ls, of course ), I have never known the tips for seeing a linux cd command two days ago.
Cd-# Go Back To The Last directory. I didn't know this technique. It seems to be useful and I have omitted a lot of input.
Cd! $ # Input
This disk describes some of the most commonly used commands for Linux environments, including commands for SVN version control and vim editing commands. This article is original, if need reprint, please famous source: http://blog.csdn.net/qq_223274551. Directory Jump: CD2. View: LL ls3. Connect server: SSH user name @i
Built-in and external commands in Linux
1. linux commands can be divided into internal commands and external commands:
Internal commands are transferred to the memory at system startup,
-i option in the passwd command to set the inactivity time of the system user. Users will not be able to log in if the user (I am using a Linuxtechi user) expires after the user has passed ' N ' Days (10 days in my case) without changing their password.Copy CodeThe code is as follows:[Email protected] ~]# passwd-i LinuxtechiAdjusting aging data for user Linuxtechi.Passwd:success[Email protected] ~]#[Email protected] ~]# passwd-s LinuxtechiLinuxtechi PS 2015-09-20 0 99999 7 (Password set, SHA512
Summary of Common commands for GDB debugging in Linux, and Common commands for gdb
Prepared by: longshike
Email: longshike2010@163.com
2016-01-05
Gdb is the default debugging tool in Linux. When compiling a program file, such as debug. c. To use gdb for debugging, you must add cc-g or gcc-g before the terminal command
[user] [file or directory]Function Description: Change the owner of the file or directory (only root has this permission)Command name: CHGRPCommand English Original: Change file group ownershipCommand path:/BIN/CHGRPExecute Permissions: All UsersSyntax: chgrp [user Group] [file or directory]Function Description: Change the file or directory belongs to group example: Chgrp liming FengjieCommand name: umaskCommand English original: the User file-creati
Linux commands--Rights management commandsRights Management Command: chmodEnglish Name: chmodCommand English original:change the permissions mode of a fileCommand path:/bin/chmodExecute Permissions: All UsersSyntax: chmod "{ugoa}{+-=}{rwx}" "File or directory""mode=421" "File or directory"-R Recursive modificationFunction Description: Change file or directory per
Common Linux commands (4) -- Help Command 1. Command name: man www.2cto.com execution permission: All Users Function Description: Get help Syntax: man [command or configuration file] views the help information of the ls command. When the help information is displayed, press the space to next page, press Enter next line, and press q to exit [root @ localhost ~] #
(source) target (destination)[email protected] ~]# CP [options] Source1 source2 source3 .... directory
Parameters used with the CP:
-A: As-pdr means, please refer to the following instructions for PDR. (common)-D: If the source file is the attribute of the link file, the link file property is copied instead of the file itself;-I: If the target file (destination) already exists, the action will be asked (commonly used) when overwriting-P: Copy the past along with the properties of
shut down the system.Parameters-D do not record in the wtmp.-F Regardless of the current runlevel, the system is forced to shut down without calling shutdown.-I close the entire network interface before halt.-N Halt, do not perform sync first.After-P halt, execute poweroff.-W is only recorded in the wtmp and does not actually end the system.SyncFunction Description: Writes the data in the memory buffer to disk.Syntax: Sync [--help][--version]Note: In a Linu
Common Linux commands (version 2)-file search commandsFile SEARCH Command
1. which/usr/bin/which # displays the directory where the system command is located. It is an absolute directory and cannot find files.
Format: which [system command]
E.g. which ls
Appendix-whereis: You can also find the absolute path of the command.
Unlike whereis, which lists the alias records of this command, and whereis displays t
Watch is a very useful command, basically all Linux distributions with this gadget, like a name, watch can help you monitor the results of a command, save you to manually run over and over again. Under Linux, watch is the periodic execution of the next program, and full-screen display of the execution results. You can use him to monitor everything you want. The r
Detailed explanation of linux sed commands and sed commands
Sed is a good file processing tool. It is a pipeline command mainly used for processing by behavior units. It can replace, delete, add, and select data rows, next, let's take a look at the usage of sed.Sed command line format:Sed [-nefri] 'command' input text
Common options:-N: Use silent mode. In genera
. After reading all the content, you will exit. If you want to quit early, just press the Q key. Less is the same as more, but better than the more good can be turned upside down. The SPACEBAR can also be paged, while pressing the "J" key can be moved downward (click to move down one line) and press "K" key to move up. When you use more and less to view a file, you can click the "/" key and then enter a word carriage return so that you can find the wo
position you selected, both soft links and hard links are synchronized.Ln commands are used to link files or directories. for example, if you specify more than two files or directories at the same time, and the final destination is an existing directory, all the previously specified files or directories will be copied to this directory. If multiple files or directories are specified at the same time and th
1. Commands for managing files and directories:(1) Pwd:print working directory (print working directory), when entering PWD, requires the Linux system to display the current location.(2) CD command: The CD command is used to change the directory in which it is located. Always return to the current home directory. If you need to convert to a different directory, you need a path name. [The difference between
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.