Linux grep command with 14 different examples


Overview : Linux like operating system provides a searching tool known as grep (global regular expression print). grep command is useful for searching the content of one more files based on the pattern. A pattern may be a single character, bunch of characters, single word or a sentence. When we execute the grep command with […]

Continue reading »

Smartctl – Monitoring & Analysis tool for Hard drive


Smartctl (Self-Monitoring, Analysis and Reporting Technology) is a command line utility or a tool in UNIX like operating system that perform SMART tasks such as printing the SMART self-test and error logs, enabling and disabling SMART automatic testing, and initiating device self-tests. Smartctl is useful on physical Linux servers where smart disks can be checked […]

Continue reading »

SUSE Linux – Zypper Command Examples


Zypper is command line interface in SuSE Linux which is used to¬† install, update, remove software, manage repositories, perform various queries, and lot more. In this article we will discuss different examples of zypper command . Syntax : # zypper [–global-opts] <command> [–command-opts] [command-arguments] The components mentioned in brackets are not required. The simplest way […]

Continue reading »

Linux/UNIX wget command with practical examples

wget is a Linux/UNIX command line file downloader.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. In this post we […]

Continue reading »

How to run Unix Commands in vi/vim editor

There are some scenarios where unix admin wants to run unix commands and insert the output of unix command in vi editor without leaving it. This can be possible using below steps : :!UNIX_command Example : Run the ifconfig command within the /etc/hosts file. linuxtechi@mail:~$ sudo vi /etc/hosts Insert UNIX Command Ouptut in vi editor […]

Continue reading »

Linux/UNIX xargs command examples


xargs is a command in UNIX like System that reads items from the standard input, delimited by blanks (which can be protected with double or single quotes or a backslash) or newlines, and executes the command (default is /bin/echo) one or more times with any initial-arguments followed by items read from standard input. Blank lines […]

Continue reading »