RedhatLinux operating system usage issues

Source: Internet
Author: User
Does edhat write grub (lilo) to the boot zone or the primary Boot Sector (MBR) of the linux partition during installation and use of the server application FAQ1 )? If you want to write grub (lilo) to MBR directly from the operating system boot menu as soon as the computer is started, if you want to write it to the boot area of linux partition, use the boot disk boot. We recommend writing it to MBR, convenience: writing to MBR is not safe. How can this problem be explained? The MBR is modified once every time the Windows 98 is installed. Do you think there is anything unsafe? 2. FAQs about how to install and use edhat and server applications
1. During installation, will grub (lilo) be written to the boot zone of the linux partition or the primary Boot Sector (MBR )?
If you want to write grub (lilo) to MBR directly from the operating system boot menu as soon as the computer is started, if you want to write it to the boot area of linux partition, use the boot disk boot. We recommend writing it to MBR, convenience: writing to MBR is not safe. How can this problem be explained? The MBR is modified once every time the Windows 98 is installed. Do you think there is anything unsafe?
2. How to make multiple systems coexist?
Use lilo (gurb) for 98 systems.
OS loader guides multiple systems
3. How can I enable linux to automatically access the graphic interface or prevent it from accessing the graphic interface after linux is started?
A. Enter the graphic interface: select the graphic startup mode during installation or change the id: x: initdefault: of/etc/inittab to id: 5: initdefault :.
B. Do not enter the graphic interface: select the text startup mode during installation or change the id: x: initdefault: of/etc/inittab to id: 3: initdefault :.
4. How can I switch back and forth between the graphic interface and the console (character Interface?
A. graphic interface to the console: Ctr + Alt + Fn (n = 1, 2, 3, 4, 5, 6 ).
B. Switch between consoles: Alt + Fn (n = 1, 2, 3, 4, 5, 6 ).
C. Console to graphics: Alt + F7
5. How to switch between gnome and kde.
If you log on to linux using a graphical logon method, you can select gnome and kde by clicking the session (task) on the logon interface. If you log on as a text user, run switchdesk gnome or switchdesk kde and then startx to enter gnome or kde.
6. What are common RedHat linux commands?
Ls: column directory.
Usage: ls or ls dirName. Parameter:-a displays all files.-l details the list of files.
Mkdir: create a directory.
Usage: mkdir dirName. The parameter is-p to create a multi-level directory, for example, mkdir a/B/c/d/e/f-p.
Mount: mount a partition or image file (. iso,. img.
Usage:
A. disk Partition: mount deviceName mountPoint-o options. deviceName indicates the device name of the disk partition, for example,/dev/hda1,/dev/cdrom,/dev/fd0, and mountPoint indicates the mount point, it is a directory, and options is a parameter. If the partition is a linux partition, you generally do not need-o options. If it is a windows partition, options can be iocharset = cp936, in this way, the Chinese file name in the windows partition can be displayed. Use Cases: for example, if/dev/hda5 is a linux partition, I want to mount it to directory a (if there is no directory a, then mkdir a first), mount/dev/hda5, in this way, the things in directory a are the things in the hda5 partition. For example, if hda1 is a windows partition, it should be mounted to B, and mount/dev/hda1 B-o iocharset = cp936.
B. Image File: mount fileName mountPoint-o loop. fileName is the image file name (*. iso, *. img). It is the same as above. Example: If I have. iso CD image file, mount. iso a-o loop, so that you can browse a in directory. iso content ,*. the usage of imgfiles is the same.
Find: find the file.
Usage: find inDir-name filename. inDir is the directory in which you want to find the file name. filename is the file name you want to find (wildcards can be used). When Wildcards are used, filename is properly enclosed by single quotation marks, otherwise, an error occurs. Use Case: find. -name test *: searches for files starting with test in the current directory.
Grep: Find the specified string in the file.
Usage: grep string filename, which is used to find the string in filename (which can be a wildcard) (it is best to use double quotation marks ). Parameter:-r is found in filename of all subdirectories. Use Case: grep hello *. c-r searches for hello in all. c files in the current directory (including subdirectories.
Vi: Editor. Needless to say, if linux is used, it must be used.
Usage: (I can only briefly describe), vi filename. Filename is the text file you want to edit. After executing vi filename, you may find that you cannot edit the text content. Do not worry, because vi has not entered the editing status. Press a or I to enter the editing status, after entering the editing status, you can edit the text. To exit the editing status, Press Esc. The following operations must be performed in a non-editable state. Search Text: Enter/and the text you want to search for and press Enter. Exit: Enter "q" and press Enter. If you modify the text, use "q! Enter to exit. Save: Enter w and press Enter. For a read-only file, use w !. Save and exit: Enter "wq" and press Enter. If it is read-only, enter "wq! Press enter. Cancel: press u to cancel one step. You can cancel multiple steps. Copy and paste a line of text: move the cursor to any place on the row to be copied, press yy (that is, press y twice), move the cursor to the last line of the place to be pasted, press p. The line of text will be inserted into the next line of the row where the cursor is located. All rows after the row where the cursor is located will automatically move down one line. Copy and paste multiple lines of text: similar to copying a line, but the number of lines to be copied is entered in yy, followed by yy. The subsequent operations are the same. Move the cursor to the specified row: Enter: And the row number, and press Enter. For example, move row 123: 123 and press enter to the end.
7.tar,.tar.gz,.bz2,.tar.bz2,.bz,.gz?
They are all file (Compressed) packages.
. Tar: Package the file without compression: tar cvf *. tar dirName unzips: tar xvf *. tar
.Tar.gz: Package and compress the file: tar czvf * .tar.gz dirName unzips: tar xzvf * .tar.gz
. Bz2: Unlock: bzip2-d *. bz2
. Bz: Unlock: bzip-d *. bz
. Gz: Undo: gzip-d *. gz
8.linuxhow Can I open a. Zip,. rar compressed file?
There is a graphic interface software file-roeller in rh8 to do this. In addition, unzip *. zip can be used to unzip the file. unrar *. rar is used to unzip the rarfile. However, unrar is not provided by the system and must be downloaded from the Internet.
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.