RHCE certification test tutoring: RH033 Question Bank

Source: Internet
Author: User
1) if the file newdir/file2 does not exist but the directory newdir already exists, what is the result of the following command? Mvfile1newdir/file2file1 will be moved to newdir and renamed as file2file1 will be copied to newdir and named file2. An error will be reported because the above is not a valid command. 2) What is the result returned by the following command? Ls-F unordered list of items in the current directory. List of items marked with file types in the current directory. Items in the current directory

1) if the file newdir/file2 does not exist but the directory newdir already exists, what is the result of the following command?
Mv file1 newdir/file2
File1 will be moved to newdir and renamed to file2
File1 will be copied to newdir and named file2
An error will be reported because the above is not a valid command.

2) What is the result returned by the following command?
Ls-F
Unordered list of items in the current directory.
List of items marked with file types in the current directory.
List of items in the current directory, separated by commas (,), rather than column.

3) list of items in the current directory, separated by commas (,), rather than Column Display.
Ln file1 file2
Flie2 will be the symbolic link of file1.
File2 is fixed to 5 bytes regardless of the size of file1.

Topic #2 Linux File System Structure:

4) What is the typical file type in the/etc directory?
Configuration file.
Miscellaneous files.
Standard Linux commands.

5) by default, which directory does the email inbox store?
/Var/spool/mail
Mail directory in the user's home directory
/Usr/mail

6)/lib directory:
Documentation.
Configuration file.
Topic #3 permissions and attributes:

7) which command can list file permissions?
Chmod
Ls-l
Perms

8) after running the following command, the File Permission is-rwxr-x ---. What is the value indicated by a number? Command:
Chmod g + s file
2750
750
751

9) What is the execution result of the following command?
Chattr + I file
Any modification is prohibited and files cannot be modified.
Files are compressed and saved. The files are automatically decompressed during read operations.

Opic #4 operating floppy disk:

10) which of the following commands allows non-privileged users who have logged on to attach a software drive?
Mount/dev/fd0/mnt/floppy
Mount/mnt/floppy
None. Attaching a soft drive is a privileged operation of a Super User.

11) run the following command:
Tar cvf/dev/fd0 mydir
How do I list files on a floppy disk?
Tar tf/dev/fd0
Ls/dev/fd0
Ls/mnt/floppy

12) You need to perform low-level formatting on the floppy disk. Which of the following commands can be implemented?
Fdformat/dev/fd0
Fdformat/dev/fd0H1440
Mkfs/dev/fd0

Topic #5 vi and vim Editor:

13) which of the following statements is true when the vi editor is used?
In command mode, uppercase "O" opens a line under the current line and enters the insert mode.
In command mode, lowercase "a" enters the insert mode, which can be expanded after the current cursor position.
In command mode, the "dd4" command deletes four lines.

14) when the vi editor is used, which of the following commands in command mode deletes four characters?
4 XW
Wwww
4dw

15) in vim, The searched strings are highlighted. How to turn off the highlighted display?
: Set nohighlight
: Set nohl

Topic #6 regular expression:

16) when the command is used in the command line for file name matching and as a regular expression,
Abc *
What will happen?
When a file name is generated, a file with or without any subsequent characters starting with abc will be returned. In a regular expression, the string starts with AB and starts with 0 or multiple c characters.
File Name generation is the same as regular expression generation: Both match conditions that start with abc and have or do not have subsequent characters.
When a file name is generated, a file with or without any subsequent characters starting with abc will be returned. The regular expression matches strings starting with abc and following one or more characters.

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.