Red Flag asianux Server 3 System Management: frequently Asked questions

Source: Internet
Author: User
Keywords FAQ Asianux
Tags alias an application application delete directory display etc file

This section includes some common problems with the Red Flag asianux Server 3 System Management process and gives them solutions.

How to make LS not display color

Delete the alias ls= "LS--color" in the/ETC/BASHRC file and do this with the. bashrc file in the user directory.

When you type LS, a lot of information is rolled up from the screen, how to read the output clearly

To prevent the output of the LS command from rolling over the screen too quickly, you can use the pipe method. You can also use pager to read the contents of etc and type the following commands at the shell prompt:

ls-al/etc | Pager

Use a different paging tool to achieve the same effect.

How to enable root users to telnet remotely via SSH

To allow root users to login directly to SSH, you can do so by modifying the OpenSSH server-side configuration file/etc/ssh/sshd_config. Restart the SSHD service when you change no to Yes on the "Permitrootlogin No" line.

Why the HTTPD service or sendmail based on the http://www.aliyun.com/zixun/aggregation/14417.html ">apache" is suspended at startup

If you are having problems starting an Apache-based httpd service or SendMail, make sure that the following line is included in the Hosts file:

127.0.0.1 localhost.localdomain localhost

When you install a new application, you will get "command not found" when you type its name under the shell. Why can't I start an application

If starting an application under the shell is not valid, you can add an "./" before the application's executable name. Suppose you downloaded the ABCDEF client application and created a abc/subdirectory in the user's home directory. Now, in addition to using the full path of the executable file to start the application:

/home/xyz/abc/abcdef

You can also run the command under/home/xyz/abc/:./abcdef to start a program with a full path name because the path to the executable file is not placed in a directory known to the user's shell environment (such as/usr/local/bin).

How to access Windows partitions when running Linux

First you need to know the location of the Windows partition, which is exactly which partition on which hard disk the Windows partition will be accessed.

You then execute the following command as Superuser:

Mkdir/mnt/windows Create a directory to mount a Windows partition

Mount-t Vfat/dev/hda1/mnt/windows mount it to the created directory)

Cd/mnt/windows into directories loaded with Windows partitions)

If you want to mount the Windows partition automatically each time the system is booted, you must modify the Fstab file. Add the following line to the Fstab file:

/dev/hda1/mnt/windows vfat auto,umask=0 0 0

When the system reboots, the Fstab file is read and the Windows partition is automatically mounted to the directory/mnt/windows.

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.