There are 7 useful linux utilities that you must install on new linux server. Most Linux distributions are equipped with tons of linux command utility, but if you have installed minimal operating system, all these software will not exist. These tools will very useful in your troubleshooting and will help to find possible causes of a problem. Most of the utilities have the same function in CentOS or Red Hat Enterprise Linux (RHEL).
You can easily identify whether the utility installed on your linux operating system or not. You will see one or more below warning :
[[email protected] ~]# wget -bash: wget: command not found
[[email protected] ~]# telnet -bash: telnet: command not found
[[email protected] ~]# scp -bash: scp: command not found
[[email protected] ~]# man scp -bash: man: command not found
[[email protected] ~]# nslookup -bash: nslookup: command not found
[[email protected] ~]# dig -bash: dig: command not found
[[email protected] ~]# host -bash: host: command not found
7 Useful Linux Utilities
1. What is wget ?
Wget is a network utility to retrieve files from the Web using http and ftp, the two most widely used Internet protocols.
[[email protected] ~]# wget http://files2.zimbra.com/downloads/8.0.2_GA/zcs-8.0.2_GA_5569.RHEL6_64.20121210115059.tgz
2. What is telnet ?
Telnet is a network protocol used on the Internet or local area networks. Telnet is a user command and an underlying TCP/IP protocol for accessing remote computers and very useful for troubleshooting and verify the opened ports.
[[email protected] ~]# telnet localhost 25 Trying ::1... Connected to localhost. Escape character is '^]'. 220 rhel62.ehowstuff.local ESMTP Postfix
3. What is scp ?
scp also call secure copy, is remote file copy utility between hosts on a network. It uses ssh for data transfer and provides the same authentication and same level of security as ssh.
[[email protected] ~]# scp [email protected]:/tmp/VMwareTools-9.2.2-893683.tar.gz . The authenticity of host '192.168.2.60 (192.168.2.60)' can't be established. RSA key fingerprint is 76:78:87:36:44:c1:46:fa:c4:b4:61:4a:e5:b3:be:e3. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.2.60' (RSA) to the list of known hosts. [email protected]'s password: VMwareTools-9.2.2-893683.tar.gz 100% 63MB 63.3MB/s 00:01
4. What is man ?
man is used to display the manual page for other commands It’s help to explain the functions for the commands that commonly used. The term “man” is short for manual.
[[email protected] ~]# man wget
WGET(1) GNU Wget WGET(1) NAME Wget - The non-interactive network downloader. SYNOPSIS wget [option]... [URL]... DESCRIPTION GNU Wget is a free utility for non-interactive download of files from the Web. It supports HTTP, HTTPS, and FTP protocols, as well as retrieval through HTTP proxies. Wget is non-interactive, meaning that it can work in the background, while the user is not logged on. This allows you to start a retrieval and disconnect from the system, letting Wget finish the work. By contrast, most of the Web browsers require constant userâs presence, which can be a great hindrance when transferring a lot of data. Wget can follow links in HTML, XHTML, and CSS pages, to create local versions of remote web sites, fully recreating the directory structure of the original site. This is sometimes referred to as "recursive downloading." While doing that, Wget respects the Robot Exclusion Standard (/robots.txt). Wget can be instructed to convert the links in downloaded files to point at the local files, for offline viewing.
5. What is nslookup, dig, host ?
nslookup, dig and host are part of the bind utilities.These utilities are the basic tools for DNS client and DNS server troubleshooting.
[[email protected] ~]# nslookup > set type=mx > ehowstuff.com Server: 22.214.171.124 Address: 126.96.36.199#53 Non-authoritative answer: ehowstuff.com mail exchanger = 0 ehowstuff.com. Authoritative answers can be found from: >
[[email protected] ~]# dig ehowstuff.com ; < <>> DiG 9.7.3-P3-RedHat-9.7.3-8.P3.el6 < <>> ehowstuff.com ;; global options: +cmd ;; Got answer: ;; ->>HEADER<
[[email protected] ~]# host -t mx ehowstuff.com ehowstuff.com mail is handled by 0 ehowstuff.com.
How to install wget, scpt, telnet, man, nslookup, dig and host utilities ?
Simply run the following commands :
[[email protected] ~]# yum install wget telnet openssh-clients bind-utils man -y
Like this Article? Subscribe to Our Feed!
This article was posted on Tuesday, March 12, 2013 at 12:05 AM