Fundamentals of the ten-year OPS series-LinuxZeng LinContact: [Email protected]Website: www.jplatformx.comCopyright: Please do not reprint the article without permission
First, IntroductionThe Linux system contains very many files! This
To view the SELinux status:1,/usr/sbin/sestatus-v # #如果SELinux The status parameter is enabled is turned onSELinux status:enabled2. Getenforce # #也可以用这个命令检查To turn off SELinux:1, temporarily shut down (do not restart the machine):Setenforce 0 #
Netstat-n | awk '/^tcp/{++s[$NF]} END {for (a in S) print A, s[a]} 'Time_wait 8947Fin_wait1 15Fin_wait2 1Established 55Syn_recv 21CLOSING 2Last_ack 4
TCP Connection Status detailedLISTEN: Listening for connection requests from a
Original Livecd:install-amd64-minimal-20130711.iso (Gentoo)Working system: CentOS1. Copy the contents of the original LiveCD:[[email protected] downloads]# mkdir/mnt/livecd[[email protected] downloads]# Mkdir/mnt/img[[email protected] downloads]#
command: FindFind, searchWith the characteristics of immediacy, do not need the database, relatively slower1. Search for files recursively down from the specified path2. Support Search by various conditions3, support the search to obtain the file
Find-depth 1-name ' aa* ' | Xargs TAR-CVF Aa.tarThis command will look for files that start with all AA in the current directory, and then "package" all the results into Aa.tarContrast:Find. -maxdepth 1-name ' aa* '-exec tar-cvf fff.tar {} \;
Commands in the Linux environment:Ctrl+alt+t: Calling the terminal's LinuxCTRL + C: Terminate a running process: kill foreground processCtrl+l: Clear ScreenShortcut keys under Win7:Win+tab: Show DesktopWin+d: Minimized window, display desktopWin+p:
1.Installsudo apt-get install mutt MSMTP2.Configsudo vim/etc/muttrcAdd the following contentSet sendmail= "/usr/bin/msmtp" set Use_from=yesset envelope_from=yesset realname= "yourname" set [email protected]Then msmtp configuration file for
11th Chapter ShellShell two families: Bourne Shell family (Bourne shell, bash, FreeBSD, Korn Shell, Pdksh, Zsh) and C-shell family (C-shell, Tcsh).To temporarily change the shell, just run the shell directly at the command line, enter the shell name,
The first day after today's work, but also always in the memory of the holiday, the previous use of some of the commands are always forgotten, hereby recorded:1, check the current user's home directory $homeEcho $HOME2. View current working
The command replaces the key on the top of the command or "anti-quote precedence" of the Commands tab keyBASH-supported quotes' Anti-quote command replacement '"" Double quote weak reference, you can implement variable substitution.' Single quote
Apache2: bad user name $ {APACHE_RUN_USER} solution, apacheuser
After the project is started, an apache Virtual Machine fails to run. After calling apache2-k start, the following message is displayed:
Apache2: bad user name $ {APACHE_RUN_USER}
Tomcat memory overflow in LinuxTomcat itself cannot run directly on a computer. It depends on the operating system and a Java virtual machine. When the JAVA program starts, the JVM allocates an initial memory and the maximum memory to the APP. When
Introduction to Sed Regular Expressions in Linuxshell scriptsSed IntroductionSed is a lightweight stream editor, short for stream editor. Sed is also called a row editor because it is used to edit a file in a behavior unit. It can automate editing
Whereis command (convert) and whereis command
Original article: http://www.cnblogs.com/peida/archive/2012/11/09/2761928.html
The whereis command can only be used for searching program names, and only binary files (parameter-B), man description files
Locate and locate commands
Original article: http://www.cnblogs.com/peida/archive/2012/11/12/2765750.html
Locate allows users to quickly search for specified files in the file system. The method is to first create a database that includes the names
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service