Table of Contents: 1, commonly used file folder operation2. settings for file attributes
1. common file Folder operationmkdir Create folder-p If you specify A/B/C, a and b do not exist, create them togetherCP Copy file or folder-r copy
Although iptables in the UNIX system is not a service, but in order to facilitate the usual management of Iptables wrote a chkconfig startup script (chkconfig startup script can see http://jim123.blog.51cto.com/ 4763600/1845648), defined in
Character processing commands: tr--convert or delete charactersTR [OPTION] ... SET1 [SET2]Conversions are not words, but characters are converted one by one-D: Delete all characters that appear in the character setEg:tr AB ABBash Extreme
1, create a 10G partition, and the format of the Ext4 file system;(1) The block size is required to 2048, the reserved space percentage is 2, the volume label is MyData, the default Mount property contains ACLs;(2) Mount to the/data/mydata directory,
1. View cpu# total number of cores = number of physical CPUs x number of cores per physical CPU # Total Logical CPUs = number of physical CPUs x number of cores per physical CPU X number of hyper-threads # View the number of physical CPUs
Sources of Linux1) In 1984, the GNU Engineering and Free Software Foundation was foundeddevelopment of a completely free, Unix-like GNU operating system, but no source code for UNIX systems= = Create an open source version of the UNIX business= =
Compressionxz-z files to compressIf you want to keep the compressed file plus the parameter-K, if you want to set the compression rate add parameter-0 to-9 to adjust the compression rate. If not set, the default compression level is 6Extractxz-d
To prepare a liunx machine, I'm using a liunx virtual machine.
Loading a single hard disk, I loaded a 20G hard disk, and then partition with FDISK/DEV/SDB, SDB1 used as the future system's/boot partition, all 100M can be, SDB2 used as a future
Everyone knows that the touch command is used to create a new empty file in daily operations, but there is an important role to tell you today is to change the file date.Generally we are mainly used to modify the file date to the current
Linux look at the system version information uname-a if the display is i386,i686 32-bit system, if the x86_64 is 64 bits a hard disk can have up to four primary partitions one of the primary partitions can be replaced with an extended partition,
It depends on which compression you use for your compressed files:gzip, compressed file name: Zip or GZ, decompression command: UnzipBZIP2, compressed file name: BZ, decompression command; bzip2-dThe above two are the most commonly used compression
Test environment: RHEL5.81.# vi/usr/share/gdm/defaults.conf--Modify the following three itemsEnable=truedisplaysperhost=10port=177Allowroot=trueAllowremoteroot=true2. #vi/etc/inittab--Change the default level to
/ o:System settingsDefault input device: standard input, stdin,0Default output device: Standard output, stdout,1Standard error Output: stderr,2belong to different data streamsStandard input: KeyboardStandard output and Error output: DisplayI/O
1. Copy the/etc/rc.d/rc.sysinit file to the/tmp directory and add # to the beginning of the line with at least one whitespace character in the/tmp/rc.sysinit file;cp/etc/rc.d/rc.sysinit/tmp sed ' [email protected]^[[:space:]]\[email protected]\#&@ '/
1. View all network services that are currently open
an order; netstat.
-A (All) displays all options and does not show listen related by default-T (TCP) displays only TCP-related options-U (UDP) displays only UDP-related options-N
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~1, first install a Sshpass installation package on this machine~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~2, Ssh-keygen-t rsa-p ""-f/root/.sshgenerate an RSA key on this computer- T: specifying the RSA algorithm-P: The
1.PSCP command Introduction, only need to copy this file to the system directory corresponding to the System32, you can check the description of tearful, as shown belowPuTTY Secure Copy ClientRelease 0.67USAGE:PSCP [Options] [[Email
Http://www.cygwin.com/install.htmlInstall Cygwin (/x) the package you need to select:Xorg-server (must, cygwin/x X server)Xinit (must, open X server: Script Xinit, StartX, Startwin (including shortcut to Start menu), Startxdmcp.bat)Xorg-docs
Query hardware information and linux hardware information in linux
1. query cpu-related information
A. query CPU statistics
Command: lscpu
The result is as follows:
Architecture: x86_64CPU op-mode(s): 32-bit, 64-bitByte Order:
SSH remote session management toolI. What is the screen command?
Screen is a full-Screen window manager that allows multiple processes to reuse one physical terminal. Screen has the concept of session. You can create multiple screen Windows in one
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