The Linux system has 7 runlevel (runlevel):
RunLevel 0: System down state, system default RunLevel cannot be set to 0, otherwise it will not start normally
RunLevel 1: Single User working status, root privilege, for system maintenance,
Title:linux File RetrievalDate:2017-12-11 19:03:01Tags:linuxCategories:linux
WhereisJust performwhereis lsYou can search for the "ls" command and the location of its help documentation.But it can only search for man manuals, binaries, and
Installing Epel on CentOSTo install Epel, we will first download the Epel RPM installation package.6.x and 5.x versions of the download page below Centos/rhelhttp://download.fedoraproject.org/pub/epel/6/i386/repoview/epel-release.htmlhttp://download.
/
root directory, the general root directory only, do not store files, / etc , /bin , / Dev , /lib , /sbin should be placed in a partition with the root directory
/bin
Binary This directory holds the most frequently used
XZcompression of directories is also not supported
? XZ 1.txt
Compressed files, the source files disappear after compression
Du-sh 1.TXT.XZ
? viewing compressed files after size
Xz-d 1.TXT.XZ
?
CRONTAB Introduction * * * *In short, crontab is a custom timer.Crontab configuration File * * * *
One/var/spool/cron/This directory contains crontab tasks for each user (including root), named after the user name
TarThe tar command can be used to compress a packaged single file, multiple files, a single directory, and multiple directories.Common formats:Single File Compression package:Tar czvf my.tar file1Multiple file Compression Packaging:Tar czvf my.tar
1, the server can ping through2, the server catches the local HTTP request packet, can catch3, local catch the HTTP response packet returned by the server, cannot catchAfter the discovery, it is because the Linux firewall is turned onView firewall
One, part of the character description:1) ^word matches the content that begins with Word Vi/vim ^ represents the beginning of a line2) word$ matches content ending in Word Vi/vim $ represents the end of a line3) ^$ indicates blank line4).
Software download Download the Linux version of Jdk,tomcat Note that Linux only recognizes GZ's compression packets. 1. Type extract: tar-zxvf apache-tomcat-8.0.20.tar.gz force Copy to the specified directory after decompression: cp-r apache-tomcat-8
1. View Disk Allocations: Fdisk-lDiscovery Disk/dev/sdb2. Then use the FDISK command to create the partition: Fdisk/dev/sdbNew Partition NSave Partition W3. View partitionsDiscover new Equipment/DEV/SDB14. Format the partition and set up the file
1. Output your most used 10 commandsHistory|awk ' {print $} ' |awk ' BEGIN {fs= ' | '} {print "} ' |sort|uniq-c|sort-rn|head-10
tail -f /path/to/file.log | sed ‘/^Finished: SUCCESS$/ q‘Exit tail when Finished:success appears in File.log, this
(1) Query user information currently logged in W or who[@bjzw_11_210 ~]#W -:Geneva: -Up342Days -: on,2Users, load average:0.03,0.04,0.00USER TTY from [email protected] IDLE jcpu PCPU whatroot pts/0 10.149.239.20Thu130.00s0.19s0.00sWGuest pts/2
Linux System directory StructureAfter logging in to the system, enter the command under the current command window:You will see as shown in the following:Tree-like directory structure:The following is an explanation of these directories:
1. Find the location of the discLs-l/dev |grep cdromMount/dev/sr0/mnt[[email protected]/]# ls-l/dev |grep cdromlrwxrwxrwx 1 root root 3 Dec 4 03:17 cdrom2-SR0CRW-RW----1 roo T cdrom , 1 Dec 4 03:17 SG1BRW-RW----1 root cdrom one ,
Linux file operationsThere are many ways to operate Linux files, here are the following two kinds of
Package, archive, command for files: tar,gzip,bzip2
Edit the contents of the file with the VI editor (VIM is an extension of the VI editor)
One, the Linux environment of the threadCompared to other operating systems, the Linux system kernel only provides support for lightweight processes and does not implement threading models. Linux is a "multi-process single-threaded" operating system,
The Linux version I used is the CentOS system with Screenfetch viewDownload the source package into the official website https://www.python.org/find the first downloads download source code is the sourceThis place to download the source package,
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