Linux FAQ (2)

Source: Internet
Author: User
Article title: Linux FAQ (2 ). Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Q: The file name contains some special characters that cannot be entered. what should I do if I want to change the file name?
  
A: If you have a file named "my? File ", here"?" If you do not know how to enter the characters, you can use the following methods:
  
Ls | grep my? File
  
Make sure that no duplicate files will appear. run the following command:
  
Mv ls | grep my? File my-file
  
In this way, the goal can be achieved.
  
Q: I used ASP for website development on IIS of Windows 2000. recently I switched the operating system to Red Hat Linux 7.1 and installed Apache on the Web server. I wonder if I can continue using ASP for website development?
  
A: Yes. Although the Apache server does not have the built-in ASP function, we can find the applicable ASP module. Chili is a company engaged in this field! Soft, Halcyonsoft.com, and Chamas Enterprise. The kits they provide are as follows:
  
Chili! Soft ASP for Linux: http://www.chilisoft.com
  
Instant ASP: http://www.halcyonsoft.com
  
Apache: ASP: http //: www.nodeworks.com/asp
  
Q: I have a Linux book. I mentioned the old concept of closed loop. But I have not explained it in detail. I don't know what it means?
  
A: We know that computers that use the TCP/IP protocol all have an IP address. Each Other uses an IP address to confirm each other and transmit information and data. In some cases, we want to perform a test (such as whether the NIC is correctly installed), or do not have another computer as the receiving end. At this time, we can use this machine to assume the sender and acceptor of information. this is the so-called closed loop.
  
The IP address of the closed loop is 127.0.0.1. for example, you can run the telnet 127.0.0.1 command after logging on to the system, and then run the w command to observe the users logging on to the system:
  
# Telnet 127.0.0.1
Trying 127.0.0.1...
Connected to localhost. localdomain (127.0.0.1)
...
[Eagle @ domo eagle] $ w
Am up, 3 users ....
  
  
  
Q: What is the difference and connection between SMB and Samba?
  
A: SMB is a communication protocol developed by Microsoft in 1980. Through this protocol, the file systems and printers of neighboring hosts on the network can be shared with each other. Currently, communication protocols similar to this type of resource sharing include NFS, AppleTalk, and Netware. Samba is a software running on Linux that uses the SMB communication protocol. Its function is to share resources between Windows and Linux.
  
Q: How can I quickly build an FTP server under Red Hat 7.0?
  
A: Setting up an FTP server in Linux is very easy, and there are a lot of software to choose from. The simplest way in Red Hat 7.0 is to use a WU-FTPD. It is one of the most popular Linux FTP servers. Since Red Hat Linux 7.0 has built-in WU-FTPD, you have installed the FTP server when installing Linux. If you are not sure whether you have installed the WU-FTPD, run the following command to confirm:
  
# Rpm qa | grep wu-ftpd
Wu-ftpd-2.6.1-5
  
  
  
If the above result is displayed, it indicates that you have installed the software. Otherwise, run the following command to install the software (here, the Red Hat Linux 7.0 CD is used as an example ):
  
# Mount/dev/cdrom/mnt/cdrom
# Cd/mnt/cdrom/RedHat/RPMS/
# Rpm ivh wu-ftpd-2.6.1-5.i386.rpm
  
  
  
Start the service after installation. First create the/etc/xinetd. d/wu-ftpd file. The content is as follows:
  
Service ftp
{
Disable = no
Socket_type = stream
Wait = no
User = root
Server =/usr/sbin/in. ftpd
Server_args =-l? A
Log_on_success + = DURATION USERID
Log_on_failure + = USERID
Nice = 10
}
  
  
  
For details about the file parameters, run the man ftpd query.
  
After the file is created, read the set file again. Run the following command:
  
#/Etc/rc. d/init. d/xinetd reload
  
  
  
To check whether the service is started, run the telnet localhost 21 command. if ready is displayed, everything is OK and the server can use it. In fact, the installation and setup processes for other versions are similar.
  
  
Q: When I set up a Linux server, I feel that I always need to modify many files. Is there a general graphic management interface?
  
  
A: Try WebMin (http://www.webmin.com ). This is a very good software. it not only allows you to set servers on the graphic interface, but also allows you to remotely manage Linux hosts. You can remotely manage Linux hosts even if you are using a Windows host. It is very powerful and easy to use. you can choose to use the Chinese interface.
  
  
  
Related Article

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.