In linux, make, clean, and their combined commands first look at what is makefilemakefile, which defines a series of rules to specify, which files need to be compiled first, and which files need to be compiled later, which files need to be re-compiled, or even perform more complex functional operations, because makefile is like a Shell script, which can also execute operating system
uname: Viewing kernel-related informationParameters:-A,--all: all system related information, including the following data will be listed-S,--kernel-name: System kernel Name-N,--nodename: Print network node host name-R,--kernel-release: Kernel version-M: The hardware name of the system, such as i686 or x86_64;The type of-P:CPU, similar to-M, just shows the type of CPU-I: Hardware platform (ix86)-O,--operating-system: Print operating systemDMESG: Displays the kernel boot informationThe DMESG comm
This article is mainly used for common commands of the memo, the specific usage can be viewed by man, or query other information.CD: Changing the working directoryLS: List contents of directorymkdir: Create a directoryCat: Connect and display information about one or more of the files specifiedCP: Copy the given file or directory to another file or directoryMV: Renaming files or directories or moving files from one directory into anotherRM: Delete one
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 permissionsExample: Way One:chmod u+x japanloves
Shutdown
Poweroff
Halt
Shutdown-H now
Init 0
The above four commands are equivalent. Normal users do not have the permission to shut down and must use sudo to execute the above commands.
Do not use poweroff-F. The F Switch refers to force, meaning forced shutdown.
Think exercises for teacher Haiming.
In Windows, there is only one clock, that is, the BIOS clock.
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
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 ~] # Man ls: view the help information of the conf
chmodSyntax: chmod [{ugoa}{+-=}{rwx}] [file or directory] For example chmod g+w testfile[mode=421] [File or directory]-R recursive modifications such as Chmod-r 777 TestDirModify directory testfile directory files for all users with full permissionsSummary of File directory permissionsRepresents the meaning of the character permission on the file to the directoryR Read permission to view the contents of a file to list content in a directoryW Write permission can modify the contents of the file c
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
Recommend a Windows software: Everything, can quickly search to file1. File Search command: FindDo not use the Find,find range as small as possible during peak server usagefind [Range] [match condition]Example:Find/etc-name init: Find file init in directory/etc, precision search, to blur search with * matchFind/-size +204800: Look for files larger than 100M in the root directoryFind/home-user Shenchao: Find files with owner Shenchao under the root directoryFind/etc-cmin-5: Find files and directo
, for renaming8. Delete Files: RMRM-RF [File or directory]:-R Remove Directory-F EnforcementDelete the directory with-RF, or you will be constantly prompted to delete every file in the directory9. Create an empty file: TouchTouch japanlove.list10. Display file contents: Cat [FileName]-N: Show line numbers11. Display file contents: TAC [FileName]12. Paging Displays the contents of the file: more [filename](space) or F: Page turn(Enter): line breakQ or Q: Exit13. Paging Displays the contents of th
[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-creation maskCommand path: Shell built-in commandEx
46.1 Mkfontdir: Creating an index of X font files
46.2 Dumpiso: Dumps the IEEE 1394 synchronous channel packets
46.3 iconv: Convert file Encoding
46.4 Hash: Display and delete hash tables
46.5 Isb_release: Displays information about LSB and specific versions
46.6 locale: Get a specific language environment
46.7 nm: List Symbols from objects
46.8 RMT: Remote disk Creation Protocol module
46.9 Lscgroup: List all the cgroups
46.10 cgclear: Uninstalling the Cgroup file sys
. 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 word. If you have more than one word, you can p
Detailed explanation of linux sed commands and sed commandsIntroduction
Sed is an online editor that processes a row of content at a time. During processing, the currently processed rows are stored in the temporary buffer, called the pattern space. Then, the sed command is used to process the content in the buffer, send the buffer content to the screen. Next, process the next row, and repeat until the end o
directory cannot be deleted because the TMP directory has other files in addition to the 123 directory, and the directory/123/456/789,/123/456,/123 have been deleted.Four, RM commandRM commands can be used to delete files and directoriesFor example, I first create a directoryMkdir-p/tmp/123/456/789And then create a textTouch/tmp/123/456/789/123.txtPerformRm/tmp/123/456/789/123.txtWill ask whether to delete the normal empty file/tmp/123/456/789/123.tx
Common Oracle commands and recently used Problems
[Problem and background]1. delete a table? A library?Drop table table_name;Drop table database_name;2. Delete all data of a user?It is best to stop the database first and shutdown immediate; startup to ensure no user connectionOr select Sid, serial # from V $ session where username = // 'username // '; query the connectionSid serial #--------------
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
7 days (the system will warn the user within 7 days before password expires), modified with the-W parameter-1: Account Expiration Date (-1 means never expire), modified with-I parameterInvalidate the Account
Sometimes we may need to let an account temporarily unable to log in to the host, then we just use the passwd-l parameter is ok (Restore the original with-u parameter)Example 5, make the account JBW invalid, check it out and then restore it to the original state:1[Email protected]:~
(mm/dd/yy format)
%T
Display time format, 24-hour (HH:MM:SS)
%x
Format of the display date (MM/DD/YY)
%y
The last two digits of the year
%Y
Years (e.g. 2007, 2008)
%r
Time (Hh:mm:ss morning or afternoon)
%p
Show morning or afternoon
If you enter a command:Date "+%x,%r"The system returns the following information:March 26, 2010, 18:06 P.M. 49 seconds4.7 cal CommandThe CAL co
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.