Personal Learning Linux Knowledge Summary 1th/4 page _unix Linux

Source: Internet
Author: User
Tags memory usage tar unzip disk usage
1. Change Telnet Login slow problem: Cd/etc vi resolv.conf to empty the contents of the inside
2. Change root user can not directly telnet problem: cd/etc CD PAM.D VI login comment out this line #auth required pam_securetty.so//the line commented out

3. Hook up USB mobile hard drive to hang the hard drive.

#df View Linux hard drive letter Mount/dev/sda1/mnt/usb (for example)

5. Change Linux startup with a graphical interface or a character interface Cd/etc VI Inittab will id:5:initdefault: of which 5 represents the default graphical interface to Id:3: Initdefault:3 represents the character interface

8. Configure which IP can be used by SMB.

Cd/etc/samba Vi smb.conf Find hosts allow = 192.168.1. 192.168.2 127. Modify what machine it is used for, pay attention to the IP separated by commas for example: hosts Allow =192.168.1.110,192.168.1.120

9. Prohibit the use of ctrl-alt-delete in the background to restart the machine Cd/etc/inittab VI inittab in the file to find the following line # Trap Ctrl-alt-delete Ca::ctrlaltdel:/sbin/shutdown- T3-r Now (comment out this line)

such as: # Trap Ctrl-alt-delete #ca:: Ctrlaltdel:/sbin/shutdown-t3-r now

10. Modify host name Vi/etc/sysconfig/network modify hostname row to hostname= hostname

12. View the hardware DMESG for boot detection | More

13. View hard disk usage df–m

14. View the size of the directory Du–sh dirname

15. Extract small Total tar xvfj lichuanhua.tar.bz2 tar xvfz lichuanhua.tar.gz tar xvfz lichuanhua.tgz tar xvf lichuanhua.tar unzip Lichuan Hua.zip
16. Show memory Usage free–m
Current 1/4 page 1234 Next read the full text

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.