mirror of
https://github.com/LCTT/TranslateProject.git
synced 2024-12-26 21:30:55 +08:00
翻译完成 by tomatoKiller
This commit is contained in:
parent
c91a0bf197
commit
a3d011dc2a
@ -1,110 +0,0 @@
|
|||||||
tomatoKiller 翻译中
|
|
||||||
|
|
||||||
10 Linux Interview Questions and Answers for Linux Beginners – Part 3
|
|
||||||
================================================================================
|
|
||||||
Continuing the **Interview Questions** series, with a big thanks for the nice feedback on last two articles of this series, we are here presenting **10 questions** again for interactive learning.
|
|
||||||
|
|
||||||
- [11 Basic Linux Interview Questions and Answers – Part 1][1]
|
|
||||||
- [10 Basic Linux Interview Questions and Answers – Part II][2]
|
|
||||||
|
|
||||||
![](http://www.tecmint.com/wp-content/uploads/2013/12/Basic-Interview-Questions-Part-3.png)
|
|
||||||
|
|
||||||
### 1. How will you add a new user (say, tux) to your system.? ###
|
|
||||||
|
|
||||||
- useradd command
|
|
||||||
- adduser command
|
|
||||||
- linuxconf command
|
|
||||||
- All of the above
|
|
||||||
- None of the above
|
|
||||||
|
|
||||||
> **Answer** : All of the above commands i.e., **useradd, adduser** and **linuxconf** will add an user to the Linux system.
|
|
||||||
|
|
||||||
### 2. How many primary partition is possible on one drive? ###
|
|
||||||
|
|
||||||
- 1
|
|
||||||
- 2
|
|
||||||
- 4
|
|
||||||
- 16
|
|
||||||
|
|
||||||
> **Answer** : There are a maximum of ‘**4**‘ primary partition possible on a drive.
|
|
||||||
|
|
||||||
### 3. The default port for Apache/Http is? ###
|
|
||||||
|
|
||||||
- 8080
|
|
||||||
- 80
|
|
||||||
- 8443
|
|
||||||
- 91
|
|
||||||
- None of the above.
|
|
||||||
|
|
||||||
> **Answer** : By default Apache/Http is configured on port **80**.
|
|
||||||
|
|
||||||
### 4. What does GNU stand for? ###
|
|
||||||
|
|
||||||
- GNU’s not Unix
|
|
||||||
- General Unix
|
|
||||||
- General Noble Unix
|
|
||||||
- Greek Needed Unix
|
|
||||||
- None of the above
|
|
||||||
|
|
||||||
> **Answer** : GNU stands for ‘**GNU**‘s not **Unix**‘.
|
|
||||||
|
|
||||||
### 5. You typed at shell prompt “mysql” and what you got in return was “can’t connect to local MySQL server through socket ‘/var/mysql/mysql.sock’”, what would you check first. ###
|
|
||||||
|
|
||||||
> **Answer** : Seeing the error message, I will first check if mysql is running or not using commands **service mysql status** or **service mysqld status**. If mysql service is not running, starting of the service is required.
|
|
||||||
|
|
||||||
**Note**:The above error message can be the result of ill configured **my.cnf** or mysql **user permission**. If mysql service starting doesn’t help, you need to see into the above said issues.
|
|
||||||
|
|
||||||
### 6. How to Mount a windows ntfs partition on Linux? ###
|
|
||||||
|
|
||||||
> **Answer** : First install **ntfs3g** pack on the system using **apt** or **yum** tool and then use “**mount sudo mount t ntfs3g /dev/<Windowspartition>/<Mountpoint>**” command to mount Windows partition on Linux.
|
|
||||||
|
|
||||||
### 7. From the following which is not an RPM based OS.? ###
|
|
||||||
|
|
||||||
- RedHat Linux
|
|
||||||
- Centos
|
|
||||||
- Scientific Linux
|
|
||||||
- Debian
|
|
||||||
- Fedora
|
|
||||||
|
|
||||||
> **Answer** : The ‘**Debian**‘ operating system is not an **RPM** based and all listed above are ‘**RPM**‘ based except Debian.
|
|
||||||
|
|
||||||
### 8. Which command can be used to rename a file in Linux.? ###
|
|
||||||
|
|
||||||
- mv
|
|
||||||
- ren
|
|
||||||
- rename
|
|
||||||
- change
|
|
||||||
- None of the Above
|
|
||||||
|
|
||||||
> **Answer** : The **mv** command is used to rename a file in Linux. For example, **mv /path_to_File/original_file_name.extension /Path_to_File/New_name.extension**.
|
|
||||||
|
|
||||||
### 9. Which command is used to create and display file in Linux? ###
|
|
||||||
|
|
||||||
- ed
|
|
||||||
- vi
|
|
||||||
- cat
|
|
||||||
- nano
|
|
||||||
- None of the above
|
|
||||||
|
|
||||||
Answer : The ‘**cat**‘ command can be used to create and display file in Linux.
|
|
||||||
|
|
||||||
### 10. What layer protocol is responsible for user and the application program support such as passwords, resource sharing, file transfer and network management? ###
|
|
||||||
|
|
||||||
- Layer 4 protocols
|
|
||||||
- Layer 5 protocols
|
|
||||||
- Layer 6 protocols
|
|
||||||
- Layer 7 protocols
|
|
||||||
- None of the above
|
|
||||||
|
|
||||||
> **Answer** : The ‘**Layer 7 Protocol**‘ is responsible for user and the application program support such as passwords, resource sharing, file transfer and network management.
|
|
||||||
|
|
||||||
--------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
via: http://www.tecmint.com/linux-interview-questions-and-answers-for-linux-beginners/
|
|
||||||
|
|
||||||
译者:[译者ID](https://github.com/译者ID) 校对:[校对者ID](https://github.com/校对者ID)
|
|
||||||
|
|
||||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
|
|
||||||
|
|
||||||
[1]:http://www.tecmint.com/basic-linux-interview-questions-and-answers/
|
|
||||||
[2]:http://www.tecmint.com/basic-linux-interview-questions-and-answers-part-ii/
|
|
@ -0,0 +1,110 @@
|
|||||||
|
对于Linux菜鸟的10 个Linux面试问题及答案---第三部分
|
||||||
|
================================================================================
|
||||||
|
在有关**面试问题**的这一系列话题的前两篇文章中,我们收到了许多好的反馈,在此表示极大的感谢,同时,我们将延续这一系列话题。在这里,我们将再次展示**10个问题**来进行相互学习。
|
||||||
|
|
||||||
|
- [11个基本的Linux面试问题及答案 – 第一部分][1]
|
||||||
|
- [10个基本的Linux面试问题及答案 – 第二部分][2]
|
||||||
|
|
||||||
|
![](http://www.tecmint.com/wp-content/uploads/2013/12/Basic-Interview-Questions-Part-3.png)
|
||||||
|
|
||||||
|
### 1. 你如何向你的系统中添加一个新的用户(例如,tux)? ###
|
||||||
|
|
||||||
|
- 使用useradd指令
|
||||||
|
- 使用adduser 指令
|
||||||
|
- 使用linuxconf指令
|
||||||
|
- 以上所有
|
||||||
|
- 以上答案全都不对
|
||||||
|
|
||||||
|
> **答案** : 上面的指令即useradd, adduser 和 linuxconf 都可向你的linux系统添加新用户
|
||||||
|
|
||||||
|
### 2. 在一个驱动器上,可能有多少主分割槽? ###
|
||||||
|
|
||||||
|
- 1
|
||||||
|
- 2
|
||||||
|
- 4
|
||||||
|
- 16
|
||||||
|
|
||||||
|
> **答案** : 一个驱动器上最多可能有4个主分割槽
|
||||||
|
|
||||||
|
### 3. Apache/Http 的默认端口号是多少? ###
|
||||||
|
|
||||||
|
- 8080
|
||||||
|
- 80
|
||||||
|
- 8443
|
||||||
|
- 91
|
||||||
|
- 以上答案全都不对
|
||||||
|
|
||||||
|
> **答案** : Apache/Http默认配置在**80**端口
|
||||||
|
|
||||||
|
### 4. GNU代表什么? ###
|
||||||
|
|
||||||
|
- GNU’s not Unix
|
||||||
|
- General Unix
|
||||||
|
- General Noble Unix
|
||||||
|
- Greek Needed Unix
|
||||||
|
- 以上答案全都不对
|
||||||
|
|
||||||
|
> **答案** : GNU意为**GNU’s not Unix**.
|
||||||
|
|
||||||
|
### 5. 如果你在shell提示符中输入mysql并得到“can’t connect to local MySQL server through socket ‘/var/mysql/mysql.sock’ ”的提示,你首先应该检查什么? ###
|
||||||
|
|
||||||
|
> **答案** : 看到这条错误消息,我首先会使用**service mysql status**或者**service mysqld status**指令来检查mysql服务是否正在运行。如果mysql服务没有运行,就启动所需服务。
|
||||||
|
|
||||||
|
**注意**:上面的错误消息可能是由于**my.cnf**或者mysql的**用户权限**错误配置导致的。如果启动mysql服务之后仍不管用,你需要检查这两项。
|
||||||
|
|
||||||
|
### 6. 如何将windows ntfs分割槽挂在到Linux上面? ###
|
||||||
|
|
||||||
|
> **答案** : 首先,使用**apt**或者**yum**工具安装ntfs3g包,然后使用
|
||||||
|
“**mount sudo mount t ntfs3g /dev/<Windowspartition>/<Mountpoint>**” 命令来将windows分割槽挂载到Linux上面
|
||||||
|
|
||||||
|
|
||||||
|
### 7. 下面哪一个不是基于RPM的操作系统? ###
|
||||||
|
|
||||||
|
- RedHat Linux
|
||||||
|
- Centos
|
||||||
|
- Scientific Linux
|
||||||
|
- Debian
|
||||||
|
- Fedora
|
||||||
|
|
||||||
|
> **答案** : ‘**Debian**‘ 系统不是基于**RPM**的
|
||||||
|
|
||||||
|
### 8. Linux中,哪一个指令用来重命名文件? ###
|
||||||
|
|
||||||
|
- mv
|
||||||
|
- ren
|
||||||
|
- rename
|
||||||
|
- change
|
||||||
|
- 以上答案全都不对
|
||||||
|
|
||||||
|
> **答案** : 在Linux中,**mv** 指令用来重命名一个文件。例如:**mv /path_to_File/original_file_name.extension /Path_to_File/New_name.extension**
|
||||||
|
|
||||||
|
### 9. 在Linux中,哪个命令用来创建并显示文件? ###
|
||||||
|
|
||||||
|
- ed
|
||||||
|
- vi
|
||||||
|
- cat
|
||||||
|
- nano
|
||||||
|
- 以上答案全都不对
|
||||||
|
|
||||||
|
Answer : ‘**cat**‘ 命令用来创建并且显示文件
|
||||||
|
|
||||||
|
### 10. 哪层协议对用户和程序负责,用以支持如密码、资源分享、文件传输和网络管理? ###
|
||||||
|
|
||||||
|
- Layer 4 protocols
|
||||||
|
- Layer 5 protocols
|
||||||
|
- Layer 6 protocols
|
||||||
|
- Layer 7 protocols
|
||||||
|
- 以上答案全都不对
|
||||||
|
|
||||||
|
> **答案** : ‘**第七层协议**‘
|
||||||
|
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
via: http://www.tecmint.com/linux-interview-questions-and-answers-for-linux-beginners/
|
||||||
|
|
||||||
|
译者:[tomatoKiller](https://github.com/tomatoKiller) 校对:[校对者ID](https://github.com/校对者ID)
|
||||||
|
|
||||||
|
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
|
||||||
|
|
||||||
|
[1]:http://www.tecmint.com/basic-linux-interview-questions-and-answers/
|
||||||
|
[2]:http://www.tecmint.com/basic-linux-interview-questions-and-answers-part-ii/
|
Loading…
Reference in New Issue
Block a user