the recommendation of the book does not introduce, lest others say I have the suspicion of advertising. You can directly on Baidu, books and videos are everywhere, Linux these aspects of knowledge are their own learning video and reading summary, the content may not be perfect. If there is more insight, please comment directly. 1.ls "list directory processing command" displays all files in the current direc
Basic Linux commands-general Linux technology-Linux technology and application information. For more information, see the following section. Basic1: shutdown: init 0 or shutdown-h now
Basic2: restart: init 6 or reboot or shutdown-r now
1. function: Force delete all files i
Reference: http://www.cnblogs.com/liqingdong/p/7346100.html1, service iptables status--View server firewall status2, Vi/etc/sysconfig/iptables--Edit firewall rules3, service iptables restart (start,stop)--Restart (start, stop) server firewall4, Vi/etc/profile--Configure the Java environment variable on Linux, add at the end of the fileJava_home=/usr/local/java/jdk1.7.0_80Path= $PATH: $JAVA _home/binClasspath=.: $JAVA _home/lib/dt.jar: $JAVA _home/lib/
I. The concept of command. Terminal (Terminal)?? command is a Linux system management, Linux system users through the terminal login shell process, terminal is the shell Process Control terminal.
??
?? TTY displays the terminal name of the current terminal?? Terminals can be run independently at the same time . Command execution procedure?? Alias aliases?? Builtin Internal Command?? Hash Cache table?
1. AliasDefine or display aliasesegAlias date= ' Date ' +%f%T "'
When we enter date , in fact, it is equivalent to enter the date "+%f%T", simple and convenient;However, this alias is only valid in the current shell process, and once we exit and then log in, the alias will no longer take effect.
The workaround is to modify the file ~/.bashrc, write this alias command in the file, so that even if the device restarts, we can still use the alias date;Use the nano text Editor to modify
Wget is a free tool that automatically downloads files from the webThe TAR-ZCXF command is to pack the files and compress them first.The TAR-ZVXF command is to unzip and repackage this file.CD: Return to the previous levelExit the file being edited: Wq; capital Z ZUpload file: securecrt-file-connect sftp tab-lls (local directory)-CD to the specified directory-put fileTelnet to the Linux server: Login as:root.Compress to zip under Win7, unzip unzip und
file from the 512-byte block position represented by the number variable.-C number starts reading the specified file from the byte position represented by the number variable.-F assumes that the input file is a regular file or assumes that the file parameter specifies a FIFO (first in and out),Then the tail command will not terminate after the last specified unit of the input file has been copied, but continueRead and copy additional units from the input file (when these units are available).If
Basic commands under the Linux systemLinux System basic commands: to distinguish caseuname display version information (same as Win2K ver)dir Displays the current directory file, Ls-al display includes hidden files (dir with Win2K)pwd Query the directory location where you a
to store the data, but the 122 Byte warehouse in the data kicked off.LRU removal mechanismmemcached Expiration data removal mechanism:When a value expires, it is not removed from memory, so stats statistics, Curr_items still have its information;When the value is taken, determine whether it expires, if expired, return empty, and empty, at this time curr_items is reduced;There have been no get before, will not automatically delete;Use an empty chunk only when a new value occupies its place.This
Query file type and file Location command)FileRole: View the file type (the file type under Linux does not differentiate after the prefix name)Syntax: file [options] filename=================================================================================[[emailprotected] ~]#file/etc/passwd/etc/passwd:asciitext #文本文档 [[emailprotected]~]#file/etc/etc: directory #目录文档 [[emailprotected]~]#file/bin/ls #二进制文件/bin/ls:elf32-bitlsbexecutable, intel80386,ve
-depth When looking for a file, first find the file in the current directory, and then look in its subdirectories-user Find files according to the owner of the file-nouser Find a file without a valid owner, that is, the owner of the file does not exist in the/etc/passwd-group Find files according to the group to which the files belong-nogroup finds a file that does not have a valid owning group, that is, the group to which the file belongs does not exist in/etc/groups-mtime–n/+n to find fi
Catalogue and documents
Pwd-P Returns the true path of the link
CdCD-Return to the previous directoryCD switch to the current user's home directory
Ls-D displays information about the directory itself rather than the information in the directory-C Displays the time when the file or directory attribute was last modified-U shows when the file or directory was last accessed-T to modify the time sort, by default sort by file name
Mkdir-P Create a multilevel directory
Findfind[command opt
Getting commands to use helps with several methods:1. Help ' CMD '----internal command2. ' CMD '--help----external command3, man ' cmd '---view CMD command manual#whatis ' cmd ' to see which sections of CMD are in the Man manual;Chapter categories of the Man Handbook:1. User command (/bin,/usr/bin,/usr/local/bin)2. System call3. Library users4. Special documents (equipment files)5. Configuration file Format (syntax)6. Games7. Miscellaneous8. Managemen
--SYSTOHC set the hardware clock to the current system time if one of the times is wrong, we can modify it by the above command. [[email protected] hzh]# Hwclock--hctosys Set the system time corresponding to the hardware time.[[email protected] hzh]# Hwclock--SYSTOHC set the hardware time corresponding to the system time. If two times is wrong, we can set the time ourselves [[email protected] hzh]# hwclock--set--data= "month/day/year: minutes: Seconds"Yum related operations:Yum install Yum check
center;border:1px solid #ddd;" width= "217" height= "" alt= "and" Spacer.gif "/>for Beginners Linux, it is necessary to master some shortcut keys, and then share some of the shortcuts used under Linux. around # # One character moves one characterCTRL + around # # A word moves a wordCTRL + A # # cursor moves to the beginning of the line+ E # # cursor moves to end of line+ U # # cursor position deleted to be
command name (Linux bash built-in command)23. View and change the IP and other configurationIfconfigIfup start the Nic Ifup eth0Ifdown stop nic ifdown eth0Restart Network /etc/init.d/network restart24. View the Linux version:cat/etc/redhat-release(c entos) sudo lsb_release-a(Ubutu)25. Turn off the firewall/etc/init.d/iptables Stop or service iptables stop26. Add
There are many common commands in Linux that must be mastered, and here I will learn some common basic commands that I learned from Linux to share with you and hope to help you.This is the bird in the book I have done a bit, I hope not to deal with copyright issues.MORE: htt
There are many common commands in Linux that must be mastered, and here I will learn some common basic commands that I learned from Linux to share with you and hope to help you.This is the bird in the book I have done a bit, I hope not to deal with copyright issues.1. Instru
/936 "Cron
U 3 root@localhost.local Mon 15:45 24/936 "Cron
U 4 root@localhost.local Mon 15:46 24/936 "Cron
U 5 root@localhost.local Mon 15:47 24/936 "Cron
> indicates that the current message U is unread
The code is as follows:
P//Display current message
Message 1:
From Root@localhost.localdomain Mon 19 15:43:02 2009
Date:mon 2009 15:43:02 +0800
From:root@localhost.localdomain (Cron Daemon)
The code is as follows:
2//display of files labeled 2
Message 2:
Other common parameters:
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.