Common tool connections
Http://os.51cto.com/linuxman/Linux Chinese Men
Http://rpmfind.net/linux/RPM/RPM Package Download
=================================================================
Bash shortcut keys
Ctrl+l Clear Screen
CTRL + C
Ctrl+u the command before deleting the cursor------CTRL +Y
CTRL +k the command after the cursor is deleted
CTRL +R History Command Search
Ctrl +d exiting the current terminal
=================================================================
Modify SSH to speed up remote logins
[email protected] ~]# vim/etc/ssh/sshd_config
Usedns No (yes change)
#service sshd restart Restart SSH service
=================================================================
Configure local Yum Source
[email protected] ~]# Cat/etc/yum.repos.d/dvd.repo
[1]
Name=1
baseurl=file:///mnt/
Gpgcheck=0
Enabled=1
[email protected] ~]#
=================================================================
Egrep-v "#|^$" httpd.conf remove comments and spaces
Automatic mounting of Windows shares
[email protected] ~]# cat/etc/rc.local
Touch/var/lock/subsys/local
Mount.cifs-o username= "Administrator", password= "123.com"//192.168.2.88/g/yum/centos6.5//mnt/share
Yum files are not deleted after installation
[[email protected] ~]# vim/etc/yum.conf change keepcache=0 to keepcache=1, save exit
Linux displays the top and bottom 10 rows of the selected row
Grep-b 10-a Text Inputfile
-B Before
-A After
Take IP address: Grep-eo "\<[0-9]* (\.[ 0-9]*) {3}\> "file
Contents of square brackets: awk ' begin{rs= "]"; Fs= "["}nf>1{print $NF} ' file
Common settings for Linux lab environments