Merge pull request #654 from geekpi/master

[Translating] 12 Advanced Commands For Linux Server Admins
This commit is contained in:
geekpi 2014-01-08 22:24:26 -08:00
commit 8f2bd1a1d1
2 changed files with 37 additions and 37 deletions

View File

@ -1,37 +0,0 @@
12 Advanced Commands For Linux Server Admins!
================================================================================
So, you've read many tutorials and watched many videos and now you are an advanced Linux user. Well, congratulations. But there's still more to learn! Here is a list of Linux commands that will come in handy when you are the almighty admin!
![](http://www.efytimes.com/admin/useradmin/photo/fQjv122633PM162014.png)
1. **ifconfig**: You will use the ifconfig command when you need to improve the kernel-resident network interfaces. The command is usually needed for system tuning and debugging, but it is also used during boot time in order to set up the interfaces.
2. **netstat**: This is an advanced command for Linux users that is used to display information related to the network. This includes information such as routing tables, network connections, masquerade connections, interface statistics and others.
3. **nslookup**: This command will be used when you need to find information about Internet servers. It finds you the name server information for the domains that are querying the DNS.
4. **dig**: The dig tool is used in order to query the DNS nameservers. If you need to find information on host addresses, mail exchanges, nameservers and other related information, then this is the tool for you. You can use the command from Linux and Mac OS X operating systems.
5. **uptime**: The uptime command is used in order to verify what all happened when a server has been left unattended. It is especially useful when you sit down in front of the server machine and see something gone awry.
6. **wall**: This command is used to send a message to all logged in users. You can only send the message to those with their message permission setting at yes though. The message is given as an argument for the wall command.
7. **mesg**: Users can use the write command in order to send messages to you. But as the server admin, you can use the mesg command in order to decide whether they can. You can choose from n and y, which allow messages to not popup and popup on your screen respectively.
8. **write**: If the status for the mesg command for a user is set to y then the write command will allow you to send messages to that user.
9. **talk**: When a simple message is not enough, use the talk command to talk to users logged into the server.
10. **w**: This command is a combination of uptime and who commands, if they are given in that order and one after the other.
11. **rename**: When you need to rename certain specific files, the rename command comes in handy. This command renames files by replacing the first occurrence from that file.
12. **top**: Use this command in order to display the processes running in the CPU. The command will refresh automatically and keep displaying the processes until you use the interrupt command to stop it.
--------------------------------------------------------------------------------
via: http://www.efytimes.com/e1/fullnews.asp?edid=125990
译者:[译者ID](https://github.com/译者ID) 校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出

View File

@ -0,0 +1,37 @@
Linux 服务器管理员的12个高级命令
================================================================================
我们已经读了很多教程和看了很多视频了你现在是一名Linux高级用户了。好的恭喜你。但是还有一些需要学习下面一些命令在你成为全能的管理员时会派上用场
![](http://www.efytimes.com/admin/useradmin/photo/fQjv122633PM162014.png)
1. **ifconfig**:你会在提升内核驻留的网络接口时会用到ifconfig命令。这个命令通常用于系统调校和调试但是用于在启动中设置接口。
2. **netstat**:是一个对于Linux用户用于显示网络相关信息的高级命令。它包含了如:路由表、网络连接、伪装连接、接口统计还有其他。
3. **nslookup**:这个命令在你需要找出关于网络服务的信息时使用到。它找到你所查询的DNS域的名称服务器的信息。
4. **dig**:dig工具用于请求DNS域名服务器。如果你要找出主机地址、邮件交换、名称服务器和其他相关信息那么这是个给你的工具。你可以在Linux和Mac OS X操作系统上使用这个命令。
5. **uptime**: uptime命令用于验证服务器在无人照看下发生了什么。它特别在你坐在服务器前面并看见了一些错误。
6. **wall**:这个命令用于发送信息给所有已登录的用户。你只可以发消息给那些信息权限设置成了'是'的用户。消息被作为wall命令的参数给出。
7. **mesg**: 用户可以使用'write'命令给你发送消息。但是作为服务器管理员你可以使用mesg命令来决定他们是否可以接收消息。你可以选择'n'和'y',这会相应地在屏幕上不弹出或者弹出消息。
8. **write**: 如果对于一个用户的'mesg'命令的状态设置为'y'那么write命令就允许你发送消息给那个用户。
9. **talk**: 当简单的消息不够时使用talk命令给登陆的用户。
10. **w**: 这个命令是uptime和who命令的结合如果他们一个接一个给出了特定的顺序。
11. **rename**:当你需要重命名特定的文件时rename命令会派上用场。这个命令会重命名文件通过替换文件的首次出现。
12. **top**:这个命令显示运行在CPU上的进程。命令会自动刷新并保持显示进程直到你使用中断命令停止它。
--------------------------------------------------------------------------------
via: http://www.efytimes.com/e1/fullnews.asp?edid=125990
译者:[geekpi](https://github.com/geekpi) 校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出