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