Summary of personal Linux learning page 1/4

Source: Internet
Author: User

1. Slow logon via telnet: CD/etc VI resolv. conf clears the content
2. the root user cannot log on remotely. For details, see CD/etc CD Pam. d vi login to comment out this line # auth required pam_securetty.so // comment out this line

3. Mount the USB mobile hard drive and mount the mobile hard drive.

# DF view the hard drive letter Mount/dev/sda1/mnt/USB in Linux (example)

5. Change the graphic interface or character interface when Linux is started. CD/etc VI inittab: ID: 5: initdefault: 5 indicates the default graphic interface. Change ID: 3: initdefault: 3 to indicate the character interface.

8. Configure the IP addresses that SMB can use.

CD/etc/samba VI smb. conf Find hosts allow = 192.168.1. 192.168.2. 127. Which machines are used to modify them? Note that IP addresses are separated by commas For example: hosts allow = 192.168.1.110, 192.168.1.120

9. disable restarting the machine CD/etc/inittab VI inittab in the background using the CTRL-ALT-DELETE find the following line in the file # trap CTRL-ALT-DELETE CA: ctrlaltdel: /sbin/shutdown-T3-R now (comment out this line)

For example: # trap CTRL-ALT-DELETE # CA: ctrlaltdel:/sbin/shutdown-T3-R now

10. Modify the host name VI/etc/sysconfig/network and set hostname to hostname = Host Name.

12. view the boot detection hardware dmesg | more

13. View hard disk usage DF-m

14. view the directory size Du-SH dirname

15. Unzip the full tar xvfj lichuanhua.tar.bz2 tar xvfz lichuanhua.tar.gz tar xvfz lichuanhua. tgz tar xvf lichuanhua.tar unzip lichuanhua.zip
16. Display memory usage free-m

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.