RedhatAS5Linux host common maintenance commands

Source: Internet
Author: User
Sorted out the Common commands of RedHatAS5Linux (host maintenance routine collection) 1. Authorized command chmodchmod permission directory/file example for the read permission of the test directory: chmod + r/etc/testlinux, directory permission: 666 File Permission: 777 each file has three permissions: read, write, and executable. 2. Add useradd: useraddte

Sorted out the Common commands of RedHat AS5 Linux (host maintenance routine collection)

1. Authorization command chmod

Chmod permission directory/file example: chmod + r/etc/test

Linux stipulates that directory permissions: 666 file permissions: 777 each file has three permissions: read, write, and executable.

2. Add User useradd

Example: useradd test-p123456

This corresponds to the passwd command. After creating a user, use passwd test to change the password.

3. find the file

For example, search for the test file name find/-name test -- print.

4. chkconfig -- list

View the startup level of the system service. redhat includes Layer 7 levels.

Runlevel 0 = halt/Shutdown

Runlevel 1 = single user mode = linux single/single user mode (usually used for maintenance)

Runlevel 2 = n/a or user-user defined/user defined

Runlevel 3 = text mode with 6 virtual terminal les/text mode with 6 virtual terminals (this mode is often used by servers)

Runlevel 4 = n/a or user-user defined/user defined

Runlevel 5 = graphics mode or X/graphic mode or X-window

Runlevel 6 = reboot/restart

You can use chkconfig -- level 35 servername on to change the started service.

For example, vsftp redhat is disabled by default and changed to run automatically with the system:

Chkconfig -- level 35 vsftp on

5. mount command

Format: mount [-t vfstype] [-o options] device dir

Mount the optical drive: mount-t is09660/dev/cdrom/mnt/cdrom

Mounting the ISO file: loop: used to mount a file to the system as a hard disk partition.

Mount-o loop/home/rdas5.iso/media

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.