mount point/boot 200M system boot
Type/swap 2g virtual memory
All remaining points
Grub: Boot System program
minimal+ Custom
Vim/etc/sysconfig/network-script/ifcfg-eth0 Network configuration file
Set IP
Onboot=yes
ipaddr=192.168.1.111
netmask=255.255.255.0
gateway=192.168.1.1
dns1=0.0.0.0
Route-n Check Gateway = =
VI State CTRL + Z pause return
FG Return VI
Cat! The last parameter of the previous command
/etc/init.d/network restart
Ps-ef | grep NetworkManager
Check process PID
Kill-9 1553 Task Manager features similar
PS aux |grep dhclient
Killall dhclient
Dhclient-r canceling auto-assigning IP
cat/etc/resolv.conf DNS Files
> /etc/resolv.conf redirect Empty
650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>
! Cat's latest start with cat command
----------------------------------------------------------------------
Use Puttygen to generate a key pair. Save the private key.
Mkdir/root/.ssh
ls/root/
Ls/root/-A
Vi/root/.ssh/authorized_keys (Add public key to this file)
Modify Permissions
Modify file permissions: chmod 600/root/.ssh/authorized_keys
Modify directory Permissions: chmod 700/root/.ssh
To remove a firewall rule:
Iptables-f
Service Iptables Save
Turn SELinux off and temporarily shut down with Setentforce 0
Permanently closed as: Vi/etc/selinux/config selinux=disabled.
Finally, upload the private key to putty
Ssh->auth
650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>
Atime, CTime, what does mtime mean?
2.access access time, corresponding to Cat,atime
3.modify content modification time, corresponding vim,echo,mtime
4.change change time, corresponding permission property modification
When you experiment, vim echo not only affects mtime, it also affects CTime
chmod does not affect Mtime, only affects CTime
File View files Type stat View more information
650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>
It is now common to use RSA to encrypt DSA without this universal use
Disable root
1> find Passwordauthentication Yes in the/etc/ssh/sshd_config file and modify it to Passwordauthentication No.
2> Restart sshd Service
/etc/init.d/sshd restart
Pscp-l ROOT-PW 123456 192.168.0.183:/root/test/mbr.bin d:\
Copy the files from Linux to win
Mylinux Cookbook 2015/3/9