Common settings for Linux lab environments

Source: Internet
Author: User
Tags clear screen

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

    Contact Us

    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

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.